diff --git a/config.toml b/config.toml index b9601d6..af3b290 100644 --- a/config.toml +++ b/config.toml @@ -1,15 +1,16 @@ baseurl = "https://www.devroom.io" -title = "Ariejan de Vroom" -theme = "hugo-coder" +title = "devroom.io" +theme = "devroom-2020" languagecode = "en" defaultcontentlanguage = "en" -copyright = "© 1999-2020 Ariejan de Vroom. All rights reserved." +copyright = "Copyright © 1999-2020 Ariejan de Vroom <ariejan@devroom.io>" -paginate = 999 +paginate = 9999 canonifyurls = true -pygmentsstyle = "solarized-dark256" +# pygmentsstyle = "solarized-dark256" +pygmentsstyle = "monokai" pygmentscodefences = true pygmentscodefencesguesssyntax = true @@ -26,91 +27,56 @@ disqusShortname = "" [params] author = "Ariejan de Vroom" - info = "Nerd." + info = "Software Engineer, among a truckload of other things" description = "Ariejan de Vroom's personal website on software engineering and electronics tinkering" keywords = "blog,developer,personal,electronics" - avatarurl = "images/avatar.jpg" - favicon_32 = "/favicon-32x32.png" - favicon_16 = "/favicon-16x16.png" + footerquote = "Live now; make now always the most precious time. Now will never come again.
    – Jean-Luc Picard" + matomoTrackingUrl = "https://matomo.devroom.io/matomo.php?idsite=2&rec=1" - footercontent = "Live now; make now always the most precious time. Now will never come again.
– Jean-Luc Picard

Copyright © 1999 - 2020 Ariejan de Vroom.
All rights reserved.

" + mainSections = ["posts", "projects"] - hidecredits = true - hidecopyright = true - - colorscheme = "auto" - - rtl = false - - math = true - custom_css = ["css/custom.css"] - custom_js = ["css/custom.js"] - -# Social links -[[params.social]] - name = "Gitea" - icon = "fab fa-git-square fa-2x" +[[params.skill]] + content = "Writing rock-solid backend stuff in whatever's hip today" weight = 10 - url = "https://git.devroom.io/ariejan/" -[[params.social]] - name = "Github" - icon = "fab fa-github fa-2x" +[[params.skill]] + content = "Automating things that don't really need automating" weight = 20 - url = "https://github.com/ariejan/" -[[params.social]] - name = "Twitter" - icon = "fab fa-twitter fa-2x" +[[params.skill]] + content = "Writing fiction that I'm too afraid to share with the world" weight = 30 - url = "https://twitter.com/ariejan/" -[[params.social]] - name = "LinkedIn" - icon = "fab fa-linkedin-in fa-2x" - weight = 40 - url = "https://twitter.com/ariejan/" -[[params.social]] - name = "Keybase" - icon = "fab fa-keybase fa-2x" - weight = 50 - url = "https://keybase.com/adevroom/" -[[params.social]] - name = "GPG" - icon = "fas fa-user-lock fa-2x" - weight = 50 - url = "/gpg/" -[[params.social]] - name = "Son en Breugel" - icon = "fas fa-map-marker-alt fa-2x" - weight = 90 - url = "https://www.google.com/maps/place/Son+en+Breugel/@51.5249895,3.2434364,7z" -[[params.social]] - name = "Contact" - icon = "fas fa-envelope fa-2x" - weight = 100 - url = "/contact/" + +[[params.popular]] + name = "approved by over 50k Googlers and Stack Overflowers every month!" + url = "/tags/git/" + weight = 10 +[[params.popular]] + name = "see how I fix things (even though I have no idea what I'm doing)" + url = "/tags/repair/" + weight = 5 # Menu links [[menu.main]] - name = "Home" + name = "devroom.io" weight = 1 url = "/" [[menu.main]] - name = "Blog" + name = "blog" weight = 10 url = "/posts/" [[menu.main]] - name = "Projects" + name = "projects" weight = 20 url = "/projects/" [[menu.main]] - name = "About" + name = "about" weight = 40 url = "/about/" [[menu.main]] - name = "GPG" + name = "gpg" weight = 90 url = "/gpg/" [[menu.main]] - name = "Contact" + name = "contact" weight = 100 url = "/contact/" diff --git a/content/contact.md b/content/contact.md index 64a3cca..4aa32f4 100644 --- a/content/contact.md +++ b/content/contact.md @@ -13,21 +13,23 @@ to a degree that would make either of us happy. I _can_ refer you to [/r/audiorepair](https://www.reddit.com/r/audiorepair/) on Reddit, where many helpful (and more knowledgeable) people are ready to help out. -
+
-

+

- -

-

+ +

+
- -

-

+ +

+
- -

- + +
+
+ +
diff --git a/content/posts/2007-04-03-tipsnippet-create-a-rss-feed.md b/content/posts/2007-04-03-tipsnippet-create-a-rss-feed.md index 6819744..2b3ef75 100644 --- a/content/posts/2007-04-03-tipsnippet-create-a-rss-feed.md +++ b/content/posts/2007-04-03-tipsnippet-create-a-rss-feed.md @@ -31,7 +31,7 @@ I assume you render your articles in a layout. The render method here prevents y Next we create a view. This is not the regular RHTML you're used to but RXML. This enables the XML generator which we'll use to generate the RSS feed. Create `app/views/articles/rss.rxml` -``` text +``` ruby xml.instruct! :xml, :version=>"1.0" xml.rss(:version=>"2.0"){ xml.channel{ @@ -57,7 +57,7 @@ Well, that's it. You now have a working RSS feed! If you want to enable auto discovery, you should add the following line to the header of your layout. (Auto discovery enables that little RSS icon in the address bar of your browser.) -``` erb +``` ruby <%= auto_discovery_link_tag(:rss, :controller => 'articles', :action => 'rss') %> ``` diff --git a/themes/devroom-2020/LICENSE b/themes/devroom-2020/LICENSE new file mode 100644 index 0000000..faff36e --- /dev/null +++ b/themes/devroom-2020/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/devroom-2020/archetypes/default.md b/themes/devroom-2020/archetypes/default.md new file mode 100644 index 0000000..c17bbb0 --- /dev/null +++ b/themes/devroom-2020/archetypes/default.md @@ -0,0 +1,7 @@ ++++ +date = {{ .Date }} +title = "{{ replace .Name "-" " " | title }}" +draft = true +tags = [] +description = "" ++++ diff --git a/themes/devroom-2020/assets/scss/devroom.scss b/themes/devroom-2020/assets/scss/devroom.scss new file mode 100644 index 0000000..0ef9081 --- /dev/null +++ b/themes/devroom-2020/assets/scss/devroom.scss @@ -0,0 +1,130 @@ +@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,700&display=swap&subset=latin-ext'); + +$font_size: 1rem; + +$backdrop: #080808; +$background: #242424; +$text: #f7f7f7; +$links: #8acdea; +$footer: darken($text, 40%); +$meta: #93423E; +$header: #bde4a7; + +html, body { + background-color: $backdrop; + color: $text; + font-family: 'IBM Plex Mono', monospace; + font-size: $font_size; +} + +pre, code { + font-family: 'IBM Plex Mono', monospace; + font-size: $font_size; +} + +pre { + background-color: $background !important; + margin-left: 2rem; + overflow-x: auto; + overflow-y: hidden; +} + +pre code { + overflow-wrap: normal; + white-space: pre; +} + +.container { + background-color: $background; + padding: 1rem 1.5rem; + margin: 1rem auto; + max-width: 900px; +} + +a, a:hover { + color: $links; +} + +nav a { + font-weight: normal; +} + +h1, h2, h3, h4, h5 { + font-size: $font_size; + font-weight: normal; + color: $header; + margin: 0.67rem 0; +} + +h1 { + + padding-bottom: 0.67rem; + border-bottom: 2px dashed $header; + + &::before { + content: "# "; + } +} + +h2::before { + content: "## " +} + +h3::before { + content: "### " +} + +h4::before { + content: "#### " +} + +h5::before { + content: "##### " +} + +b, +strong { + font-weight: bold; +} + +em { + font-style: normal; + color: $background; + background-color: $text; +} + +blockquote *::before { + content: "> "; +} + +img { + max-width: 100%; +} + +ol { + list-style-position: outside; +} + +ul { + list-style-type: "* "; + list-style-position: outside; +} + +header { + margin-bottom: 1.5rem; +} + +footer { + color: $footer; + border-top: 2px dashed $footer; + margin-top: 1.5rem; + + em { + background-color: $background; + color: $text; + } +} + +.meta { + color: $meta; +} \ No newline at end of file diff --git a/themes/devroom-2020/layouts/404.html b/themes/devroom-2020/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/devroom-2020/layouts/_default/baseof.html b/themes/devroom-2020/layouts/_default/baseof.html new file mode 100644 index 0000000..88097fe --- /dev/null +++ b/themes/devroom-2020/layouts/_default/baseof.html @@ -0,0 +1,37 @@ + + + + + + {{ with .Site.Params.author }}{{ end }} + {{ with .Site.Params.description }}{{ end }} + {{ with .Site.Params.keywords }}{{ end }} + {{ if .Permalink }} + + + {{ end }} + {{ block "title" . }}{{ .Site.Title }}{{ end }} + {{ hugo.Generator }} + + + + {{ if .Site.IsServer }} + {{ $cssOpts := (dict "targetPath" "css/devroom.css" "enableSourceMap" true ) }} + {{ $styles := resources.Get "scss/devroom.scss" | resources.ExecuteAsTemplate "style.devroom.css" . | toCSS $cssOpts }} + + {{ else }} + {{ $cssOpts := (dict "targetPath" "css/devroom.css" ) }} + {{ $styles := resources.Get "scss/devroom.scss" | resources.ExecuteAsTemplate "style.devroom.css" . | toCSS $cssOpts | minify | fingerprint }} + + {{ end }} + + +
+ {{ partial "header.html" . }} +
+ {{ block "content" . }}{{ end }} +
+ {{ partial "footer.html" . }} +
+ + diff --git a/themes/devroom-2020/layouts/_default/list.html b/themes/devroom-2020/layouts/_default/list.html new file mode 100644 index 0000000..4a9cf0b --- /dev/null +++ b/themes/devroom-2020/layouts/_default/list.html @@ -0,0 +1,11 @@ +{{ define "title" }} + {{- if eq .Kind "taxonomy" -}} + {{- i18n .Data.Singular | title -}} + {{- print "" -}} + {{- end -}} + + {{- .Title }} · {{ .Site.Title -}} +{{ end }} +{{ define "content" }} + {{ partial "list.html" . }} +{{ end }} \ No newline at end of file diff --git a/themes/devroom-2020/layouts/_default/single.html b/themes/devroom-2020/layouts/_default/single.html new file mode 100644 index 0000000..affa805 --- /dev/null +++ b/themes/devroom-2020/layouts/_default/single.html @@ -0,0 +1,6 @@ +{{ define "title" }} + {{ .Title }} · {{ .Site.Title }} +{{ end }} +{{ define "content" }} + {{ partial "page.html" . }} +{{ end }} \ No newline at end of file diff --git a/themes/devroom-2020/layouts/index.html b/themes/devroom-2020/layouts/index.html new file mode 100644 index 0000000..ab26f29 --- /dev/null +++ b/themes/devroom-2020/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "content" }} + {{ partial "home.html" . }} +{{ end }} \ No newline at end of file diff --git a/themes/devroom-2020/layouts/partials/footer.html b/themes/devroom-2020/layouts/partials/footer.html new file mode 100644 index 0000000..d32c68d --- /dev/null +++ b/themes/devroom-2020/layouts/partials/footer.html @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/themes/devroom-2020/layouts/partials/header.html b/themes/devroom-2020/layouts/partials/header.html new file mode 100644 index 0000000..d3e18a2 --- /dev/null +++ b/themes/devroom-2020/layouts/partials/header.html @@ -0,0 +1,10 @@ +
+ +
\ No newline at end of file diff --git a/themes/devroom-2020/layouts/partials/home.html b/themes/devroom-2020/layouts/partials/home.html new file mode 100644 index 0000000..be097e4 --- /dev/null +++ b/themes/devroom-2020/layouts/partials/home.html @@ -0,0 +1,33 @@ +

{{ .Site.Params.author }}

+

{{ .Site.Params.info }}

+ +

Skills

+ +{{ with .Site.Params.skill }} + +{{ end }} + + +

Popular stuff

+ +{{ with .Site.Params.popular }} + +{{ end }} + +

Recent things

+ +{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{ range first 5 $pages }} + {{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02" ) }} + - + {{ .Title }} +
+{{ end }} \ No newline at end of file diff --git a/themes/devroom-2020/layouts/partials/list.html b/themes/devroom-2020/layouts/partials/list.html new file mode 100644 index 0000000..3967ac6 --- /dev/null +++ b/themes/devroom-2020/layouts/partials/list.html @@ -0,0 +1,19 @@ +
+

+ {{- if eq .Kind "taxonomy" -}} + {{- i18n .Data.Singular | title -}} + {{- print "Tagged " -}} + {{- end -}} + + {{- .Title -}} +

+

+ {{ range .Paginator.Pages }} + {{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02" ) }} + - + {{ .Title }} +
+ {{ end }} +

+ +
\ No newline at end of file diff --git a/themes/devroom-2020/layouts/partials/page.html b/themes/devroom-2020/layouts/partials/page.html new file mode 100644 index 0000000..389aae7 --- /dev/null +++ b/themes/devroom-2020/layouts/partials/page.html @@ -0,0 +1,4 @@ +
+

{{ .Title }}

+ {{ .Content }} +
\ No newline at end of file diff --git a/themes/devroom-2020/layouts/partials/post.html b/themes/devroom-2020/layouts/partials/post.html new file mode 100644 index 0000000..bdc033c --- /dev/null +++ b/themes/devroom-2020/layouts/partials/post.html @@ -0,0 +1,16 @@ +
+

{{ .Title }}

+
+ + - + tagged + {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }} + - + {{ .ReadingTime }}min + - + {{ .FuzzyWordCount }}wrds +
+ {{ .Content }} +
\ No newline at end of file diff --git a/themes/devroom-2020/layouts/partials/taxonomy/tags.html b/themes/devroom-2020/layouts/partials/taxonomy/tags.html new file mode 100644 index 0000000..7edc006 --- /dev/null +++ b/themes/devroom-2020/layouts/partials/taxonomy/tags.html @@ -0,0 +1,6 @@ +{{- range $index, $el := . -}} + {{- if gt $index 0 }} + + {{- end }} + {{ . | lower }} +{{- end -}} diff --git a/themes/devroom-2020/layouts/posts/single.html b/themes/devroom-2020/layouts/posts/single.html new file mode 100644 index 0000000..352a77c --- /dev/null +++ b/themes/devroom-2020/layouts/posts/single.html @@ -0,0 +1,6 @@ +{{ define "title" }} + {{ .Title }} · {{ .Site.Title }} +{{ end }} +{{ define "content" }} + {{ partial "post.html" . }} +{{ end }} \ No newline at end of file diff --git a/themes/devroom-2020/layouts/projects/single.html b/themes/devroom-2020/layouts/projects/single.html new file mode 100644 index 0000000..352a77c --- /dev/null +++ b/themes/devroom-2020/layouts/projects/single.html @@ -0,0 +1,6 @@ +{{ define "title" }} + {{ .Title }} · {{ .Site.Title }} +{{ end }} +{{ define "content" }} + {{ partial "post.html" . }} +{{ end }} \ No newline at end of file diff --git a/themes/devroom-2020/theme.toml b/themes/devroom-2020/theme.toml new file mode 100644 index 0000000..4215a08 --- /dev/null +++ b/themes/devroom-2020/theme.toml @@ -0,0 +1,15 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "de Vroom 2020" +license = "MIT" +licenselink = "https://git.devroom.io/ariejan/devroom-2020/blob/master/LICENSE" +description = "" +homepage = "https://www.devroom.io" +tags = [] +features = [] +min_version = "0.41" + +[author] + name = "Ariejan de Vroom" + homepage = "https://www.devroom.io" diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 index fb2dc89..0000000 --- a/themes/hugo-coder +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fb2dc89b45b4ba61f6d66cca4c8f3062b4e94314