git push wip
This commit is contained in:
12
layouts/partials/footer.html
Normal file
12
layouts/partials/footer.html
Normal file
@ -0,0 +1,12 @@
|
||||
<footer class="footer">
|
||||
<div class="footerText">
|
||||
<span style="text-align:left;">© {{ now.Format "2006" }} {{ .Site.Author.name }}</span>
|
||||
<span style="font-size:2em;position:relative;top:-10px">∞</span>
|
||||
<span style="text-align:right;">
|
||||
<a href="/feed.xml" class="footerLink" rel="nofollow" target="_blank">RSS</a>
|
||||
<a href="https://git.xstefen.dev/xstefen/0x221e" class="footerLink" target="_blank">Source</a>
|
||||
<a href="https://gohugo.io/" class="footerLink" rel="nofollow noreferrer" target="_blank">Hugo</a>
|
||||
<a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink" rel="nofollow noreferrer" target="_blank">Nightfall</a>
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
20
layouts/partials/head.html
Normal file
20
layouts/partials/head.html
Normal file
@ -0,0 +1,20 @@
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Put your description here.">
|
||||
|
||||
{{ hugo.Generator }}
|
||||
|
||||
<!-- Permalink & RSSlink -->
|
||||
<link rel="canonical" href="{{ .Permalink }}" >
|
||||
{{- with .OutputFormats.Get "RSS" }}
|
||||
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" >
|
||||
<link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" >
|
||||
{{- end -}}
|
||||
|
||||
{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" as="style" type="text/css" crossorigin>
|
||||
|
||||
<link rel="preload" href="/fonts/MPlus-1m/MPlus-1m-Regular.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="/fonts/BloggerSans/BloggerSans-Regular.woff2" as="font" type="font/woff2" crossorigin>
|
||||
|
||||
{{ partialCached "plausible.html" .Site }}
|
22
layouts/partials/header.html
Normal file
22
layouts/partials/header.html
Normal file
@ -0,0 +1,22 @@
|
||||
<header class="headerWrapper">
|
||||
<div class="header">
|
||||
<div>
|
||||
<a href="{{ .Site.BaseURL }}">
|
||||
<span class="terminal">❯ 0x221E</span>
|
||||
</a>
|
||||
</div>
|
||||
<input class="side-menu" type="checkbox" id="side-menu"/>
|
||||
<label class="hamb" for="side-menu"><span class="hamb-line"></span></label>
|
||||
<nav class="headerLinks">
|
||||
<ul>
|
||||
{{ range .Site.Menus.header }}
|
||||
<li>
|
||||
<a href="{{ .URL | absURL }}" title="{{ .Title }}" >
|
||||
~/{{- .Name -}}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
4
layouts/partials/plausible.html
Normal file
4
layouts/partials/plausible.html
Normal file
@ -0,0 +1,4 @@
|
||||
{{ if eq hugo.Environment "production" }}
|
||||
<script defer data-domain="0x221e.com" src="https://stats.xstefen.dev/js/script.file-downloads.outbound-links.js"></script>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
{{ end }}
|
26
layouts/partials/seo_schema.html
Normal file
26
layouts/partials/seo_schema.html
Normal file
@ -0,0 +1,26 @@
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context" : "http://schema.org",
|
||||
"@type" : "BlogPosting",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id": "{{ .Site.BaseURL }}"
|
||||
},
|
||||
"articleSection" : "{{ .Section }}",
|
||||
"name" : "{{ .Title }}",
|
||||
"headline" : "{{ .Title }}",
|
||||
"description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
|
||||
"inLanguage" : "en-US",
|
||||
"author" : "{{ range .Site.Author }}{{ . }}{{ end }}",
|
||||
"creator" : "{{ range .Site.Author }}{{ . }}{{ end }}",
|
||||
"publisher": "{{ range .Site.Author }}{{ . }}{{ end }}",
|
||||
"accountablePerson" : "{{ range .Site.Author }}{{ . }}{{ end }}",
|
||||
"copyrightHolder" : "{{ range .Site.Author }}{{ . }}{{ end }}",
|
||||
"copyrightYear" : "{{ .Date.Format "2006" }}",
|
||||
"datePublished": "{{ .Date }}",
|
||||
"dateModified" : "{{ .Date }}",
|
||||
"url" : "{{ .Permalink }}",
|
||||
"wordCount" : "{{ .WordCount }}",
|
||||
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"Blog" ]
|
||||
}
|
||||
</script>
|
15
layouts/partials/social.html
Normal file
15
layouts/partials/social.html
Normal file
@ -0,0 +1,15 @@
|
||||
<div class="socialNavbar">
|
||||
<ul>
|
||||
{{ range sort .Site.Params.social "key"}}
|
||||
<li>
|
||||
{{ if isset . "icon" }}
|
||||
<a href="{{ .url | safeURL }}" aria-hidden="true" title="{{ .name }}">
|
||||
<i class="{{ .icon }}"></i>
|
||||
</a>
|
||||
{{ else }}
|
||||
<a href="{{ .url | safeURL }}">{{ .name }}</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
Reference in New Issue
Block a user