diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 14 | ||||
-rw-r--r-- | layouts/_default/index.html | 15 | ||||
-rw-r--r-- | layouts/_default/single.html | 6 |
3 files changed, 25 insertions, 10 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f5836cc..49c7585 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -52,7 +52,7 @@ <a href="/">Home</a> <a href="/about">About</a> <a href="/links">Links</a> - <a href="https://vcs.sapka.me">VCS</a> + <a href="https://vcs.sapka.me">VCS</a> <a href="/index.xml">RSS</a> </nav> <nav id="categories-nav"> @@ -60,20 +60,24 @@ <a href="/category/emacs">Emacs</a> <a href="/category/bsd">BSD</a> <a href="/category/computer-history">Computer History</a> - <a href="/category/star-trek">Star Trek</a> + <a href="/star-trek">Star Trek</a> </nav> </nav> - - </header> - + </header> <main class="right-column"> + + {{ partial "back_nav" . }} + {{ block "main" . }} {{ end }} {{ block "pagination" . }} {{ end }} + + {{ partial "back_nav" . }} + <br><br> </main> diff --git a/layouts/_default/index.html b/layouts/_default/index.html index a9f87c8..3e7f1e6 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -3,15 +3,24 @@ <h2>About</h2> Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This website is not dedicated to any particular one thing. Instead, I write whatever interests me most at the moment. No content here is auto-generated, so any bugs, problems, or controversies are entirely on me! -<h2>Articles</h2> -{{ range (where site.RegularPages "Type" "!=" "special") }} +<h2>Recent updates from the entire site</h2> + +{{ $recent_categories := slice "update" }} +{{ range first 7 (where .Site.RegularPages ".Params.category" "intersect" $recent_categories) }} {{ partial "partials/article_list_item.html" . }} {{ end }} +<p><a href="/all_updates">All updates</a></p> </article> +<h2>Sections</h2> + <nav> - <b><a href="/site/info/">Site info</a></b> : you can find site uptates, metrics, statics, and legal thingies here. + <P> ✦ <a href="/star-trek/home/"><b>Star Trek fan site</b>: my little shrine to the greatest american Sci-Fi that has ever graced our screens.</a> </p> + <p> ♥ <a href="/site/info/"><b>Site info</b> : you can find site uptates, metrics, statics, and legal thingies here.</a></p> </nav> + +<h2>TOC</h2> +You can also use <a href="/toc">Table of Contents</a>. <br><br> {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9991188..53f7f35 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,13 +2,15 @@ <article> <h2>{{ .Page.Title }}</h2> {{- if not (eq .Page.Type "special") }} + {{ if in .Page.Params.category "star-trek" }} + Earthdate + {{ end }} <time datetime="{{.PublishDate.Format "2006-01-02" }}"> {{ .PublishDate.Format "January 2, 2006" }} </time> {{- end }} - {{ .Page.Content }} - + {{ .Page.Content }} {{- if not (in .Params.category "pages") }} {{- if not (eq .Page.Type "special") }} |