First commit.

This commit is contained in:
Fredrik Jonsson 2017-03-09 14:26:46 +01:00
commit b7977e1c28
6 changed files with 28081 additions and 0 deletions

View 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>

View 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 }}

View 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 }}

View 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>

View 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>

View 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 }}