This commit is contained in:
15
layouts/_partials/analytics.html
Normal file
15
layouts/_partials/analytics.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!-- Matomo -->
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//analytics.makyo.io/";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '17']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
6
layouts/_partials/donate.html
Normal file
6
layouts/_partials/donate.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="donate-box">
|
||||
<h4>Help support my writing!</h4>
|
||||
<div class="donate">
|
||||
<a href="/about">Subscribe for updates, exclusive content, and more!</a>
|
||||
</div>
|
||||
</div>
|
||||
5
layouts/_partials/footer.html
Normal file
5
layouts/_partials/footer.html
Normal file
@ -0,0 +1,5 @@
|
||||
<footer class="main-footer">
|
||||
<div class="copyright">
|
||||
<p>2024 © Madison Rye Progress, writing as Madison Scott-Clary</p>
|
||||
</div>
|
||||
</footer> <!-- End Footer -->
|
||||
40
layouts/_partials/head.html
Normal file
40
layouts/_partials/head.html
Normal file
@ -0,0 +1,40 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{{ $title := print .Title " | " .Site.Title }}
|
||||
{{ if .IsHome }}
|
||||
{{ $title = .Site.Title }}
|
||||
{{ end }}
|
||||
<title>{{ $title | plainify }}</title>
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{ if .IsHome }}
|
||||
{{ with .Site.Params.homeMetaContent }}
|
||||
<meta name="description" content="{{ . | plainify }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
|
||||
{{- partial "seo.html" . -}}
|
||||
|
||||
<link rel="shortcut icon" href="/assets/img/favicon/favicon.ico" type="image/x-icon">
|
||||
<link rel="apple-touch-icon" href="/assets/img/favicon/apple-touch-icon.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="/assets/img/favicon/apple-touch-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="/assets/img/favicon/apple-touch-icon-114x114.png">
|
||||
<!-- Chrome, Firefox OS and Opera -->
|
||||
<meta name="theme-color" content="#311e3e">
|
||||
<!-- Windows Phone -->
|
||||
<meta name="msapplication-navbutton-color" content="#311e3e">
|
||||
<!-- iOS Safari -->
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="#311e3e">
|
||||
<!-- Google Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet">
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="/assets/fonts/font-awesome/css/font-awesome.min.css">
|
||||
<!-- Styles -->
|
||||
{{ $style := resources.Get "css/main.scss" | css.Sass | resources.Fingerprint "sha256" }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
{{ with .Params.extracss }}
|
||||
<link rel="stylesheet" href="{{.}}">
|
||||
{{ end }}
|
||||
</head>
|
||||
22
layouts/_partials/header.html
Normal file
22
layouts/_partials/header.html
Normal file
@ -0,0 +1,22 @@
|
||||
<header class="main-header">
|
||||
<div class="wrapper">
|
||||
<div class="header-flex">
|
||||
<div class="menu-icon-container">
|
||||
<span class="menu-icon"><i class="fa fa-bars" aria-hidden="true"></i></span>
|
||||
</div>
|
||||
<nav class="main-nav">
|
||||
<span class="menu-icon-close"><i class="fa fa-times" aria-hidden="true"></i></span>
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/publications">Publications</a></li>
|
||||
<li><a href="/categories">Categories</a></li>
|
||||
<li><a href="/tags">Tags</a></li>
|
||||
<li><a href="/about">About</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="logo"><a href="/">Madison Rye Progress</a></p>
|
||||
<div class="search-icon-container">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header> <!-- End Header -->
|
||||
3
layouts/_partials/javascripts.html
Executable file
3
layouts/_partials/javascripts.html
Executable file
@ -0,0 +1,3 @@
|
||||
<!-- JS -->
|
||||
<script src="/assets/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
26
layouts/_partials/seo.html
Normal file
26
layouts/_partials/seo.html
Normal file
@ -0,0 +1,26 @@
|
||||
<!-- OpenGraph metadata -->
|
||||
<meta property="og:title" content="{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}The Writing of Madison Rye Progress" />
|
||||
<meta property="og:site_name" content="The Writing of Madison Rye Progress" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:image" content="{{ if .Params.ogimg }}{{ .Params.ogimg | absURL }}{{ else }}{{ if .Params.img }}{{ .Params.img | absURL }}{{ else }}{{ "/assets/img/headshot.jpg" | absURL }}{{ end }}{{ end }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}The Writing of Madison Rye Progress{{ end }}" />
|
||||
|
||||
<!-- Twitter Card metadata -->
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:site" content="@makyo_writes" />
|
||||
<meta name="twitter:title" content="{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}The Writing of Madison Rye Progress" />
|
||||
<meta name="twitter:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}The Writing of Madison Rye Progress{{ end }}" />
|
||||
<meta name="twitter:image" content="{{ if .Params.ogimg }}{{ .Params.ogimg | absURL }}{{ else }}{{ if .Params.img }}{{ .Params.img | absURL }}{{ else }}{{ "/assets/img/headshot.jpg" | absURL }}{{ end }}{{ end }}" />
|
||||
|
||||
<!-- JSON-LD metadata -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "The Writing of Madison Rye Progress",
|
||||
"headline": "{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}The Writing of Madison Rye Progress",
|
||||
"description": "{{ if .Params.description }}{{ .Params.description }}{{ else }}The Writing of Madison Rye Progress{{ end }}",
|
||||
"url": "{{ .Permalink }}"
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user