Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2018-07-28 17:24:25 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2018-07-28 17:24:25 +0300
commita937ee7487a4ddc6a981149638c34a085e86450e (patch)
treec82f6536f5785390a46685d78f681cc1df6c7d7b /layouts/partials
Initial commit
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer.html7
-rw-r--r--layouts/partials/head.html33
-rw-r--r--layouts/partials/header.html17
3 files changed, 57 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..54361a5
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,7 @@
+ <footer>
+ <span>
+ &copy; <time datetime="{{ now }}">{{ now.Format "2006" }}</time> {{ .Site.Params.Author }}. Made with Hugo using the <a href="https://github.com/chesterhow/tale/">Tale</a> theme.
+ </span>
+ </footer>
+ </body>
+</html> \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..ff71cae
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,33 @@
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{ if eq .URL "/" }}
+ <meta name="description" content="{{ .Site.Params.Description }}">
+ {{ else }}
+ {{ if .Description }}
+ <meta name="description" content="{{ .Description }}">
+ {{ end }}
+ {{ end }}
+
+ <title>
+ {{ if eq .URL "/" }}
+ {{ .Site.Title }}
+ {{ else }}
+ {{ .Title }} &middot; {{ .Site.Title }}
+ {{ end }}
+ </title>
+
+ <!-- CSS -->
+ {{ $style := resources.Get "scss/tale.scss" | toCSS | minify }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}">
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700">
+
+ <!-- Favicon -->
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.BaseURL }}images/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.BaseURL }}images/favicon-16x16.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL}}images/apple-touch-icon.png">
+
+ <!-- RSS -->
+ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ </head>
+ \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..22d6999
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+
+ {{ partial "head.html" . }}
+
+ <body>
+ <nav class="nav">
+ <div class="nav-container">
+ <a href="{{ .Site.BaseURL }}/">
+ <h2 class="nav-title">{{ .Site.Title }}</h2>
+ </a>
+ <ul>
+ <li><a href="{{ .Site.BaseURL }}about">About</a></li>
+ <li><a href="{{ .Site.BaseURL }}">Posts</a></li>
+ </ul>
+ </div>
+ </nav> \ No newline at end of file