diff options
author | Mark Powers <mark@marks.kitchen> | 2024-10-28 20:16:15 -0500 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2024-10-28 20:16:15 -0500 |
commit | cfa56ed5ca165a3a2e2b4bedf2076cd101935fe4 (patch) | |
tree | 3502ba5b04e4ba9479c3cf3d6ff0855256a96b80 /layouts | |
parent | 2533c0fbbea6f3bf52cf54861fce1f43a529c60f (diff) |
Update layout
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 5 | ||||
-rw-r--r-- | layouts/partials/footer.html | 7 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/recent_blog.html | 9 |
5 files changed, 20 insertions, 5 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 45c8631..b33da49 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -13,7 +13,7 @@ <ul> {{ range .Pages }} <li> - <a class="link" href="{{ .RelPermalink }}">{{ .Title }} <i class="item-date"> --- {{ .PublishDate.Format "January 2, 2006"}}</i></a> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> - <i class="item-date">{{ .PublishDate.Format "January 2, 2006"}}</i> </li> {{ end }} </ul> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 52e9c13..50810e9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,8 +4,9 @@ {{ define "main" }} <main id="main" class="post"> - <h1>{{ .Title }}</h1> + <h1 class="title">{{ .Title }}</h1> <div><i>{{ .PublishDate.Format "January 2, 2006"}}</i></div> + <hr> <article class="content"> {{ .Content }} </article> @@ -13,7 +14,7 @@ <div> <b>Keywords: </b> {{ range .Params.tags }} - <a class="link" href='{{ "tags" | absURL }}/{{ . | urlize }}'>#{{ . }}</a> + <a href='{{ "tags" | absURL }}/{{ . | urlize }}'>#{{ . }}</a> {{ end }} </div> {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ecf9420..b6b233a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,8 @@ <footer> - <div>Mark Powers <<span class="email">mark</span>> © 2023 </div> + <hr /> + <div>Mark Powers <<span class="email">mark</span>> © 2024 </div> + <div class="links"> + <span><a href="https://fosstodon.org/@markp">Mastodon</a></span> + <span><a href="/index.xml">RSS</a></span> + </div> </footer> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 97fec62..1099258 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,7 +6,7 @@ <nav> {{ range .Site.Menus.main }} <span class="nav-bar-item"> - <a class="link" href="{{ .URL | safeURL }}">{{ .Name }}</a> + <a href="{{ .URL | safeURL }}">{{ .Name }}</a> </span> {{ end }} </nav> diff --git a/layouts/shortcodes/recent_blog.html b/layouts/shortcodes/recent_blog.html new file mode 100644 index 0000000..8a4ec89 --- /dev/null +++ b/layouts/shortcodes/recent_blog.html @@ -0,0 +1,9 @@ +<ul> +{{ range first 3 (where .Site.RegularPages "Section" "blog") }} + <li class="post"> + {{.BundleType}} + <span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format "January 2, 2006" }}</span> + <p>{{ .Summary }}</p> + </li> +{{ end }} +</ul>
\ No newline at end of file |