First commit.

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

View 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>&copy; {{ .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>

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

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