Anotha lil dump
Think I'm finally finished fiddling with the devops stuff and ready to
finally focus on the content! 😁
This commit is contained in:
10
layouts/404.html
Normal file
10
layouts/404.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<a href='{{ "/" | relURL }}'>
|
||||
<article>
|
||||
<header>
|
||||
<h1>Ooops 404 Not Found!</h1>
|
||||
</header>
|
||||
<p>Click to go to the front page!</p>
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
@@ -1,21 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=”robots” content="index,follow">
|
||||
<meta charset='UTF-8'>
|
||||
<meta name='robots' content='index,follow'>
|
||||
{{ with resources.Get "favicon.ico" | resources.Fingerprint }}
|
||||
<link rel="icon" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" />
|
||||
<link rel='icon' href='{{ .RelPermalink }}' integrity='{{ .Data.Integrity }}' />
|
||||
{{ end }}
|
||||
{{ block "meta" . }}
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta name='viewport' content='width=device-width,initial-scale=1.0'>
|
||||
{{ end }}
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta property="og:title" content="{{ site.Title }}" />
|
||||
<meta property="og:url" content="{{ site.BaseURL }}" />
|
||||
<meta property="og:site_name" content="{{ site.Title }}" />
|
||||
<!-- <meta property="og:image" content=""> -->
|
||||
<meta name='twitter:card' content='summary'>
|
||||
<meta property='og:title' content='{{ site.Title }}' />
|
||||
<meta property='og:url' content='{{ site.BaseURL }}' />
|
||||
<meta property='og:site_name' content='{{ site.Title }}' />
|
||||
<!-- <meta property='og:image' content=''> -->
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ printf `<link rel='%s' type='%s' href='%s' title='%s' />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css' crossorigin='anonymous'>
|
||||
{{ if isset .Params "title" }}
|
||||
@@ -28,19 +28,19 @@
|
||||
{{ end }}
|
||||
{{ block "head" . }}{{ end }}
|
||||
{{ if .Param "chroma" }}
|
||||
{{ with resources.Get "chroma.css" | resources.Minify | resources.Fingerprint }}
|
||||
<link href='{{ .Rel }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
|
||||
{{ with resources.Get "chroma.scss" | toCSS | postCSS | minify | fingerprint | resources.PostProcess }}
|
||||
<link href='{{ .RelPermalink }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ with resources.Get "main.scss" | resources.ToCSS (dict "outputStyle" "expanded" "enableSourceMap" false) | resources.Fingerprint }}
|
||||
<link href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" rel="stylesheet">
|
||||
{{ with resources.Get "main.scss" | toCSS | postCSS | minify | fingerprint | resources.PostProcess }}
|
||||
<link href='{{ .RelPermalink }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
|
||||
{{ end }}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
{{ partial "nav.html" . }}
|
||||
</header>
|
||||
<div id="content">
|
||||
<div id='content'>
|
||||
<main>
|
||||
{{ if .Param "toc" }}
|
||||
<div class='row'>
|
||||
@@ -56,7 +56,6 @@
|
||||
{{ end }}
|
||||
</main>
|
||||
</div>
|
||||
<!-- {{ partial "i18n/list.html" . }} -->
|
||||
<footer>
|
||||
{{ partial "footer.html" . }}
|
||||
</footer>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
{{ .Content }}
|
||||
<ul class="contents">
|
||||
<ul class='contents'>
|
||||
{{ range .Pages }}
|
||||
<br />
|
||||
<a href='{{ .RelPermalink }}'>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
{{ .Content }}
|
||||
<ul class="contents">
|
||||
<ul class='contents'>
|
||||
{{ range .Pages }}
|
||||
<br />
|
||||
<a href='{{ .RelPermalink }}'>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<ol class="nav navbar-nav">
|
||||
<ol class='nav navbar-nav'>
|
||||
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||
</ol>
|
||||
{{ define "breadcrumbnav" }}
|
||||
@@ -7,7 +7,7 @@
|
||||
{{ else if not .p1.IsHome }}
|
||||
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
|
||||
{{ end }}
|
||||
<li{{ if eq .p1 .p2 }} class="active"{{ end }}>
|
||||
<a href="{{ .p1.RelPermalink }}">{{ .p1.Title }}</a>
|
||||
<li{{ if eq .p1 .p2 }} class='active'{{ end }}>
|
||||
<a href='{{ .p1.RelPermalink }}'>{{ .p1.Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
@@ -1,13 +1,11 @@
|
||||
<center>
|
||||
<div class='footer-content'>
|
||||
<p>{{ now.Format "2006" }} © Sivert V. Sæther</p>
|
||||
</div>
|
||||
<div class='footer-social'>
|
||||
<!--
|
||||
<a href="#" class="icons"><img src="/facebook-icon.svg"></a>
|
||||
<a href="#" class="icons"><img src="/linkedin-icon.svg"></a>
|
||||
<a href="#" class="icons"><img src="/twitter-icon.svg"></a>
|
||||
<a href="#" class="icons"><img src="/youtube-icon.svg"></a>
|
||||
-->
|
||||
<p>2020 - {{ now.Format "2006" }} ©{{ with .Site.Author }} {{ .name }}{{ end }}</p>
|
||||
</div>
|
||||
<!-- <div class='footer-social'>
|
||||
<a href='#' class='icons'><img src='/facebook-icon.svg'></a>
|
||||
<a href='#' class='icons'><img src='/linkedin-icon.svg'></a>
|
||||
<a href='#' class='icons'><img src='/twitter-icon.svg'></a>
|
||||
<a href='#' class='icons'><img src='/youtube-icon.svg'></a>
|
||||
</div> -->
|
||||
</center>
|
@@ -1,8 +1,8 @@
|
||||
<nav id="navbar">
|
||||
<ul class="top-nav">
|
||||
<li class=""><a href="/{{ .Language.Lang }}">{{ site.Title }}</a></li>
|
||||
<nav id='navbar'>
|
||||
<ul class='top-nav'>
|
||||
<li><a href='/{{ .Language.Lang }}'>{{ site.Title }}</a></li>
|
||||
{{ partial "i18n/nav.html" . }}
|
||||
<div class="link-group">
|
||||
<div class='link-group'>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
@@ -25,8 +25,8 @@
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<!-- <li class="top-nav__link"><a href="#">
|
||||
<img class="icons" src="/search-icon.svg">
|
||||
<!-- <li class='top-nav'><a href='#'>
|
||||
<img class='icons' src='/search-icon.svg'>
|
||||
</a>
|
||||
</li> -->
|
||||
</div>
|
||||
|
@@ -1,8 +1,9 @@
|
||||
<aside id='meta'>
|
||||
<header>
|
||||
<h4>{{ .Title }}</h4>
|
||||
<h4>{{ or (.Param "tit") .Title }}</h4>
|
||||
{{ i18n "wordCount" .WordCount }}.
|
||||
{{ i18n "readingTime" .ReadingTime }}.
|
||||
</header>
|
||||
{{ .TableOfContents }}
|
||||
{{ partial "i18n/list.html" . }}
|
||||
</aside>
|
Reference in New Issue
Block a user