summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorMichał Sapka <michal@sapka.me>2023-01-08 16:23:14 +0100
committerMichał Sapka <michal@sapka.me>2023-01-08 16:23:14 +0100
commit23c2f6faa70341bef737ea14a5c859f676208117 (patch)
tree4212d025dfc311abc1a28ea8afe010dd2b484d7a /layouts
parent5e0ff20fcd6e6ce30a8c0b45eee601c87abbf17c (diff)
feat: add new content
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html21
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html2
3 files changed, 17 insertions, 8 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index e3cd969..99c7689 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -35,13 +35,20 @@
<header>
{{ $image := resources.Get "logo.png" }}
{{ $image := $image.Resize "x45" }}
- <a href="/">
- <img alt="logo" src="{{ $image.Permalink }}" width={{$image.Width}} height={{$image.Height}}/>
- <div>
+ <nav>
+ <a href="/">Home</a>
+ <a href="/about">About</a>
+ <a href="https://memes.sapka.me">Memes</a>
+ <a href="https://git.sapka.me">Git</a>
+ </nav>
+ <div id="logo-space">
+ <a href="/">
+ <div id="logo">
+ <img alt="logo" id="logo" src="{{ $image.Permalink }}" width={{$image.Width}} height={{$image.Height}}/>
+ </div>
<h1>{{ .Site.Title }}</h1>
- (because giphy sucks)
- </div>
- </a>
+ </a>
+ </div>
</header>
{{ end }}
<main>
@@ -55,7 +62,7 @@
</main>
<footer>
<div>
- <a href="https://github.com/michalsapka/website" target="_blank">Source code is available</a>. Theme is temporary. Only glory of Satan is eternal.
+ <a href="https://git.sapka.me/michal-sapka-me.git/" target="_blank">Source code is available</a>. Theme is temporary. Only glory of Satan is eternal.
<BR><BR>
Unless stated otherwise, all content Copyright 2022, 2023 Michał Sapka. Unauthorized use under penalty of watching a random Netflix show or a fine of one million dolars.
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index d4ad721..28eae45 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- {{ range .Pages }}
+{{- range where .Pages "Params.category" "!=" "pages"}}
<article class="list">
<a href="{{ .Page.Permalink }}">
{{ .Page.Title }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a6a1697..3c108c1 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,6 +2,8 @@
{{ end }}
{{ define "main" }}
+{{ .Page.Content }}
+<BR>
added on {{ .PublishDate.Format "January 2, 2006" }}
{{- if isset .Params "tags" -}}
{{- $tagsLen := len .Params.tags -}}