-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
418 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
+++ | ||
date = "2014-07-11T10:54:24+02:00" | ||
draft = false | ||
title = "Post title" | ||
slug = "post-title" | ||
tags = ["tag1","tag2"] | ||
image = "" | ||
comments = true | ||
+++ | ||
--- | ||
title: '' | ||
date: '' | ||
description: '' | ||
author: '' | ||
--- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,5 @@ | ||
{{ partial "header.html" . }} | ||
|
||
{{if .Site.Params.cover}} | ||
<header class="main-header " style="background-image: url({{.Site.BaseUrl}}{{.Site.Params.cover}})"> | ||
{{else}} | ||
<header class="main-header no-cover"> | ||
{{end}} | ||
|
||
<nav class="main-nav overlay clearfix"> | ||
{{ if .Site.Params.logo }} | ||
<a class="blog-logo" href="{{ .Permalink }}"><img src="{{.Site.BaseUrl}}{{ .Site.Params.logo }}" alt="Blog Logo" /></a> | ||
{{end}} | ||
{{ if .Site.Menus.main }} | ||
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a> | ||
|
||
|
||
|
||
{{end}} | ||
</nav> | ||
<div class="vertical"> | ||
<div class="main-header-content inner"> | ||
{{ if .Site.Params.githubName }} | ||
<a class="bloglogo" href="https://github.com/{{ .Site.Params.githubName }}"> | ||
<span class="icon-github" style="color:white;font-size:2em"></span> | ||
</a> | ||
{{end}} | ||
|
||
{{ if .Site.Params.twitterName }} | ||
<a class="bloglogo" href="https://twitter.com/{{ .Site.Params.twitterName }}"> | ||
<span class="icon-twitter" style="color:white;font-size:2em"></span> | ||
</a> | ||
{{end}} | ||
|
||
{{ if .Site.Params.facebookName }} | ||
<a class="bloglogo" href="https://facebook.com/{{ .Site.Params.facebookName }}"> | ||
<span class="icon-facebook" style="color:white;font-size:2em"></span> | ||
</a> | ||
{{end}} | ||
<h1 class="page-title">Well this is awkward...</h1> | ||
<h2 class="page-description">{{ .Site.Params.description }}</h2> | ||
404 - You once were found. But now you're lost. | ||
|
||
|
||
|
||
|
||
|
||
|
||
</div> | ||
</div> | ||
|
||
</header> | ||
|
||
|
||
{{ partial "footer.html" . }} | ||
{{ partial "footer.html" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,21 @@ | ||
{{ partial "header.html" . }} | ||
{{ $baseurl := .Site.BaseUrl }} | ||
|
||
{{if .Params.cover}} | ||
<header class="main-header tag-head" style="background-image: url({{ $baseurl }}{{.Params.cover}})"> | ||
{{else if .Site.Params.cover}} | ||
<header class="main-header tag-head" style="background-image: url({{ $baseurl }}{{.Site.Params.cover}})"> | ||
{{else}} | ||
<header class="main-header tag-head no-cover"> | ||
{{end}} | ||
<nav class="main-nav overlay clearfix"> | ||
{{ if .Site.Params.logo }} | ||
<a class="blog-logo" href="{{.Site.BaseUrl}}"><img src="{{.Site.BaseUrl}}{{ .Site.Params.logo }}" alt="Home" /></a> | ||
{{end}} | ||
{{ if .Site.Menus.main }} | ||
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a> | ||
{{else}} | ||
{{ if .Site.Params.RSSLink}} | ||
<a class="menu-button icon-feed" href="{{.Site.Params.RSSLink }}"> Subscribe</a> | ||
{{else}} | ||
<a class="menu-button icon-feed" href="{{ .RSSLink }}"> Subscribe</a> | ||
{{end}} | ||
{{end}} | ||
</nav> | ||
<div class="vertical"> | ||
<div class="main-header-content inner"> | ||
<h1 class="page-title">{{.Title}}</h1> | ||
<h2 class="page-description"> | ||
{{if .Params.description}} | ||
{{.Params.description}} | ||
{{end}} | ||
</h2> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<main class="content" role="main"> | ||
{{ $paginator := .Paginator }} | ||
|
||
<div class="extra-pagination inner"> | ||
{{ partial "pagination.html" $paginator }} | ||
</div> | ||
|
||
{{ range $index, $page := .Paginator.Pages }} | ||
{{ .Render "li" }} | ||
{{ end }} | ||
|
||
{{ partial "pagination.html" $paginator }} | ||
</main> | ||
|
||
|
||
|
||
{{ partial "footer.html" . }} | ||
<div class="content-wrapper"> | ||
{{if not .IsHome }} | ||
<h1>{{ .Title | markdownify }}</h1> | ||
{{ end }} | ||
|
||
{{ .Content }} | ||
|
||
<ul> | ||
{{ $pages := .Pages }} | ||
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} | ||
{{ range (where $pages "Section" "!=" "") }} | ||
<li> | ||
<span class="date">{{ .Date.Format "2006/01/02" }}</span> | ||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
{{ partial "footer.html" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,30 @@ | ||
{{ partial "header.html" . }} | ||
{{ $baseurl := .Site.BaseUrl }} | ||
|
||
{{if .Params.image}} | ||
<header class="main-header post-head" style="background-image: url({{ $baseurl }}{{.Params.image}})"> | ||
<nav class="main-nav overlay clearfix"> | ||
{{else}} | ||
<header class="main-header post-head no-cover"> | ||
<nav class="main-nav clearfix"> | ||
{{end}} | ||
|
||
{{ if .Site.Params.logo }} | ||
<a class="blog-logo" href="{{.Site.BaseUrl}}"><img src="{{.Site.BaseUrl}}{{ .Site.Params.logo }}" alt="Home" /></a> | ||
{{end}} | ||
{{ if .Site.Menus.main }} | ||
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a> | ||
{{else}} | ||
<a class="menu-button icon-feed" href="{{ .Site.BaseUrl }}index.xml"> Subscribe</a> | ||
{{end}} | ||
</nav> | ||
</header> | ||
|
||
|
||
|
||
<main class="content" role="main"> | ||
|
||
|
||
|
||
|
||
<article class="post"> | ||
|
||
<header class="post-header"> | ||
<h1 class="post-title">{{.Title}}</h1> | ||
<section class="post-meta"> | ||
<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> | ||
{{ .Date.Format "Jan 2, 2006" }} | ||
</time> | ||
|
||
{{ range .Params.tags }} | ||
<span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}/">#{{ . }}</a></span> | ||
{{ end }} | ||
</section> | ||
</header> | ||
|
||
<section class="post-content"> | ||
{{ .Content }} | ||
</section> | ||
|
||
|
||
<footer class="post-footer"> | ||
|
||
|
||
{{if .Site.Params.logo}} | ||
<figure class="author-image"> | ||
<a class="img" href="{{.Site.BaseUrl}}" style="background-image: url({{ $baseurl }}{{.Site.Params.logo}})"><span class="hidden">{{.Site.Params.author}}'s Picture</span></a> | ||
</figure> | ||
{{end}} | ||
|
||
|
||
<section class="author"> | ||
<h4><a href="{{.Site.BaseUrl}}">{{.Site.Params.author}}</a></h4> | ||
{{if .Site.Params.bio}} | ||
<p>{{.Site.Params.bio}}</p> | ||
{{else}} | ||
<p>Read <a href="{{.Site.BaseUrl}}">more posts</a> by this author.</p> | ||
{{end}} | ||
<div class="author-meta"> | ||
{{if .Site.Params.authorlocation}}<span class="author-location icon-location">{{.Site.Params.authorlocation}}</span>{{end}} | ||
{{if .Site.Params.authorwebsite}}<span class="author-link icon-link"><a href="{{.Site.Params.authorwebsite}}">{{.Site.Params.authorwebsite}}</a></span>{{end}} | ||
</div> | ||
</section> | ||
|
||
|
||
|
||
<section class="share"> | ||
<h4>Share this post</h4> | ||
<a class="icon-twitter" style="font-size: 1.4em" href="https://twitter.com/share?text={{ .Title | safeHTML }}&url={{ .Permalink }}" | ||
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> | ||
<span class="hidden">Twitter</span> | ||
</a> | ||
<a class="icon-facebook" style="font-size: 1.4em" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" | ||
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"> | ||
<span class="hidden">Facebook</span> | ||
</a> | ||
<a class="icon-google-plus" style="font-size: 1.4em" href="https://plus.google.com/share?url={{ .Permalink }}" | ||
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"> | ||
<span class="hidden">Google+</span> | ||
</a> | ||
</section> | ||
|
||
{{ if ne .Params.comments false}} | ||
{{ with .Site.DisqusShortname }} | ||
<div id="disqus_thread"></div> | ||
<script type="text/javascript"> | ||
var disqus_shortname = '{{ . }}'; | ||
(function() { | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
{{ end }} | ||
{{ end }} | ||
|
||
</footer> | ||
</article> | ||
|
||
</main> | ||
<div class="article-meta"> | ||
<h1><span class="title">{{ .Title | markdownify }}</span></h1> | ||
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }} | ||
{{ if .Params.date }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }} | ||
<p class="terms"> | ||
{{ range $i := (slice "categories" "tags") }} | ||
{{ with ($.Param $i) }} | ||
{{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} | ||
{{ end }} | ||
{{ end }} | ||
</p> | ||
</div> | ||
|
||
{{ if .Params.toc }} | ||
{{ with .TableOfContents }} | ||
<div id="table-of-contents"> | ||
<h2>Table of Contents</h2> | ||
{{ . | safeHTML }} | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
|
||
<div class="content-wrapper"> | ||
<main> | ||
{{ .Content }} | ||
<a href="/"> >> Home</a> | ||
</main> | ||
</div> | ||
{{ partial "footer.html" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ partial "header.html" . }} | ||
|
||
<h1>{{ .Title }}</h1> | ||
|
||
<ul class="terms"> | ||
{{ range .Data.Terms }} | ||
<li> | ||
<a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }}) | ||
</li> | ||
{{ end }} | ||
</ul> | ||
|
||
{{ partial "footer.html" . }} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
<footer class="site-footer clearfix"> | ||
<section class="copyright"><a href="">{{.Site.Title}}</a> {{.Site.Copyright}}</section> | ||
{{if ne .Site.Params.hideHUGOSupport true}} | ||
<section class="poweredby">Proudly generated by <a class="icon-hugo" href="http://gohugo.io">HUGO</a>, with <a class="icon-theme" href="https://github.com/vjeantet/hugo-theme-casper">Casper</a> theme</section> | ||
{{end}} | ||
</footer> | ||
</div> | ||
<script> | ||
</script> | ||
<script src="/static/js/blueimp-helper.js"></script> | ||
<script src="/static/js/blueimp-gallery.js"></script> | ||
<script src="/static/js/blueimp-gallery-fullscreen.js"></script> | ||
<script src="/static/js/blueimp-gallery-indicator.js"></script> | ||
<script src="/static/js/blueimp-gallery-video.js"></script> | ||
<script src="/static/js/blueimp-gallery-vimeo.js"></script> | ||
<script src="/static/js/blueimp-gallery-youtube.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
<script type="text/javascript" src="/static/js/jquery.js"></script> | ||
<script type="text/javascript" src="/static/js/jquery.fitvids.js"></script> | ||
<script type="text/javascript" src="/static/js/index.js"></script> | ||
<script> | ||
blueimp.Gallery( | ||
document.getElementById('links').getElementsByTagName('a'), | ||
{ | ||
container: '#blueimp-image-carousel', | ||
carousel: true | ||
} | ||
); | ||
</script> | ||
|
||
<footer> | ||
{{ partial "foot_custom.html" . }} | ||
<!-- Automagically centers images. Original Author Yihui Xie: https://yihui.name --> | ||
<script> | ||
(function() { | ||
function center_el(tagName) { | ||
var tags = document.getElementsByTagName(tagName), i, tag; | ||
for (i = 0; i < tags.length; i++) { | ||
tag = tags[i]; | ||
var parent = tag.parentElement; | ||
// center an image if it is the only element of its parent | ||
if (parent.childNodes.length === 1) { | ||
// if there is a link on image, check grandparent | ||
if (parent.nodeName === 'A') { | ||
parent = parent.parentElement; | ||
if (parent.childNodes.length != 1) continue; | ||
} | ||
if (parent.nodeName === 'P') parent.style.textAlign = 'center'; | ||
} | ||
} | ||
} | ||
var tagNames = ['img', 'embed', 'object']; | ||
for (var i = 0; i < tagNames.length; i++) { | ||
center_el(tagNames[i]); | ||
} | ||
})(); | ||
</script> | ||
|
||
</body> | ||
{{ with .Site.Params.footer }} | ||
<hr/> | ||
{{ . | markdownify }} | ||
{{ end }} | ||
</footer> | ||
</body> | ||
</html> |
Empty file.
Oops, something went wrong.