diff options
author | dkbm <david@rooikat.com> | 2016-08-25 20:45:25 +0300 |
---|---|---|
committer | dkbm <david@rooikat.com> | 2016-08-25 20:45:25 +0300 |
commit | cd1c50614f0fab64556484d183b6e2962fd11205 (patch) | |
tree | 32eef90ccb389797320820d843bec98ee714038b /layouts |
Initial commit.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 28 | ||||
-rw-r--r-- | layouts/_default/list.html | 31 | ||||
-rw-r--r-- | layouts/_default/single.html | 29 | ||||
-rw-r--r-- | layouts/index.html | 31 | ||||
-rw-r--r-- | layouts/partials/footer.html | 31 | ||||
-rw-r--r-- | layouts/partials/header.html | 26 | ||||
-rw-r--r-- | layouts/partials/sidebar-content.html | 31 |
7 files changed, 207 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..ba269d8 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,28 @@ +{{ partial "header.html" . }} + + <div class="container-fluid"> + <div class="row"> + <div class="col-sm-4 col-md-3 col-lg-3 sidebar"> + + {{ partial "sidebar-content.html" . }} + + </div> + <div class="col-sm-7 col-sm-offset-4 col-md-6 col-md-offset-3 col-lg-5 col-lg-offset-3 content"> + + <div class="post"> + + <div class="post-heading"> + <h1>404 Not Found</h1> + <p>Unfortunately we couldn't find the page you requested.</p> + <p><a href="{{ .Site.BaseURL }}">Return to {{ .Site.Title }}</a></p> + </div> + + </div> + + </div> + <div class="col-sm-1 col-md-3 col-md-4"> + </div> + </div> + </div> + +{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..536ada3 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,31 @@ +{{ partial "header.html" . }} + + <div class="container-fluid"> + <div class="row"> + <div class="col-sm-4 col-md-3 col-lg-3 sidebar"> + + {{ partial "sidebar-content.html" . }} + + </div> + <div class="col-sm-7 col-sm-offset-4 col-md-6 col-md-offset-3 col-lg-5 col-lg-offset-3 content"> + + {{ range first 10 .Data.Pages }} + <div class="post"> + + <div class="post-heading"> + <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> + <span>{{ .Date.Format .Site.Params.DateFormat }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span> + </div> + + {{ .Content }} + + </div> + {{ end }} + + </div> + <div class="col-sm-1 col-md-3 col-md-4"> + </div> + </div> + </div> + +{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..2261dc0 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,29 @@ +{{ partial "header.html" . }} + + <div class="container-fluid"> + <div class="row"> + <div class="col-sm-4 col-md-3 col-lg-3 sidebar"> + + {{ partial "sidebar-content.html" . }} + + </div> + <div class="col-sm-7 col-sm-offset-4 col-md-6 col-md-offset-3 col-lg-5 col-lg-offset-3 content"> + + <div class="post"> + + <div class="post-heading"> + <h1>{{ .Title }}</h1> + <span class="post-date"><a href="{{ .Permalink }}"># {{ .Date.Format .Site.Params.DateFormat }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</a></span> + </div> + + {{ .Content }} + + </div> + + </div> + <div class="col-sm-1 col-md-3 col-md-4"> + </div> + </div> + </div> + +{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..536ada3 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,31 @@ +{{ partial "header.html" . }} + + <div class="container-fluid"> + <div class="row"> + <div class="col-sm-4 col-md-3 col-lg-3 sidebar"> + + {{ partial "sidebar-content.html" . }} + + </div> + <div class="col-sm-7 col-sm-offset-4 col-md-6 col-md-offset-3 col-lg-5 col-lg-offset-3 content"> + + {{ range first 10 .Data.Pages }} + <div class="post"> + + <div class="post-heading"> + <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> + <span>{{ .Date.Format .Site.Params.DateFormat }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span> + </div> + + {{ .Content }} + + </div> + {{ end }} + + </div> + <div class="col-sm-1 col-md-3 col-md-4"> + </div> + </div> + </div> + +{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..f0decb0 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,31 @@ + +{{ template "_internal/google_analytics.html" . }} + +{{ if .Site.Params.piwikSiteID }} +{{ if .Site.Params.piwikURL }} + +<!-- Piwik --> +<script type="text/javascript"> + var _paq = _paq || []; + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//{{ .Site.Params.piwikURL }}/"; + _paq.push(['setTrackerUrl', u+'piwik.php']); + _paq.push(['setSiteId', {{ .Site.Params.piwikSiteID }}]); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); + })(); +</script> +<!-- End Piwik Code --> + +{{ end }} +{{ end }} + +<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> +<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> +<!-- Include all compiled plugins (below), or include individual files as needed --> +<script src="{{ .Site.BaseURL }}/js/bootstrap.min.js"></script> + +</body> +</html>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..340c90a --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<html {{ with .Site.LanguageCode }}lang="{{ . }}"{{ end }}> +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + {{ .Hugo.Generator }} + <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> + <title>{{ .Title }} - {{ .Site.Params.description }}</title> + + <!-- Bootstrap --> + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto"> + <link href="{{ .Site.BaseURL }}/css/bootstrap.min.css" rel="stylesheet"> + <link href="{{ .Site.BaseURL }}/css/strange-case.css" rel="stylesheet"> + <!--<style type="text/css" media="all"> + # Optional: comment out strange-case.css above, minify it with YUICompressor and paste inline styles here to lose a request... + </style>--> + + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> + <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> + {{ "<!--[if lt IE 9]>" | safeHTML }} + <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> + {{ "<![endif]-->" | safeHTML }} +</head> +<body class="{{ .Site.Params.colorScheme }}">
\ No newline at end of file diff --git a/layouts/partials/sidebar-content.html b/layouts/partials/sidebar-content.html new file mode 100644 index 0000000..b00524d --- /dev/null +++ b/layouts/partials/sidebar-content.html @@ -0,0 +1,31 @@ + + <div class="sidebar-content"> + + <a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a> + <p>{{ .Site.Params.description }}</p> + + {{ if .Site.Params.sidebarFreeText }} + <div class="sidebar-freetext"> + <p>{{ .Site.Params.sidebarFreeText }}</p> + </div> + {{ end }} + + <ul class="sidebar-menus"> + {{ range .Site.Menus.main }} + <li>» <a href="{{.URL}}">{{ .Name }}</a> {{ .Post }}</li> + {{end}} + </ul> + + <div class="sidebar-recent hidden-xs"> + <p>Recent Posts:</p> + <ul> + {{ range first 5 .Site.Pages }} + <li><a href="{{.Permalink}}">{{ .Title }}</a></li> + {{ end }} + </ul> + </div> + + <p class="copyright">{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{.Now.Format "2006"}}. All rights reserved. {{end}}</p> + <p class="attr">Powered by <a href="http://http://gohugo.io">Hugo</a> & <a href="https://github.com/ExchangeRate-API/strange-case">Strange Case</a> (inspired by <a href="https://github.com/poole/hyde">Hyde</a>).</p> + + </div> |