Add initial blog configuration
This commit is contained in:
20
themes/scroll/layouts/_default/list.html
Normal file
20
themes/scroll/layouts/_default/list.html
Normal file
@ -0,0 +1,20 @@
|
||||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
<div class="content-wrapper">
|
||||
<div class="content-wrapper__inner">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<h2>{{ .Key }}</h2>
|
||||
<ul id="list">
|
||||
{{range .Pages }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }} {{ if .GetParam "draft"}}DRAFT{{end}}</a>
|
||||
<div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{{ partial "script.html" .}}
|
||||
</html>
|
14
themes/scroll/layouts/_default/single.html
Normal file
14
themes/scroll/layouts/_default/single.html
Normal file
@ -0,0 +1,14 @@
|
||||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
<div class="content-wrapper">
|
||||
<div class="content-wrapper__inner">
|
||||
<div class="post">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{{ partial "script.html" .}}
|
||||
</html>
|
37
themes/scroll/layouts/index.html
Normal file
37
themes/scroll/layouts/index.html
Normal file
@ -0,0 +1,37 @@
|
||||
{{ partial "header.html" . }}
|
||||
<body class="home-template">
|
||||
|
||||
<!-- The big featured header on the homepage, with the site logo and description -->
|
||||
<header id="site-head" {{ if .Site.Params.cover }}style="background-image: url({{ .Site.Params.cover }})"{{ end }}>
|
||||
<div class="vertical">
|
||||
<div id="site-head-content" class="inner">
|
||||
|
||||
{{ if .Site.Params.logo }} <a id="blog-logo" href="{{ .Site.BaseURL }}"><img src="{{ .Site.Params.logo }}" alt="Blog Logo" /></a>{{ end }}
|
||||
<h1 class="blog-title">{{ .Site.Title}}</h1>
|
||||
{{ if .Site.Params.description }}<h2 class="blog-description">{{ .Site.Params.description }}</h2> {{ else }}
|
||||
<h2 class="blog-description">Power puff girls</h2>
|
||||
{{ end }}
|
||||
|
||||
<a class='btn first'>About Us</a>
|
||||
<a class='btn last'>Contact Us</a><br>
|
||||
<i id='header-arrow' class="fa fa-angle-down"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
<main class="content" role="main">
|
||||
{{ range .Data.Pages.ByWeight }}
|
||||
{{ if eq .Type "post" }}
|
||||
{{ .Render "post"}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</main>
|
||||
{{ partial "footer.html" .}}
|
||||
|
||||
{{ partial "script.html" .}}
|
||||
|
||||
<script src="//rum-static.pingdom.net/pa-5ab7d7250b34680007000569.js" async></script>
|
||||
</body>
|
||||
</html>
|
30
themes/scroll/layouts/partials/footer.html
Normal file
30
themes/scroll/layouts/partials/footer.html
Normal file
@ -0,0 +1,30 @@
|
||||
<footer class="site-footer">
|
||||
<div>
|
||||
{{ if .Site.Params.twitter }}
|
||||
<a href="http://twitter.com/{{ .Site.Params.twitter }}" title="Twitter"><span class="fa fa-tt fa-2x"></span></a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.bitbucket }}
|
||||
<a href="https://bitbucket.org/{{ .Site.Params.bitbucket }}" title="Bitbucket"><span class="fa fa-bitbucket fa-2x"></span></a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.github }}
|
||||
<a href="https://github.com/{{ .Site.Params.github }}" title="GitHub"><span class="fa fa-github fa-2x"></span></a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.flickr }}
|
||||
<a href="http://www.flickr.com/photos/{{ .Site.Params.flickr }}/" title="Flickr"><span class="fa fa-flickr fa-2x"></span></a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.linkedin }}
|
||||
<a href="http://no.linkedin.com/in/{{ .Site.Params.linkedin }}/en" title="Linkedin"> <i class='fa fa-ll fa-2x'></i></a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.email }}
|
||||
<a href="mailto:{{ .Site.Params.email }}" title="Email {{ .Site.Params.email }}"> <i class='fa fa-envelope-o fa-2x'></i></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="inner">
|
||||
<section >
|
||||
Proudly published with <a class="i-ghost" href="http://gohugo.io">Hugo</a>. <a href="http://ghostscroll.grmmph.com/">HugoScroll</a> theme by <a href="http://fredrikloch.me">Fredrik</a>.<br>
|
||||
Copyright ©2016 <a href="https://www.boniface.me">Joshua Boniface</a>. A <a href="https://www.bonifacelabs.ca">Boniface Labs</a> service.<br>
|
||||
Released under a Creative-Commons Attribution-ShareAlike 4.0 license. Some rights reserved.
|
||||
</section>
|
||||
</div>
|
||||
</footer>
|
18
themes/scroll/layouts/partials/header.html
Normal file
18
themes/scroll/layouts/partials/header.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Document Settings -->
|
||||
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
|
||||
<!-- Enable responsiveness on mobile devices-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
<title> {{ .Title }} · {{ .Site.Title }} </title>
|
||||
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="MobileOptimized" content="320" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<!--Styles'n'Scripts -->
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}/css/base.css" />
|
||||
</head>
|
3
themes/scroll/layouts/partials/script.html
Normal file
3
themes/scroll/layouts/partials/script.html
Normal file
@ -0,0 +1,3 @@
|
||||
<!-- Script -->
|
||||
<script src="{{ .Site.BaseURL }}/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="{{ .Site.BaseURL }}/js/index.min.js"></script>
|
35
themes/scroll/layouts/post/post.html
Normal file
35
themes/scroll/layouts/post/post.html
Normal file
@ -0,0 +1,35 @@
|
||||
<div class='post-holder'>
|
||||
{{ if .Params.class }}
|
||||
<article class="{{ .Params.class }}">
|
||||
{{ else }}
|
||||
<article class="post">
|
||||
{{ end }}
|
||||
|
||||
<header class="post-header">
|
||||
<a id="blog-logo" href="{{ .Site.BaseURL}}">
|
||||
{{ if .Site.Params.logo }}
|
||||
<a id="blog-logo" href="{{ .Site.BaseURL}}"><img src="{{ .Site.Params.logo }}" alt="Blog Logo" /></a>
|
||||
{{else}}
|
||||
{{ .Site.Title }}
|
||||
{{ end }}
|
||||
</a>
|
||||
</header>
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
|
||||
<section class="post-content">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
|
||||
<footer class="post-footer">
|
||||
|
||||
{{ if .Site.Author }}
|
||||
<section class="author">
|
||||
<h4>{{ .Site.Author.name}}</h4>
|
||||
<p>{{ .Site.Author.bio }}</p>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
</footer>
|
||||
</article>
|
||||
</div>
|
||||
<div class='post-after'></div>
|
Reference in New Issue
Block a user