diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/analytics.html | 13 | ||||
-rw-r--r-- | layouts/partials/favicons.html | 17 | ||||
-rw-r--r-- | layouts/partials/footer.html | 9 | ||||
-rw-r--r-- | layouts/partials/github-link.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 19 | ||||
-rw-r--r-- | layouts/partials/includes.html | 2 | ||||
-rw-r--r-- | layouts/partials/meta.html | 11 | ||||
-rw-r--r-- | layouts/partials/nav.html | 17 | ||||
-rw-r--r-- | layouts/partials/paginate.html | 16 | ||||
-rw-r--r-- | layouts/partials/post-metadata-list.html | 9 | ||||
-rw-r--r-- | layouts/partials/post-metadata-single.html | 12 | ||||
-rw-r--r-- | layouts/partials/tags.html | 6 |
12 files changed, 133 insertions, 0 deletions
diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html new file mode 100644 index 0000000..b191344 --- /dev/null +++ b/layouts/partials/analytics.html @@ -0,0 +1,13 @@ +{{ if .Params.Analytics }} +<!-- Google Analytics --> +<script> +(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ +(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), +m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) +})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); + +ga('create', '{{ .Params.Analytics }}', 'auto'); +ga('send', 'pageview'); +</script> +<!-- End Google Analytics --> +{{ end }}
\ No newline at end of file diff --git a/layouts/partials/favicons.html b/layouts/partials/favicons.html new file mode 100644 index 0000000..d3d4ca9 --- /dev/null +++ b/layouts/partials/favicons.html @@ -0,0 +1,17 @@ +<link rel="apple-touch-icon" sizes="57x57" href="/images/favicons/apple-icon-57x57.png"> + <link rel="apple-touch-icon" sizes="60x60" href="/images/favicons/apple-icon-60x60.png"> + <link rel="apple-touch-icon" sizes="72x72" href="/images/favicons/apple-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="76x76" href="/images/favicons/apple-icon-76x76.png"> + <link rel="apple-touch-icon" sizes="114x114" href="/images/favicons/apple-icon-114x114.png"> + <link rel="apple-touch-icon" sizes="120x120" href="/images/favicons/apple-icon-120x120.png"> + <link rel="apple-touch-icon" sizes="144x144" href="/images/favicons/apple-icon-144x144.png"> + <link rel="apple-touch-icon" sizes="152x152" href="/images/favicons/apple-icon-152x152.png"> + <link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-icon-180x180.png"> + <link rel="icon" type="image/png" sizes="192x192" href="/images/favicons/android-icon-192x192.png"> + <link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png"> + <link rel="icon" type="image/png" sizes="96x96" href="/images/favicons/favicon-96x96.png"> + <link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png"> + <link rel="manifest" href="/images/favicons/manifest.json"> + <meta name="msapplication-TileColor" content="#ffffff"> + <meta name="msapplication-TileImage" content="/images/favicons/ms-icon-144x144.png"> + <meta name="theme-color" content="#ffffff">
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..baf1f05 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,9 @@ + <div class="wrapper-footer"> + <div class="container"> + <footer class="footer"> + </footer> + </div> + </div> + {{ partial "analytics.html" . }} + </body> +</html>
\ No newline at end of file diff --git a/layouts/partials/github-link.html b/layouts/partials/github-link.html new file mode 100644 index 0000000..8c50fff --- /dev/null +++ b/layouts/partials/github-link.html @@ -0,0 +1,2 @@ +<!-- Place this tag where you want the button to render. --> +<a class="github-button" href="https://github.com/{{ .Params.services.github.url }}/musicbrainz-mysql" aria-label="Star mikeblum/musicbrainz-mysql on GitHub">Star</a>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..ab96efe --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html class="no-js" lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"> +<head> + {{ partial "meta.html" . }} + + {{ partial "favicons.html" . }} + + <!--[if lt IE 9]> + <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <base href="{{ .Site.BaseURL }}"> + <title>{{ .Title }}</title> + <link rel="canonical" href="{{ .Permalink }}"> + {{ if .RSSLink }}<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />{{ end }} + + {{ partial "includes.html" . }} +</head> +<body lang="en">
\ No newline at end of file diff --git a/layouts/partials/includes.html b/layouts/partials/includes.html new file mode 100644 index 0000000..92ce1ed --- /dev/null +++ b/layouts/partials/includes.html @@ -0,0 +1,2 @@ +<!-- CSS --> +<link rel="stylesheet" href="/css/style.css">
\ No newline at end of file diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..9693843 --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,11 @@ +<meta charset="utf-8" /> +<meta content='text/html; charset=utf-8' http-equiv='Content-Type'> +<meta http-equiv='X-UA-Compatible' content='IE=edge'> +<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'> + +<meta name="description" content="{{ .Params.Description }}"> +<meta property="og:description" content="{{ .Params.Description }}" /> +<meta name="author" content="{{ .Site.Author }}" /> + +<meta property="og:title" content="{{ .Title }}" /> +<meta property="twitter:title" content="{{ .Title }}" />
\ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..0ac8d30 --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,17 @@ +<div class="wrapper-masthead"> + <div class="container"> + <header class="masthead clearfix"> + <a href="{{ .Site.BaseURL }}/" class="site-avatar"><img src="{{ .Site.Params.avatar }}" /></a> + + <div class="site-info"> + <h1 class="site-name"><a href="{{ .Site.BaseURL }}/">{{ .Site.Params.author }}</a></h1> + <p class="site-description">{{ .Site.Params.description }}</p> + </div> + + <nav> + <a href="{{ .Site.BaseURL }}/">Blog</a> + <a href="{{ .Site.BaseURL }}/about">About</a> + </nav> + </header> + </div> +</div>
\ No newline at end of file diff --git a/layouts/partials/paginate.html b/layouts/partials/paginate.html new file mode 100644 index 0000000..ec980e1 --- /dev/null +++ b/layouts/partials/paginate.html @@ -0,0 +1,16 @@ +<div class="container"> + <div class="pagination"> + {{ if .Paginator.HasPrev }} + <button type="button" class="btn btn-secondary pull-right"><a href="{{ .Paginator.Prev.URL }}"><i class="fa fa-chevron-left" aria-hidden="true"></i> Previous</a></button> + {{ else }} + <button type="button" class="btn btn-secondary pull-left disabled"><i class="fa fa-chevron-left" aria-hidden="true"></i> Previous</button> + {{ end }} + {{ if .Paginator.HasNext }} + <button type="button" class="btn btn-secondary pull-right"><a href="{{ .Paginator.Next.URL }}">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></a></button> + {{ else }} + <button type="button" class="btn btn-secondary pull-left disabled">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></button> + {{ end }} + </div> +</div> + +
\ No newline at end of file diff --git a/layouts/partials/post-metadata-list.html b/layouts/partials/post-metadata-list.html new file mode 100644 index 0000000..e36862d --- /dev/null +++ b/layouts/partials/post-metadata-list.html @@ -0,0 +1,9 @@ +<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }} + <small class="text-muted pull-right">{{ .Date.Format "January 1, 2006" }}</small> +</h1> +<div class="post-metadata"> + <p class="text-muted">{{ .Params.subtitle }}</p> + {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} +</div>
\ No newline at end of file diff --git a/layouts/partials/post-metadata-single.html b/layouts/partials/post-metadata-single.html new file mode 100644 index 0000000..6cd9c10 --- /dev/null +++ b/layouts/partials/post-metadata-single.html @@ -0,0 +1,12 @@ +<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }} + <small class="text-muted pull-right">{{ .Date.Format "January 1, 2006" }}</small> +</h1> +<div class="post-metadata"> + {{ if (ne ($.Param "displayauthor") false) }} + <small class="text-muted">by {{ .Params.author | default .Site.Params.author }}</small> + {{ end }} + <p class="text-muted"></p> + {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} +</div>
\ No newline at end of file diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html new file mode 100644 index 0000000..048e12f --- /dev/null +++ b/layouts/partials/tags.html @@ -0,0 +1,6 @@ +<div class="tags text-muted"> + <i class="fa fa-tags" aria-hidden="true"></i> + {{ range . }} + <a class="button is-link code" href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a> + {{ end }} +</div>
\ No newline at end of file |