diff options
author | JJ <nicetry@noemail.com> | 2025-03-19 14:56:26 +0000 |
---|---|---|
committer | JJ <nicetry@noemail.com> | 2025-03-19 14:56:26 +0000 |
commit | 16f52b7bef745097f7076dde76715db378b54343 (patch) | |
tree | cfcacda8adced2059dcc120d2bc2446d3c4f960a /layouts/partials |
first commit
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/custom_body.html | 3 | ||||
-rw-r--r-- | layouts/partials/custom_head.html | 3 | ||||
-rw-r--r-- | layouts/partials/favicon.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 7 | ||||
-rw-r--r-- | layouts/partials/nav.html | 9 | ||||
-rw-r--r-- | layouts/partials/seo_tags.html | 22 |
7 files changed, 47 insertions, 0 deletions
diff --git a/layouts/partials/custom_body.html b/layouts/partials/custom_body.html new file mode 100644 index 0000000..951fb15 --- /dev/null +++ b/layouts/partials/custom_body.html @@ -0,0 +1,3 @@ + <!-- A partial to be overwritten by the user. + Simply place a custom_body.html into + your local /layouts/partials-directory --> diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html new file mode 100644 index 0000000..4c53c40 --- /dev/null +++ b/layouts/partials/custom_head.html @@ -0,0 +1,3 @@ +<!-- A partial to be overwritten by the user. + Simply place a custom_head.html into + your local /layouts/partials-directory --> diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html new file mode 100644 index 0000000..ccf1a5d --- /dev/null +++ b/layouts/partials/favicon.html @@ -0,0 +1,2 @@ +{{ with .Site.Params.favicon }} +<link rel="shortcut icon" href="{{ . | absURL }}" />{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..861b2cc --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1 @@ +<p>Find me here: <a href="https://git.jezl.xyz">git</a></p> diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..12fe8b2 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,7 @@ +<div> + <img src="/images/avatar/avatar.jpg" alt="avatar "> + <a href="{{ "" | relURL }}" class="title"> + <h2>{{ .Site.Title }}</h2> + </a> + <nav>{{- partial "nav.html" . -}}</nav> +</div> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..be5539c --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,9 @@ +{{ with .Site.GetPage "/blog" }} +<a href="{{ "blog" | relURL }}">blog</a> +{{ end }} +{{ with .Site.GetPage "/snippets" }} +<a href="{{ "snippets" | relURL }}">snippets</a> +{{ end }} +{{ with .Site.GetPage "/projects" }} +<a href="{{ "projects" | relURL }}">projects</a> +{{ end }}
\ No newline at end of file diff --git a/layouts/partials/seo_tags.html b/layouts/partials/seo_tags.html new file mode 100644 index 0000000..7cea9a1 --- /dev/null +++ b/layouts/partials/seo_tags.html @@ -0,0 +1,22 @@ +<!-- Primary Meta Tags --> +<meta + name="title" + content="{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}" +/> +<meta + name="description" + content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" +/> +<meta name="keywords" content="{{ if .IsPage}}{{ range $index, $tag := +.Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := +.Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ +end }}{{ end }}{{ end }}" /> + +<!-- Open Graph / Facebook --> +{{ template "_internal/opengraph.html" . }} + +<!-- Twitter --> +{{ template "_internal/twitter_cards.html" . }} + +<!-- Microdata --> +{{ template "_internal/schema.html" . }} |