Initial commit
This commit is contained in:
12
layouts/partials/footer-mobile.html
Normal file
12
layouts/partials/footer-mobile.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<footer class="footer-mobile">
|
||||
{{ partial "social.html" . }}
|
||||
|
||||
<div class="footer-mobile-links">
|
||||
<p><a href="https://github.com/kimcc/hugo-theme-noteworthy" target="_blank" rel="noopener">Noteworthy theme</a></p>
|
||||
<span class="divider-bar">|</span>
|
||||
<p><a href="https://gohugo.io" target="_blank" rel="noopener">Built with Hugo</a></p>
|
||||
</div>
|
||||
|
||||
{{ $script := resources.Get "js/main.js" | minify | fingerprint -}}
|
||||
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }}></script>
|
||||
</footer>
|
9
layouts/partials/footer.html
Normal file
9
layouts/partials/footer.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<footer class="footer">
|
||||
{{ partial "social.html" . }}
|
||||
|
||||
<p><a href="https://github.com/kimcc/hugo-theme-noteworthy" target="_blank" rel="noopener">Noteworthy theme</a></p>
|
||||
<p><a href="https://gohugo.io" target="_blank" rel="noopener">Built with Hugo</a></p>
|
||||
|
||||
{{ $script := resources.Get "js/main.js" | minify | fingerprint -}}
|
||||
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }}></script>
|
||||
</footer>
|
33
layouts/partials/head.html
Normal file
33
layouts/partials/head.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="format-detection" content="telephone=no"/>
|
||||
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<!-- Icons -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | relURL }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | relURL }}">
|
||||
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
|
||||
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | relURL }}" color="#FF3DB4">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<!-- Styles -->
|
||||
<!-- Use Hugo Pipes to process the Sass file (convert to CSS, minify, and add a hash) -->
|
||||
{{ $main_style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $main_style.Permalink }}"/>
|
||||
|
||||
<!-- Uncomment to add custom styles -->
|
||||
<!-- Modify the custom.scss file inside assets > css to use scss -->
|
||||
<!-- {{ $custom_style := resources.Get "css/custom.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $custom_style.Permalink }}"/> -->
|
||||
|
||||
<!-- Modify the custom.css file inside static > css to use vanilla css -->
|
||||
<!-- <link type="text/css" rel="stylesheet" href="{{ "/" | relURL }}css/custom.css"> -->
|
||||
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
</head>
|
5
layouts/partials/header.html
Normal file
5
layouts/partials/header.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<header>
|
||||
<div class="site-title">
|
||||
<a href="{{ "/" | relURL }}">{{ .Site.Title }}</a>
|
||||
</div>
|
||||
</header>
|
6
layouts/partials/math.html
Normal file
6
layouts/partials/math.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ if or .Page.Params.math .Site.Params.math }}
|
||||
<!-- KaTeX -->
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/katex.min.css" | relURL }}">
|
||||
<script type="text/javascript" src="{{ "js/katex.min.js" | relURL }}"></script>
|
||||
<script type="text/javascript" src="{{ "js/auto-render.min.js" | relURL }}"onload="renderMathInElement(document.body);"></script>
|
||||
{{ end }}
|
11
layouts/partials/nav.html
Normal file
11
layouts/partials/nav.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- Sidebar navigation -->
|
||||
<nav>
|
||||
{{ partial "header.html" . }}
|
||||
<div class="nav-menu">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a class="color-link nav-link" href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
<a class="color-link nav-link" href="{{ .Site.RSSLink }}" target="_blank" rel="noopener" type="application/rss+xml">RSS</a>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</nav>
|
179
layouts/partials/social.html
Normal file
179
layouts/partials/social.html
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user