aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html9
-rw-r--r--layouts/index.html2
3 files changed, 11 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 249ea3d..d1ed05f 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -16,7 +16,7 @@
<ul>
{{ range (where .Data.Pages "Section" "!=" "") }}
<li>{{ .Date.Format "Jan 2nd, 2006" }}
- <a href="{{ .URL }}">{{ .Title | markdownify }}</a>
+ <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
</ul>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index cb76f1a..cf7bb07 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -10,6 +10,15 @@
<div class="content">
<h1>{{ .Title | markdownify }}</h1>
</div>
+ <div class="info">
+ <div class="content">
+ {{ range $i := (slice "categories" "tags") }}
+ {{ with ($.Param $i) }}
+ {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}<br>
+ {{ end }}
+ {{ end }}
+ </div>
+ </div>
</div>
</header>
<div class="content">
diff --git a/layouts/index.html b/layouts/index.html
index e0c9263..be384db 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -19,7 +19,7 @@
<ul>
{{ range where .Site.RegularPages "Section" "posts" }}
<li>{{ .Date.Format "January 2, 2006" }}
- <a href="{{ .URL }}">{{ .Title | markdownify }}</a>
+ <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
</ul>