git push wip
This commit is contained in:
12
layouts/404.html
Normal file
12
layouts/404.html
Normal file
@ -0,0 +1,12 @@
|
||||
{{ define "title"}}
|
||||
404 | {{ .Site.Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq hugo.Environment "production" }}
|
||||
<script>plausible("404",{ props: { path: document.location.pathname } });</script>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main"}}
|
||||
<h1>NOT FOUND</h1>
|
||||
<p>You just hit a route that doesn't exist...</p>
|
||||
{{ end }}
|
22
layouts/_default/baseof.html
Normal file
22
layouts/_default/baseof.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
{{ partial "seo_schema.html" . }}
|
||||
|
||||
<title>{{ block "title" . }} {{ .Site.Title }} {{ end }}</title>
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="flexWrapper">
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<div class="content">
|
||||
<main class="main">{{ block "main" . }} {{ end }}</main>
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
39
layouts/_default/list.html
Normal file
39
layouts/_default/list.html
Normal file
@ -0,0 +1,39 @@
|
||||
{{ define "title"}}
|
||||
{{ .Title }} | {{ .Site.Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<div>
|
||||
<div class="listHeader">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</div>
|
||||
|
||||
{{ with .Content }}
|
||||
<div class="listContent">
|
||||
{{- . -}}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div>
|
||||
{{ range .Pages }}
|
||||
|
||||
<a href="{{ .Permalink }}">
|
||||
<!-- [html-validate-disable-next prefer-native-element] -->
|
||||
<div class="postListItem" role="listitem">
|
||||
<div class="postHeader">
|
||||
<span class="postTitle">{{ .Title }}</span>
|
||||
<span class="postDate">{{ .Date.Format "January 2, 2006" }}</span>
|
||||
</div>
|
||||
<div class="postExcerpt">
|
||||
<p>{{ .Summary }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
13
layouts/_default/single.html
Normal file
13
layouts/_default/single.html
Normal file
@ -0,0 +1,13 @@
|
||||
{{ define "title"}}
|
||||
{{ .Title }} | {{ .Site.Title }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ define "main" }}
|
||||
<div class="postWrapper">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
35
layouts/index.html
Normal file
35
layouts/index.html
Normal file
@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
<title>
|
||||
Home | {{ .Site.Title }}
|
||||
</title>
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="flexWrapper">
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<div class="content vertical">
|
||||
<main class="main">
|
||||
<div class="indexWrapper">
|
||||
<div>
|
||||
<h1 class="indexHeader">{{ .Site.Author.name }}</h1>
|
||||
</div>
|
||||
{{ partial "social.html" . }}
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
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