diff options
author | Michał Sapka <michal@sapka.me> | 2023-01-10 16:55:41 +0100 |
---|---|---|
committer | Michał Sapka <michal@sapka.me> | 2023-01-10 16:55:41 +0100 |
commit | 6fbcd9787ffc367a18cee3acbce01192772813c8 (patch) | |
tree | b4f10618e4aa62b762a10b9b8b9f46baddf046d0 /layouts/_default | |
parent | 6b40173ec7284c5f6068c3b809d84cd3d437e939 (diff) |
feat: more of layout
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 5 | ||||
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 5 |
3 files changed, 5 insertions, 7 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f37673b..ad626b9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -32,8 +32,6 @@ </head> <body> {{ block "header" . }} - {{ $image := resources.Get "logo.png" }} - {{ $image := $image.Resize "x40" }} <nav id="topnav"> <div> <a href="/">Home</a> @@ -45,7 +43,10 @@ <header> <div id="logo-space"> <a href="/"> + {{ $image := resources.Get "logo.png" }} + {{ $image := $image.Resize "x40" }} <div id="logo"> + <img alt="logo" src="{{ $image.Permalink }}" width={{$image.Width}} height={{$image.Height}}/> </div> <h1>{{ .Site.Title }}</h1> </a> diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 28eae45..6255b45 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,7 @@ {{- range where .Pages "Params.category" "!=" "pages"}} <article class="list"> <a href="{{ .Page.Permalink }}"> - {{ .Page.Title }} + <h2>{{ .Page.Title }}</h2> </a> ({{ .PublishDate.Format "January 2nd, 2006" }}) <div> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3c108c1..cf59eeb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,8 +1,5 @@ -{{ define "title" }} -{{ end }} - {{ define "main" }} -{{ .Page.Content }} +<article>{{ .Page.Content }}</article> <BR> added on {{ .PublishDate.Format "January 2, 2006" }} {{- if isset .Params "tags" -}} |