diff options
author | Mateja <mail@matejamaric.com> | 2021-01-29 00:17:38 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-01-29 00:17:38 +0100 |
commit | 2d46defaae5cffb48ecdd4f501453a0c39239039 (patch) | |
tree | 9de18dd5ada603d03cd445c14c7ac96eb68faeb1 /layouts/_default | |
parent | fad5048739420150a4bd0eab724c4544bcc8a444 (diff) | |
download | blog-2d46defaae5cffb48ecdd4f501453a0c39239039.tar.gz blog-2d46defaae5cffb48ecdd4f501453a0c39239039.zip |
Disable taxonomies and use newer syntax.
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 10 | ||||
-rw-r--r-- | layouts/_default/list.html | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 694d8a0..9805f8a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,11 +19,11 @@ <body> <nav> <div class="mm">Mateja Maric</div> - <a class="{{ if eq .URL `/`}}active{{ end }}" href="/">Home</a> - <a class="{{ if eq .URL `/blog/`}}active{{ end }}" href="/blog/">Blog</a> - <a href="https://github.com/MatejaMaric">GitHub</a> - <a href="https://git.matejamaric.com">Git server</a> - <a class="{{ if eq .URL `/contact/`}}active{{ end }}" href="/contact/">Contact</a> + <a {{ if eq .RelPermalink "/" }} class="active" {{ end }} href="/">Home</a> + <a {{ if eq .RelPermalink "/blog/" }} class="active" {{ end }} href="/blog/">Blog</a> + <a target="_blank" href="https://github.com/MatejaMaric">GitHub</a> + <a target="_blank" href="https://git.matejamaric.com">Git server</a> + <a {{ if eq .RelPermalink "/contact/" }} class="active" {{ end }} href="/contact/">Contact</a> </nav> <main> {{ block "main" . }}{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2fcfeba..2051961 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -3,7 +3,7 @@ <h3>Posts</h3> <ul> {{ range .Pages }} - <li>{{ .Date.Format "2 Jan 2006" }} - <a href="{{ .URL }}">{{ .Title }}</a></li> + <li>{{ .Date.Format "2 Jan 2006" }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ end }} </ul> {{ end }} |