aboutsummaryrefslogtreecommitdiff
path: root/www/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'www/layouts')
-rw-r--r--www/layouts/_partials/preview/posts.html6
-rw-r--r--www/layouts/baseof.html2
-rw-r--r--www/layouts/home.html4
-rw-r--r--www/layouts/list.html1
-rw-r--r--www/layouts/single.html6
5 files changed, 15 insertions, 4 deletions
diff --git a/www/layouts/_partials/preview/posts.html b/www/layouts/_partials/preview/posts.html
index f2cb640..291c4b2 100644
--- a/www/layouts/_partials/preview/posts.html
+++ b/www/layouts/_partials/preview/posts.html
@@ -1,5 +1,11 @@
{{ $h := .h }}
+{{ $is_first := true}}
{{ range .pages }}
+ {{ if $is_first }}
+ {{ $is_first = false }}
+ {{ else }}
+ <hr class="article-preview-hr">
+ {{ end }}
{{ partial "preview/post.html" (dict
"h" $h
"page" .)
diff --git a/www/layouts/baseof.html b/www/layouts/baseof.html
index 6d00be5..b9cd715 100644
--- a/www/layouts/baseof.html
+++ b/www/layouts/baseof.html
@@ -26,6 +26,8 @@
{{ end }}
<hr/>
<footer class="mono-link">
+ {{ block "footer" . }}
+ {{ end }}
<p id="license">
<small>This work is licensed under
<a rel="license noopener noreferrer"
diff --git a/www/layouts/home.html b/www/layouts/home.html
index 3cfc455..38f7604 100644
--- a/www/layouts/home.html
+++ b/www/layouts/home.html
@@ -45,7 +45,7 @@
</ul>
</div>
</section>
- <hr>
+ <hr/>
{{ with .GetPage "/posts" }}
<section id="recent-posts">
<h2>Recent Posts <a class="mono-link" href="{{ .RelPermalink }}">(all)</a></h2>
@@ -55,7 +55,7 @@
}}
</section>
{{ end }}
- <hr>
+ <hr/>
<section>
<h2 id="friends">My Friends <small>(more links are being collected ...)</small></h2>
<div id="friends-container">
diff --git a/www/layouts/list.html b/www/layouts/list.html
index be33d10..1d4ec56 100644
--- a/www/layouts/list.html
+++ b/www/layouts/list.html
@@ -5,6 +5,7 @@
{{ define "content" }}
{{ partial "nav.html" . }}
<h1>{{ .Title }}</h1>
+ <hr/>
{{ partial "preview/posts.html" (dict
"h" "h3"
"pages" .RegularPages
diff --git a/www/layouts/single.html b/www/layouts/single.html
index cd0e9c5..33360b4 100644
--- a/www/layouts/single.html
+++ b/www/layouts/single.html
@@ -18,6 +18,8 @@
{{ end}}
</p>
{{ .Content }}
- <hr class="end-hr"/>
- {{ partial "nav.html" . }}
{{ end }}
+
+{{ define "footer" }}
+ {{ partial "nav.html" . }}
+{{ end }} \ No newline at end of file