From 01fa8ffafee92e0ddc1c723f97f4fb3d33ca8b20 Mon Sep 17 00:00:00 2001 From: mms Date: Fri, 17 Nov 2023 23:08:13 +0100 Subject: feat: star trek section WIP --- layouts/_default/baseof.html | 14 +++++++++----- layouts/_default/index.html | 15 ++++++++++++--- layouts/_default/single.html | 6 ++++-- 3 files changed, 25 insertions(+), 10 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f5836cc2..49c7585f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -52,7 +52,7 @@ Home About Links - VCS + VCS RSS - - - +
+ + {{ partial "back_nav" . }} + {{ block "main" . }} {{ end }} {{ block "pagination" . }} {{ end }} + + {{ partial "back_nav" . }} +

diff --git a/layouts/_default/index.html b/layouts/_default/index.html index a9f87c80..3e7f1e6d 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -3,15 +3,24 @@

About

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! -

Articles

-{{ range (where site.RegularPages "Type" "!=" "special") }} +

Recent updates from the entire site

+ +{{ $recent_categories := slice "update" }} +{{ range first 7 (where .Site.RegularPages ".Params.category" "intersect" $recent_categories) }} {{ partial "partials/article_list_item.html" . }} {{ end }} +

All updates

+

Sections

+ + +

TOC

+You can also use Table of Contents.

{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 99911888..53f7f352 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,13 +2,15 @@

{{ .Page.Title }}

{{- if not (eq .Page.Type "special") }} + {{ if in .Page.Params.category "star-trek" }} + Earthdate + {{ end }} {{- end }} - {{ .Page.Content }} - + {{ .Page.Content }} {{- if not (in .Params.category "pages") }} {{- if not (eq .Page.Type "special") }} -- cgit v1.2.3