aboutsummaryrefslogtreecommitdiff
path: root/www/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'www/layouts')
-rw-r--r--www/layouts/_partials/css-res.html (renamed from www/layouts/partials/css-res.html)0
-rw-r--r--www/layouts/_partials/css.html (renamed from www/layouts/partials/css.html)0
-rw-r--r--www/layouts/_partials/date.html (renamed from www/layouts/partials/date.html)0
-rw-r--r--www/layouts/_partials/highlight.html (renamed from www/layouts/partials/highlight.html)0
-rw-r--r--www/layouts/_partials/js.html (renamed from www/layouts/partials/js.html)0
-rw-r--r--www/layouts/_partials/nav.html (renamed from www/layouts/partials/nav.html)0
-rw-r--r--www/layouts/_partials/preview/article.html (renamed from www/layouts/partials/preview/article.html)0
-rw-r--r--www/layouts/_partials/preview/post.html (renamed from www/layouts/partials/preview/post.html)0
-rw-r--r--www/layouts/_partials/preview/posts.html13
-rw-r--r--www/layouts/_shortcodes/link-group.html (renamed from www/layouts/shortcodes/link-group.html)0
-rw-r--r--www/layouts/baseof.html (renamed from www/layouts/_default/baseof.html)2
-rw-r--r--www/layouts/home.html (renamed from www/layouts/index.html)10
-rw-r--r--www/layouts/list.html (renamed from www/layouts/_default/list.html)7
-rw-r--r--www/layouts/partials/preview/posts.html7
-rw-r--r--www/layouts/shortcodes/mono.html3
-rw-r--r--www/layouts/shortcodes/todo.html5
-rw-r--r--www/layouts/single.html (renamed from www/layouts/_default/single.html)6
17 files changed, 26 insertions, 27 deletions
diff --git a/www/layouts/partials/css-res.html b/www/layouts/_partials/css-res.html
index 6fabf67..6fabf67 100644
--- a/www/layouts/partials/css-res.html
+++ b/www/layouts/_partials/css-res.html
diff --git a/www/layouts/partials/css.html b/www/layouts/_partials/css.html
index 12d3353..12d3353 100644
--- a/www/layouts/partials/css.html
+++ b/www/layouts/_partials/css.html
diff --git a/www/layouts/partials/date.html b/www/layouts/_partials/date.html
index 9769e4e..9769e4e 100644
--- a/www/layouts/partials/date.html
+++ b/www/layouts/_partials/date.html
diff --git a/www/layouts/partials/highlight.html b/www/layouts/_partials/highlight.html
index 28c510e..28c510e 100644
--- a/www/layouts/partials/highlight.html
+++ b/www/layouts/_partials/highlight.html
diff --git a/www/layouts/partials/js.html b/www/layouts/_partials/js.html
index 16dafa4..16dafa4 100644
--- a/www/layouts/partials/js.html
+++ b/www/layouts/_partials/js.html
diff --git a/www/layouts/partials/nav.html b/www/layouts/_partials/nav.html
index 42c9ad1..42c9ad1 100644
--- a/www/layouts/partials/nav.html
+++ b/www/layouts/_partials/nav.html
diff --git a/www/layouts/partials/preview/article.html b/www/layouts/_partials/preview/article.html
index 6245434..6245434 100644
--- a/www/layouts/partials/preview/article.html
+++ b/www/layouts/_partials/preview/article.html
diff --git a/www/layouts/partials/preview/post.html b/www/layouts/_partials/preview/post.html
index f0c6fb5..f0c6fb5 100644
--- a/www/layouts/partials/preview/post.html
+++ b/www/layouts/_partials/preview/post.html
diff --git a/www/layouts/_partials/preview/posts.html b/www/layouts/_partials/preview/posts.html
new file mode 100644
index 0000000..291c4b2
--- /dev/null
+++ b/www/layouts/_partials/preview/posts.html
@@ -0,0 +1,13 @@
+{{ $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" .)
+ }}
+{{ end }} \ No newline at end of file
diff --git a/www/layouts/shortcodes/link-group.html b/www/layouts/_shortcodes/link-group.html
index b16c2bc..b16c2bc 100644
--- a/www/layouts/shortcodes/link-group.html
+++ b/www/layouts/_shortcodes/link-group.html
diff --git a/www/layouts/_default/baseof.html b/www/layouts/baseof.html
index 6d00be5..b9cd715 100644
--- a/www/layouts/_default/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/index.html b/www/layouts/home.html
index af3e11d..38f7604 100644
--- a/www/layouts/index.html
+++ b/www/layouts/home.html
@@ -33,19 +33,19 @@
goto:
<ul>
<li><a href="{{ absURL "/git/" }}">git</a></li>
+ {{ with .GetPage "/notes" }}
+ <li><a href="{{ .RelPermalink }}">notes</a></li>
+ {{ end }}
{{ with .GetPage "/notes/hurd" }}
<li><a href="{{ .RelPermalink }}">hurd</a></li>
{{ end }}
- {{ with .GetPage "/notes/todos" }}
- <li><a href="{{ .RelPermalink }}">todos</a></li>
- {{ end }}
{{ with .GetPage "/notes/cheat-sheet" }}
<li><a href="{{ .RelPermalink }}">cheat-sheet</a></li>
{{ end }}
</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/_default/list.html b/www/layouts/list.html
index 5bb0b5e..1d4ec56 100644
--- a/www/layouts/_default/list.html
+++ b/www/layouts/list.html
@@ -5,13 +5,10 @@
{{ define "content" }}
{{ partial "nav.html" . }}
<h1>{{ .Title }}</h1>
- {{ $pages := .RegularPages }}
- {{ if .Param "recursive" }}
- {{ $pages = .RegularPagesRecursive }}
- {{ end }}
+ <hr/>
{{ partial "preview/posts.html" (dict
"h" "h3"
- "pages" $pages
+ "pages" .RegularPages
)
}}
{{ end }}
diff --git a/www/layouts/partials/preview/posts.html b/www/layouts/partials/preview/posts.html
deleted file mode 100644
index f2cb640..0000000
--- a/www/layouts/partials/preview/posts.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ $h := .h }}
-{{ range .pages }}
- {{ partial "preview/post.html" (dict
- "h" $h
- "page" .)
- }}
-{{ end }} \ No newline at end of file
diff --git a/www/layouts/shortcodes/mono.html b/www/layouts/shortcodes/mono.html
deleted file mode 100644
index ab183a5..0000000
--- a/www/layouts/shortcodes/mono.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<div class="mono-container">
- {{ .Inner | .Page.RenderString }}
-</div>
diff --git a/www/layouts/shortcodes/todo.html b/www/layouts/shortcodes/todo.html
deleted file mode 100644
index b4fc680..0000000
--- a/www/layouts/shortcodes/todo.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<section class="todo {{ .Get "state" }}">
- <h3>{{ .Get "name" }}</h3>
- {{ .Inner }}
-</section>
-
diff --git a/www/layouts/_default/single.html b/www/layouts/single.html
index cd0e9c5..33360b4 100644
--- a/www/layouts/_default/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