First commit.
This commit is contained in:
commit
b7977e1c28
11 changed files with 28081 additions and 0 deletions
33
layouts/_default/baseof.html
Normal file
33
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language.Lang }}">
|
||||
<head>
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="stylesheet" href="/css/styles.css?{{ readFile "/themes/zen/static/css/styles.css" | sha1}}">
|
||||
{{ partial "meta.html" . }}
|
||||
{{ block "meta" . }}{{ end }}
|
||||
</head>
|
||||
|
||||
<body class="one-sidebar sidebar-second">
|
||||
<div class="layout-center">
|
||||
<header class="header" role="banner">
|
||||
<a href="{{ .Site.BaseURL }}" title="Home" rel="home" class="header__logo"><img src="/images/logo.png" alt="Home" class="header__logo-image" /></a>
|
||||
<h1 class="header__site-name">
|
||||
<a href="{{ .Site.BaseURL }}" title="Home" class="header__site-link" rel="home"><span>{{ .Site.Title }}</span></a>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="layout-3col layout-swap">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
|
||||
<footer class="footer" role="contentinfo">
|
||||
<p>{{ with .Site.Params.copyright }}{{ . | markdownify }}{{ else }}<span>© {{ .Site.Title }}</span>{{ end }}</p>
|
||||
{{ with .Site.Params.footer }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ if .Site.Params.poweredby }}<p>Powered by <a href="https://gohugo.io/">Hugo</a></p>{{ end }}
|
||||
</footer>
|
||||
</div>
|
||||
{{ if .Site.Params.jquery }}<script src="/js/jquery.min.js"></script>{{ end }}
|
||||
{{ if and .Site.Params.jquery .Site.Params.slicknav }}<script src="/js/jquery.slicknav.min.js"></script>{{ end }}
|
||||
{{ if .Site.Params.jquery }}<script src="/js/script.js"></script>{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
20
layouts/_default/list.html
Normal file
20
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{{ define "title" }}{{ if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{ end }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main class="layout-3col__left-content" role="main">
|
||||
{{ range .Data.Pages }}
|
||||
<article class="{{ with .Section }}section-{{ . | urlize }}{{ end }} list-view">
|
||||
<header>
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a><h2>
|
||||
</header>
|
||||
<div>
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
</main>
|
||||
|
||||
{{ partial "menu.html" . }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
|
||||
{{ end }}
|
||||
22
layouts/_default/single.html
Normal file
22
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
|
||||
|
||||
{{ define "meta" }}
|
||||
{{ partial "single_meta.html" . }}
|
||||
{{ partial "single_json_ld.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main class="layout-3col__left-content" role="main">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="{{ with .Section }}section-{{ . | urlize }}{{ end }} single-view">
|
||||
<header>
|
||||
</header>
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
{{ partial "menu.html" . }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
{{ end }}
|
||||
14
layouts/index.html
Normal file
14
layouts/index.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{{ define "meta" }}
|
||||
{{ partial "single_meta.html" . }}
|
||||
{{ partial "single_json_ld.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main class="layout-3col__left-content" role="main">
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
</main>
|
||||
{{ partial "menu.html" . }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
{{ end }}
|
||||
19
layouts/partials/menu.html
Normal file
19
layouts/partials/menu.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{{ $currentSection := .Section }}
|
||||
{{ $currentID := .UniqueID }}
|
||||
<div class="layout-swap__top layout-3col__full">
|
||||
<nav class="main-menu" role="navigation">
|
||||
<h2 class="visually-hidden">Main menu</h2>
|
||||
<ul class="navbar clearfix">
|
||||
<li><a class="{{ if .IsHome }}active{{ end }}" href="/">Home</a></li>
|
||||
{{ range $section, $taxonomy := .Site.Sections }}
|
||||
{{ if eq $section "" }}
|
||||
{{ range $taxonomy.Pages }}
|
||||
<li><a class="{{ if eq $currentID .UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<li><a class="{{ if eq $currentSection $section }}active{{ end }}" href="/{{ urlize $section }}">{{ humanize $section }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
9
layouts/partials/meta.html
Normal file
9
layouts/partials/meta.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes">
|
||||
<meta name="MobileOptimized" content="width">
|
||||
<meta name="HandheldFriendly" content="true">
|
||||
{{ .Hugo.Generator }}
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}images/logo.png">
|
||||
{{ with .RSSLink }}<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.contact }}<meta name="contact" content="{{ . }}">{{ end }}
|
||||
11
layouts/partials/pagination.html
Normal file
11
layouts/partials/pagination.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<nav class="pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a href="{{ .Paginator.Prev.URL }}" rel="prev" class="pager-item pager-prev">Prev</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a href="{{ .Paginator.Next.URL }}" rel="next" class="pager-item pager-next">Next</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
14
layouts/partials/sidebar.html
Normal file
14
layouts/partials/sidebar.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{{ $currentSection := .Section }}
|
||||
{{ $currentID := .UniqueID }}
|
||||
<aside class="layout-3col__right-sidebar" role="complementary">
|
||||
{{ range $section, $taxonomy := .Site.Sections }}
|
||||
{{ if ne $section "" }}
|
||||
<h4 class="menu"><a class="{{ if eq $currentSection $section }}active{{ end }}" href="/{{ urlize $section }}">{{ humanize $section }}</a></h4>
|
||||
<ul class="menu">
|
||||
{{ range $taxonomy.Pages }}
|
||||
<li><a class="{{ if eq $currentID .UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</aside>
|
||||
34
layouts/partials/single_json_ld.html
Normal file
34
layouts/partials/single_json_ld.html
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "NewsArticle",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id":"{{ .Site.BaseURL }}"
|
||||
},
|
||||
"headline": "{{ .Title }} - {{ .Site.Title }}",
|
||||
"image": {
|
||||
"@type": "ImageObject",
|
||||
"url": "{{ .Site.BaseURL }}{{ .Params.thumbnail | default "images/default.png" }}",
|
||||
"height": 800,
|
||||
"width": 800
|
||||
},
|
||||
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05UTC" }}",
|
||||
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05UTC" }}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{{ .Site.Title }}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{{ .Site.Title }}",
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": "{{ .Site.BaseURL }}images/logo.png",
|
||||
"width": 600,
|
||||
"height": 60
|
||||
}
|
||||
},
|
||||
"description": "{{ .Description | default .Summary }}"
|
||||
}
|
||||
</script>
|
||||
8
layouts/partials/single_meta.html
Normal file
8
layouts/partials/single_meta.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<meta name="description" content="{{ replaceRE "\n" "" (.Description | default .Summary) }}">
|
||||
<meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
<meta property="og:description" content="{{ replaceRE "\n" "" (.Description | default .Summary) }}">
|
||||
<meta property="og:locale" content="{{ .Lang }}">
|
||||
{{ with .Params.thumbnail }}<meta property="og:image" content="{{ .Site.BaseURL }}{{ . }}">{{ end }}
|
||||
1
layouts/shortcodes/clear.html
Normal file
1
layouts/shortcodes/clear.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div class="clearfix"></div>
|
||||
Loading…
Reference in a new issue