This commit is contained in:
Luke Smith
2022-05-08 22:37:00 -04:00
parent dd78002586
commit e5645601a6
12 changed files with 47 additions and 26 deletions

View File

@@ -5,7 +5,7 @@
See related:</br>
{{ range $k, $v := .Params.tags }}
{{ $url := printf "tags/%s" (. | urlize | lower) }}
<a href="{{ $url | absURL }}">{{ . }}</a>
<a href="{{ $url | absURL }}">{{ . | title }}</a>
{{ if lt $k (sub $tagsLen 1) }}&middot;{{ end }}
{{ end }}
</div>

View File

@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language }}">
<head>
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel='stylesheet' type='text/css' href='/style.css'>

View File

@@ -1,7 +1,7 @@
<nav>
<ul>
{{ range.Site.Menus.main }}
<a href="{{ .URL }}"><li>{{ .Pre }}{{ .Name }}</li></a>
<ul>{{ $sec := .Page.Section }}{{ $file := .File.TranslationBaseName }}
{{ range.Site.Menus.main }}{{ $base := path.Base .URL }}
<a {{ if or ( eq $sec $base ) ( eq $file $base ) ( and (eq $sec "") ( eq $file "_index") (eq $base "/") ) }}class="menuactive" {{ end }}href="{{ .URL }}"><li><span class=pre>{{ .Pre }}</span><span class=menuname>{{ .Name }}</span></li></a>
{{ end }}
</ul>
</nav>

View File

@@ -1,10 +0,0 @@
{{ if isset .Site.Taxonomies "tags" }}
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
<div class="tagcloud">
{{ range $name, $items := .Site.Taxonomies.tags }}
{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}
<a href="{{ $url | absURL }}">{{ $name }}</a>
{{ end }}
</div>
{{ end }}
{{ end }}