diff options
Diffstat (limited to 'www/layouts')
-rw-r--r-- | www/layouts/_default/list.html | 11 | ||||
-rw-r--r-- | www/layouts/index.html | 21 | ||||
-rw-r--r-- | www/layouts/shortcodes/todo.html | 6 |
3 files changed, 25 insertions, 13 deletions
diff --git a/www/layouts/_default/list.html b/www/layouts/_default/list.html index c7c6cce..5bb0b5e 100644 --- a/www/layouts/_default/list.html +++ b/www/layouts/_default/list.html @@ -4,9 +4,14 @@ {{ define "content" }} {{ partial "nav.html" . }} - <h1>Posts</h1> + <h1>{{ .Title }}</h1> + {{ $pages := .RegularPages }} + {{ if .Param "recursive" }} + {{ $pages = .RegularPagesRecursive }} + {{ end }} {{ partial "preview/posts.html" (dict - "h" "h3" - "pages" (.RegularPages.ByDate.Reverse.Limit 3)) + "h" "h3" + "pages" $pages + ) }} {{ end }} diff --git a/www/layouts/index.html b/www/layouts/index.html index 7c608f1..e05af03 100644 --- a/www/layouts/index.html +++ b/www/layouts/index.html @@ -26,23 +26,26 @@ <hr /> <section> <p>Welcome to my home page! Nice to meet you here! 🥰</p> - <p>If you have something interesting to share with me, feel free to email me at - <a rel="noopener noreferrer" href="mailto:crupest@crupest.life">crupest@crupest.life</a>. - You can also create an issue in any of my repos on GitHub to talk anything to me. + <p>If you have something interesting to share with me, feel free to email me + at <a rel="noopener noreferrer" href="mailto:crupest@crupest.life">crupest@crupest.life</a>. + You can also create an issue in any of my repos + on <a rel="noopener noreferrer" href="https://github.com/crupest">GitHub</a> to talk + anything to me. </p> <div id="links" class="mono-link"> - links: + goto: <ul> - <li><a href="{{ .RelPermalink }}">home</a></li> <li><a href="{{ absURL "/git/" }}">git</a></li> - {{ with .GetPage "/hurd" }} + {{ with .GetPage "/notes/hurd" }} <li><a href="{{ .RelPermalink }}">hurd</a></li> {{ end }} - {{ with .GetPage "/todos" }} + {{ with .GetPage "/notes/todos" }} <li><a href="{{ .RelPermalink }}">todos</a></li> {{ end }} - <li><a rel="noopener noreferrer" href="https://github.com/crupest">github</a></li> - </ul> + {{ with .GetPage "/notes/cheat-sheet" }} + <li><a href="{{ .RelPermalink }}">cheat-sheet</a></li> + {{ end }} + </ul> </div> </section> <hr> diff --git a/www/layouts/shortcodes/todo.html b/www/layouts/shortcodes/todo.html index 1327b31..b4fc680 100644 --- a/www/layouts/shortcodes/todo.html +++ b/www/layouts/shortcodes/todo.html @@ -1 +1,5 @@ -<span class="todo {{ .Get "state" }}">{{ .Get "name" }}</span>
\ No newline at end of file +<section class="todo {{ .Get "state" }}"> + <h3>{{ .Get "name" }}</h3> + {{ .Inner }} +</section> + |