aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2020-01-27 01:01:55 -0500
committerMatt Kohls <mattkohls13@gmail.com>2020-01-27 01:01:55 -0500
commit241bad276058bfe617788a3d70b559a642f085e1 (patch)
tree994e3421e8b9dc94407dfd30f46595d67e6c3db9 /layouts/_default
parentc9e1a414d95c5c5061a4743147a4dd4d37070c59 (diff)
downloadsimplesource-241bad276058bfe617788a3d70b559a642f085e1.tar.gz
simplesource-241bad276058bfe617788a3d70b559a642f085e1.tar.bz2
simplesource-241bad276058bfe617788a3d70b559a642f085e1.zip
Posts now show tags, removing .URL (depreciated)
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html9
2 files changed, 10 insertions, 1 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">