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

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Berthault <justin.berthault@zaclys.net>2017-09-13 12:58:26 +0300
committerJustin Berthault <justin.berthault@zaclys.net>2017-09-13 12:58:26 +0300
commit2c2348fa371c6c02ab3cc20075e64d7391e9b7e7 (patch)
treefd1e29978bcaa0d7b211ea9130bc638a424cd6e9 /layouts/_default/baseof.html
parent94aa89808b442c77a3a07a3c7a5b8b3e413a8667 (diff)
Add default layouts
- Based on the block rendering implemented with Hugo - baseof is the main component - list will render list pages :) - single will render blogposts - terms will render taxonomy pages (both categories & tags)
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html53
1 files changed, 53 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..a70b8eb
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>
+ {{ block "title" . }}
+ {{ .Site.Title }}
+ {{ end }}
+ </title>
+ <link rel="stylesheet" href="/css/style.css" />
+ <link rel="stylesheet" href="/css/icomoon.min.css" />
+ {{ block "css" . }}
+ {{ end }}
+ </head>
+ <body>
+ <aside>
+ <a href="{{ .Site.BaseURL }}">
+ <img id="avatar" alt="Blog Avatar" src="{{ .Site.Params.avatar | relURL }}">
+ </a>
+ <div id="sitetitle">
+ <a href="{{ .Site.BaseURL }}">
+ {{ .Site.Title }}
+ </a>
+ </div>
+ <div id="sitesubtitle">
+ {{ .Site.Params.Sitesubtitle }}
+ </div>
+ <div id="navlinks">
+ {{ range .Site.Menus.main }}
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ {{ end }}
+ </div>
+ <div id="social">
+ {{ range .Site.Menus.social }}
+ <a href="{{ .URL }}"><i class="{{ .Name }}"></i></a>
+ {{ end }}
+ <a href="{{ .Site.RSSLink }}"><i class="icon-rss"></i></a>
+ </div>
+ </aside>
+ <div class="content">
+ {{ block "main" . }}
+ {{ end }}
+ <footer>
+ {{ block "scripts" . }}
+ {{ end }}
+ {{ with .Site.Params.footer }}
+ {{ . | markdownify }}
+ {{ end }}
+ </footer>
+ </div>
+ </body>
+