diff options
author | Mark Powers <mark@marks.kitchen> | 2024-10-24 08:14:08 -0500 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2024-10-24 08:14:08 -0500 |
commit | 511cbfbafde4ff463751fadf8dd15d3b7eb41cea (patch) | |
tree | 6d89005ca5c8d83481cb794581887f5943175192 /layouts/partials | |
parent | 4a7862b0f1c7cec898bfa08114819a74690d4962 (diff) |
Refactor theme usage
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 3 | ||||
-rw-r--r-- | layouts/partials/head.html | 45 | ||||
-rw-r--r-- | layouts/partials/header.html | 13 |
3 files changed, 61 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..ecf9420 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,3 @@ +<footer> + <div>Mark Powers <<span class="email">mark</span>> © 2023 </div> +</footer> diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..29e9f49 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,45 @@ +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- author --> + <meta name="author" content="{{ .Site.Author.name }}"> + + <!-- description --> + <meta name="description" content="{{ .Site.Params.Description }}"> + + <!-- favicon --> + <link rel="icon" href="{{ .Site.Params.favicon | absURL }}"> + + <!-- keywords --> + {{ if .Keywords }} + <meta name="keywords" content="{{ range $key, $value := .Keywords }} {{ $value }} {{ end }}"> + {{ end }} + + <!-- permalink --> + <link rel="canonical" href="{{ .Permalink }}"> + + <!-- rss --> + {{ range .AlternativeOutputFormats -}} + {{ printf ` + <link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + <!-- custom feeds --> + <link rel="alternative" type="application/rss+xml" href="https://huginn.marks.kitchen/users/1/web_requests/23/reblogs.xml" title="Mark's Reblogs" /> + + <!-- schema --> + {{ template "_internal/schema.html" . }} + + <!-- style --> + <link media="screen" rel="stylesheet" href='{{ "css/common.css" | absURL }}'> + + <!-- title --> + {{ if .IsHome }} + <title>{{ .Site.Title }}</title> + {{ else }} + <title>{{ .Title }} - {{ .Site.Title }}</title> + {{ end }} + + {{ block "head" . }}{{ end }} +</head> diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..97fec62 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,13 @@ +<header id="header"> + <h1> + <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + </h1> + + <nav> + {{ range .Site.Menus.main }} + <span class="nav-bar-item"> + <a class="link" href="{{ .URL | safeURL }}">{{ .Name }}</a> + </span> + {{ end }} + </nav> +</header> |