mv theme to local control

This commit is contained in:
Don Harper 2020-11-22 09:44:54 -06:00
parent 3ac32ec7e9
commit c980366d63
189 changed files with 22593 additions and 0 deletions

View file

@ -0,0 +1,21 @@
<footer class="side-padding" style="background-image: url('{{ "img/home-blob-flip.svg" | absURL }}');">
<a href="{{ $.Site.BaseURL }}" class="footer-link">
{{ with resources.Get "icons/home-page.png" }}
<img class="footer-icon" src="{{ .Permalink }}">
{{ end }}
</a>
{{ if isset $.Site.Params "github"}}
<a href="{{ $.Site.Params.github }}" class="footer-link">
{{ with resources.Get "icons/github.png" }}
<img class="footer-icon" src="{{ .Permalink }}" />
{{ end }}
</a>
{{ end }}
{{ if isset $.Site.Params "linkedin"}}
<a href="{{ $.Site.Params.linkedin }}" class="footer-link">
{{ with resources.Get "icons/linkedin.png" }}
<img class="footer-icon" src="{{ .Permalink }}" />
{{ end }}
</a>
{{ end }}
</footer>

View file

@ -0,0 +1,44 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ if not .IsHome }}{{with .Title }}{{ . }} &middot; {{ end }}{{ end }}{{ .Site.Title }}</title>
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
{{ if (fileExists "static/apple-touch-icon.png") -}}
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}">
{{ end -}}
{{ if (fileExists "static/favicon-32x32.png") -}}
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}">
{{ end -}}
{{ if (fileExists "static/favicon-16x16.png") -}}
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}">
{{ end -}}
{{ if (fileExists "static/site.webmanifest") -}}
<link rel="manifest" href="{{ "/site.webmanifest" | absURL }}">
{{ end -}}
{{ if (fileExists "static/safari-pinned-tab.svg") -}}
<link rel="mask-icon" href="{{ "/safari-pinned-tab.svg" | absURL }}" color="#5bbad5">
{{ end -}}
{{ if (fileExists "layouts/partials/meta-tags.html") -}}
{{ partial "meta-tags.html" . }}
{{ end -}}
{{ with resources.Get "css/katex.css" -}}
<link href="{{ .Permalink }}" rel="stylesheet">
{{ end -}}
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
{{ $mainStyle := resources.Get "css/style.css" }}
{{ $overrideStyle := resources.Get "css/override.css" }}
{{ $style := slice $normalizeStyle $mainStyle $overrideStyle | resources.Concat "css/concated.css" | minify }}
<link href="{{ $style.Permalink }}" rel="stylesheet">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ template "_internal/google_analytics.html" . }}
{{ with resources.GetMatch .Site.Params.bgimg -}}
<style>
body {
background: #ecedef url("{{ .Permalink | safeCSS }}") repeat;
}
</style>
{{- end }}
</head>

View file

@ -0,0 +1,4 @@
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
href="{{ .Site.BaseURL }}" class="card home-card" style="background-image: url({{if isset .Site.Params "homeimg"}} {{ (resources.Get .Site.Params.homeimg).Permalink | safeCSS }} {{ else }} {{ (resources.Get "img/grey-cloud.jpg").Permalink | safeCSS }} {{ end }})" rel="bookmark" >
Home
</a>

View file

@ -0,0 +1,29 @@
<nav class="nav-bar side-padding">
<h1 class="nav-header"><a href="{{ .Site.BaseURL }}" class="nav-text">
{{- if isset $.Site.Params "brand"}}
{{- $.Site.Params.brand -}}
{{ else }}
{{- $.Site.Title -}}
{{ end -}}
</a></h1>
<div class="hamburger-menu">
<button onclick="hamburgerMenuPressed.call(this)" aria-haspopup="true" aria-expanded="false" aria-controls="menu" aria-label="Menu">
<span></span>
<span></span>
</button>
<ul id="menu" class="hamburger-menu-overlay">
<li><a href="{{ .Site.BaseURL }}" class="hamburger-menu-overlay-link">Home</a></li>
{{ range where .Site.Pages "Params.displayinmenu" true -}}
<li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li>
{{ end -}}
{{ range $key, $value := .Site.Taxonomies.categories -}}
{{ with $.Site.GetPage (printf "%s%s" "categories/" ($key | urlize)) }}
<li><a href="{{ .Permalink }}" class="hamburger-menu-overlay-link">{{ .Title }}</a></li>
{{ end }}
{{- end }}
{{ if eq .Site.Params.rssinmenu true -}}
<li><a href="{{ "/index.xml" | absURL }}" class="hamburger-menu-overlay-link">rss</a></li>
{{- end }}
</ul>
</div>
</nav>

View file

@ -0,0 +1,8 @@
{{ with resources.Get "js/katex.js" }}
<script defer src="{{ .Permalink }}"></script>
{{ end }}
{{ with resources.Get "js/auto-render.js" }}
<script defer src="{{ .Permalink }}" onload="renderMathInElement(document.body);"></script>
{{ end }}
{{ $corejs := resources.Get "js/core.js" | minify }}
<script src="{{ $corejs.Permalink }}"></script>