Testing phugo as theme

This commit is contained in:
2017-10-15 18:32:13 +02:00
parent 4a0f71961e
commit e9957f193d
219 changed files with 3198 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
{{ "<!-- Footer -->" | safeHTML }}
<footer id="footer" class="panel">
<div class="inner split">
<div>
<section>
<h2>{{ with .Site.Params.footer.paragraph.headline }}{{ . | markdownify }}{{ end }}</h2>
<p>{{ with .Site.Params.footer.paragraph.text }}{{ . | markdownify }}{{ end }}</p>
</section>
<section>
<h2>{{ with .Site.Params.footer.social.headline }}{{ . | markdownify }}{{ end }}</h2>
<ul class="icons">
{{ range .Site.Params.footer.social.links }}
<li><a href="{{ .url }}" class="icon {{ .icon }}"><span class="label">{{ .label }}</span></a></li>
{{ end }}
</ul>
</section>
<p class="copyright">
&copy; {{ with .Site.Params.footer.copyright.name }}{{ . | markdownify }}{{ end }}. Design: <a href="http://html5up.net">HTML5 UP</a>. Ported to Hugo by <a href="//github.com/aerohub">AEROHUB</a>.
</p>
</div>
<div>
<section>
<h2>{{ with .Site.Params.footer.contact.headline }}{{ . | markdownify }}{{ end }}</h2>
<form method="post" action="//formspree.io/{{ with .Site.Params.footer.contact.realEmail }}{{.}}{{ end }}" novalidate>
<div class="field half first">
<input type="text" name="name" required data-validation-required-message="{{ with .Site.Params.footer.contact.name.warning }}{{ . | markdownify}}{{ end }}" id="name" placeholder="{{ with .Site.Params.footer.contact.name.text }}{{ . | markdownify }}{{ end }}" />
</div>
<div class="field half">
<input type="email" name="email" required data-validation-required-message="{{ with .Site.Params.footer.contact.email.warning }}{{ . | markdownify }}{{ end }}" id="email" placeholder="{{ with .Site.Params.footer.contact.email.text }}{{ . | markdownify }}{{ end }}" />
</div>
<div class="field">
<textarea name="message" required data-validation-required-message="{{ with .Site.Params.footer.contact.message.warning }}{{ . | markdownify }}{{ end }}" id="message" rows="4" placeholder="{{ with .Site.Params.footer.contact.message.text }}{{ . | markdownify }}{{ end }}"></textarea>
</div>
<ul class="actions">
<li><input type="submit" value="{{ .Site.Params.footer.contact.buttonText }}" class="special" /></li>
<li><input type="reset" value="{{ .Site.Params.footer.contact.resetText }}" /></li>
</ul>
</form>
</section>
</div>
</div>
</footer>

View File

@@ -0,0 +1,18 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}">
<meta name="author" content="{{ with .Site.Params.author }}{{ . }}{{ end }}">
<meta name="keywords" content="{{ with .Site.Params.keywords }}{{ . }}{{ end }}">
{{ .Hugo.Generator }}
{{ "<!--[if lte IE 8]>" | safeHTML }}
<script src="{{ .Site.BaseURL }}assets/js/ie/html5shiv.js"></script>
{{ "<![endif]-->" | safeHTML }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/main.css" />
{{ "<!--[if lte IE 9]>" | safeHTML }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/ie9.css" />
{{ "<![endif]-->" | safeHTML }}
{{ "<!--[if lte IE 8]>" | safeHTML }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/ie8.css" />
{{ "<![endif]-->" | safeHTML }}
<link rel="shortcut icon" href="{{ .Site.BaseURL }}favicon.ico">
{{ template "_internal/google_analytics_async.html" . }}

View File

@@ -0,0 +1,16 @@
<header id="header">
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $.Scratch.Add "path" .Site.BaseURL }}
<h1>
<a href="{{ .Site.BaseURL }}"><strong>{{ .Site.Title }}</strong></a>
{{ range $index, $element := split $url "/" }}
{{ $.Scratch.Add "path" $element }}
{{ if ne $element "" }}
/ {{ . | humanize }}
{{ $.Scratch.Add "path" "/" }}
{{ end }}
{{ end }}
</h1>
{{ partial "navigation.html" . }}
</header>

View File

@@ -0,0 +1,7 @@
{{ "<!-- Phugo - Photogallery Theme for Hugo -->" | safeHTML }}
{{ "<!-- by Pavel Kanyshev | github.com/aerohub -->" | safeHTML }}
{{ "<!-- It's based on Multiverse by HTML5 UP -->" | safeHTML }}
{{ "<!-- html5up.net | @ajlkn -->" | safeHTML }}
{{ "<!-- Free for personal and commercial use -->" | safeHTML }}
{{ "<!-- under the CCA 3.0 license (html5up.net/license) -->" | safeHTML }}
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">

View File

@@ -0,0 +1,7 @@
<nav>
<ul>
{{ range .Site.Params.header.links }}
<li><a href="{{ .url }}" class="icon {{ .icon }}">{{ .name }}</a></li>
{{ end }}
</ul>
</nav>

View File

@@ -0,0 +1,8 @@
<script src="{{ .Site.BaseURL }}assets/js/jquery.min.js"></script>
<script src="{{ .Site.BaseURL }}assets/js/jquery.poptrox.min.js"></script>
<script src="{{ .Site.BaseURL }}assets/js/skel.min.js"></script>
<script src="{{ .Site.BaseURL }}assets/js/util.js"></script>
{{ "<!--[if lte IE 8]>" | safeHTML }}
<script src="{{ .Site.BaseURL }}assets/js/ie/respond.min.js"></script>
{{ "<![endif]-->" | safeHTML }}
<script src="{{ .Site.BaseURL }}assets/js/main.js"></script>