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
Initial commit
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html0
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/_default/list.html0
-rw-r--r--layouts/_default/single.html38
-rw-r--r--layouts/index.html33
-rw-r--r--layouts/partials/footer.html7
-rw-r--r--layouts/partials/head.html33
-rw-r--r--layouts/partials/header.html17
8 files changed, 139 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/404.html
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..5f8e2ec
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ <div id="content">
+ {{- block "main" . }}{{- end }}
+ </div>
+ {{- partial "footer.html" . -}}
+ </body>
+</html>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/_default/list.html
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..fac4e58
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,38 @@
+{{ partial "header.html" . }}
+
+<main>
+ <div class="post">
+ <div class="post-info">
+ <span>Written by</span>
+ {{ if .Params.Author }}
+ {{ .Params.Author }}
+ {{ else }}
+ {{ .Site.Params.Author }}
+ {{ end }}
+
+ {{ if .PublishDate }}
+ <br>
+ <span>on&nbsp;</span><time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "January 2, 2006" }}</time>
+ {{ end }}
+ </div>
+
+ <h1 class="post-title">{{ .Title }}</h1>
+ <div class="post-line"></div>
+
+ {{ .Content }}
+
+ </div>
+
+ <div class="pagination">
+ {{ if .Next }}
+ <a href="{{ .Next.URL }}" class="left arrow">&#8592;</a>
+ {{ end }}
+ {{ if .Prev }}
+ <a href="{{ .Prev.URL }}" class="right arrow">&#8594;</a>
+ {{ end }}
+
+ <a href="#" class="top">Top</a>
+ </div>
+</main>
+
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..edfc24e
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,33 @@
+{{ partial "header.html" . }}
+
+<main>
+ <div class="catalogue">
+ {{ range (.Paginate (where .Pages "Type" "post")).Pages }}
+ <a href="{{ .Permalink }}" class="catalogue-item">
+ <div>
+ <time datetime="{{ .PublishDate }}" class="catalogue-time">{{ .PublishDate.Format "January 2, 2006" }}</time>
+ <h1 class="catalogue-title">{{ .Title }}</h1>
+ <div class="catalogue-line"></div>
+
+ <p>
+ {{ .Summary }}
+ </p>
+
+ </div>
+ </a>
+ {{ end }}
+ </div>
+
+ <div class="pagination">
+ {{ if .Paginator.HasPrev }}
+ <a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
+ {{ end }}
+ {{ if .Paginator.HasNext }}
+ <a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
+ {{ end }}
+
+ <span>{{ .Paginator.PageNumber }}</span>
+ </div>
+</main>
+
+{{ partial "footer.html" . }} \ No newline at end of file
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