commit 1847b0d90f41bb150749011c4ee5adc599e78a53
parent 298f0a4293a602e82ef146051db8bcad8e3755e7
Author: oscarbenedito <oscar@oscarbenedito.com>
Date:   Sat, 14 Mar 2020 17:37:31 +0100

Archive location changed and added rel=me links to home page

Diffstat:
Mconfig.toml | 1-
Acontent/blog_archive.md | 6++++++
Dcontent/blog_archive/archive.md | 5-----
Mlayouts/archive/single.html | 22+++++++++++-----------
Mlayouts/index.html | 3++-
Dlayouts/index.xml | 1-
6 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/config.toml b/config.toml @@ -20,7 +20,6 @@ disableKinds = "taxonomyTerm" blog = "/blog/:year/:month/:slug/" categories = "/blog/categories/:slug/" tags = "/blog/tags/:slug/" - blog_archive = "/blog/archive/" [frontmatter] date = [":filename", ":default"] diff --git a/content/blog_archive.md b/content/blog_archive.md @@ -0,0 +1,6 @@ +--- +title: Personal blog +subtitle: Archive +type: archive +url: /blog/archive/ +--- diff --git a/content/blog_archive/archive.md b/content/blog_archive/archive.md @@ -1,5 +0,0 @@ ---- -title: Personal blog -subtitle: Archive -type: archive ---- diff --git a/layouts/archive/single.html b/layouts/archive/single.html @@ -9,28 +9,28 @@ <article> <div class="post-content"> <h2>Posts ({{ len (where (where .Site.Pages "File.Dir" "==" "blog/") "IsPage" true) }})</h2> - {{ range .Site.Params.active_years }} - {{ $y := . }} + {{ range .Site.Params.active_years -}} + {{ $y := . -}} <h4>{{ . }}</h4> <ul> - {{ range $.Site.Pages }} - {{ if and (eq .File.Dir "blog/") (.IsPage) (eq $y (.Date.Format "2006")) }} + {{ range $.Site.Pages -}} + {{ if and (eq .File.Dir "blog/") (.IsPage) (eq $y (.Date.Format "2006")) -}} <li><a href="{{ .RelPermalink }}">{{ .Title }}</a> ({{ .Date.Format "January 2" }})</li> - {{ end }} - {{ end }} + {{ end -}} + {{ end -}} </ul> - {{ end }} + {{ end -}} <h2>Categories ({{ len .Site.Taxonomies.categories }})</h2> <ul> - {{ range .Site.Taxonomies.categories }} + {{ range .Site.Taxonomies.categories -}} <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title | title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li> - {{ end }} + {{ end -}} </ul> <h2>Tags ({{ len .Site.Taxonomies.tags }})</h2> <ul> - {{ range .Site.Taxonomies.tags }} + {{ range .Site.Taxonomies.tags -}} <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li> - {{ end }} + {{ end -}} </ul> </div> </article> diff --git a/layouts/index.html b/layouts/index.html @@ -11,6 +11,8 @@ <link rel="shortcut icon" href="/favicon.ico"> {{- $style := resources.Get "css/landing.css" | resources.Minify }} <link rel="stylesheet" href="{{ $style.RelPermalink }}"> + <link rel="me" href="https://fosstodon.org/@ob"> + <link rel="me" href="https://github.com/oscarbenedito"> </head> <body> <div class="content"> @@ -19,7 +21,6 @@ <a href="mailto:oscar@obenedito.org" class="icon" rel="me"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"/></svg></a> <a href="/blog/" class="icon"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z"/></svg></a> <a href="https://gitlab.com/oscarbenedito" class="icon" rel="me"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M105.2 24.9c-3.1-8.9-15.7-8.9-18.9 0L29.8 199.7h132c-.1 0-56.6-174.8-56.6-174.8zM.9 287.7c-2.6 8 .3 16.9 7.1 22l247.9 184-226.2-294zm160.8-88l94.3 294 94.3-294zm349.4 88l-28.8-88-226.3 294 247.9-184c6.9-5.1 9.7-14 7.2-22zM425.7 24.9c-3.1-8.9-15.7-8.9-18.9 0l-56.6 174.8h132z"/></svg></a> - <a style="display: none;" href="https://fosstodon.org/@ob" rel="me"></a> </div> </div> </body> diff --git a/layouts/index.xml b/layouts/index.xml @@ -1 +0,0 @@ -{{ partial "404.html" . }}