Testing phugo as theme
This commit is contained in:
24
layouts/_default/baseof.html
Normal file
24
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE HTML>
|
||||
{{ partial "lang.html" . }}
|
||||
<head>
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
{{ partial "head.html" . }}
|
||||
<head>
|
||||
<body>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
{{ block "main" . }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
</div>
|
||||
|
||||
{{ partial "scripts.html" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
layouts/_default/list.html
Normal file
10
layouts/_default/list.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<div id="main">
|
||||
{{ range (where .Site.Pages "Kind" "section").ByDate.Reverse }}
|
||||
<article class="thumb">
|
||||
<a href="{{ .Permalink }}" class="link"><img src="{{ .Params.albumthumb }}" alt="{{ .Title }}" /></a>
|
||||
<h2>{{ .Title }}</h2>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
8
layouts/_default/section.html
Normal file
8
layouts/_default/section.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<div id="main">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
42
layouts/partials/footer.html
Normal file
42
layouts/partials/footer.html
Normal 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">
|
||||
© {{ 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>
|
||||
18
layouts/partials/head.html
Normal file
18
layouts/partials/head.html
Normal 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" . }}
|
||||
16
layouts/partials/header.html
Normal file
16
layouts/partials/header.html
Normal 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>
|
||||
7
layouts/partials/lang.html
Normal file
7
layouts/partials/lang.html
Normal 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 }}">
|
||||
7
layouts/partials/navigation.html
Normal file
7
layouts/partials/navigation.html
Normal 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>
|
||||
8
layouts/partials/scripts.html
Normal file
8
layouts/partials/scripts.html
Normal 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>
|
||||
5
layouts/shortcodes/photo.html
Normal file
5
layouts/shortcodes/photo.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<article class="thumb">
|
||||
<a href="{{ .Get "full" }}" class="image"><img src="{{ .Get "thumb" }}" alt="{{ .Get "alt" }}" /></a>
|
||||
<h2>{{ .Get "phototitle" }}</h2>
|
||||
<p>{{ .Get "description" | markdownify }}</p>
|
||||
</article>
|
||||
Reference in New Issue
Block a user