diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-21 16:32:35 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-21 16:32:35 +0200 |
| commit | 1f824e6ae5ac39d0cefe0244ea9223c1783494f3 (patch) | |
| tree | b898d60dabde26ace368e1482a6189d5009ae95f /themes/flog/layouts | |
| download | pragblog-1f824e6ae5ac39d0cefe0244ea9223c1783494f3.tar.gz pragblog-1f824e6ae5ac39d0cefe0244ea9223c1783494f3.zip | |
first commit, dummies
Diffstat (limited to 'themes/flog/layouts')
| -rw-r--r-- | themes/flog/layouts/404.html | 0 | ||||
| -rw-r--r-- | themes/flog/layouts/_default/list.html | 3 | ||||
| -rw-r--r-- | themes/flog/layouts/_default/single.html | 13 | ||||
| -rw-r--r-- | themes/flog/layouts/index.html | 3 | ||||
| -rw-r--r-- | themes/flog/layouts/partials/footer.html | 18 | ||||
| -rw-r--r-- | themes/flog/layouts/partials/header.html | 27 | ||||
| -rw-r--r-- | themes/flog/layouts/partials/listing.html | 28 |
7 files changed, 92 insertions, 0 deletions
diff --git a/themes/flog/layouts/404.html b/themes/flog/layouts/404.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/flog/layouts/404.html diff --git a/themes/flog/layouts/_default/list.html b/themes/flog/layouts/_default/list.html new file mode 100644 index 0000000..38c4c59 --- /dev/null +++ b/themes/flog/layouts/_default/list.html @@ -0,0 +1,3 @@ +{{ partial "header.html" . }} +{{ partial "listing.html" . }} +{{ partial "footer.html" . }} diff --git a/themes/flog/layouts/_default/single.html b/themes/flog/layouts/_default/single.html new file mode 100644 index 0000000..6012d94 --- /dev/null +++ b/themes/flog/layouts/_default/single.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . }} + <div class="white z-depth-1"> + <main role="main" class="container"> + <article itemscope itemtype="http://schema.org/BlogPosting" class=""> + <h1 itemprop="headline" class="header">{{ .Title }}</h1> + <span><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time></span> + <section itemprop="articleBody"> + <p class="flow-text">{{ .Content }}</p> + </section> + </article> + </main> + </div> +{{ partial "footer.html" . }} diff --git a/themes/flog/layouts/index.html b/themes/flog/layouts/index.html new file mode 100644 index 0000000..38c4c59 --- /dev/null +++ b/themes/flog/layouts/index.html @@ -0,0 +1,3 @@ +{{ partial "header.html" . }} +{{ partial "listing.html" . }} +{{ partial "footer.html" . }} diff --git a/themes/flog/layouts/partials/footer.html b/themes/flog/layouts/partials/footer.html new file mode 100644 index 0000000..c3c6fca --- /dev/null +++ b/themes/flog/layouts/partials/footer.html @@ -0,0 +1,18 @@ + </div> <!-- .container --> + <script type="text/javascript" src="/js/jquery-2.2.4.min.js"></script> + <script type="text/javascript" src="/js/materialize-0.97.7.min.js"></script> + <script type="text/javascript" src="/js/masonry-4.1.min.js"></script> + <script type="text/javascript"> + function parallax() { + var yPos = -($(window).scrollTop() / $('body').data('speed')); + var coords = '50% ' + yPos + 'px'; + $('body').css({ backgroundPosition: coords }); + }; + $(document).ready(function() { + new Masonry('.grid', { itemSelector: '.grid-item', percentPosition: true, columnWidth: '.grid-sizer' }); + $(window).scroll(parallax); + parallax(); + }); + </script> + </body> +</html> diff --git a/themes/flog/layouts/partials/header.html b/themes/flog/layouts/partials/header.html new file mode 100644 index 0000000..5a32775 --- /dev/null +++ b/themes/flog/layouts/partials/header.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> + <head> + <meta charset="utf-8"> + {{ .Hugo.Generator }} + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"> + <link rel="stylesheet" type="text/css" href="/css/materialize-0.97.7.min.css"> + <link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}"> + <title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title> + </head> + <body style="background: url(/background.jpg);" data-speed="5"> + <header> + <nav class="teal lighten-2"> + <div class="nav-wrapper"> + <a href="/" class="brand-logo center">{{ .Title }}</a> + <ul class="left"> + {{ $active_section := (or .Section (or (and (not .IsPage) (lower .Title)) "")) }} + {{ range $section, $p := .Site.Sections }} + <li{{ if eq $active_section $section }} class="active"{{ end }}> + <a href="/{{ $section }}/">{{ $section }}</a> + </li> + {{ end }} + <ul> + </div> + </nav> + </header> + <div class="container"> diff --git a/themes/flog/layouts/partials/listing.html b/themes/flog/layouts/partials/listing.html new file mode 100644 index 0000000..bc97b30 --- /dev/null +++ b/themes/flog/layouts/partials/listing.html @@ -0,0 +1,28 @@ +<main role="main"> + <h1>{{ .Title }}</h1> + <div class="row grid"> + <div class="grid-sizer col s1"></div> + {{ range .Data.Pages }} + {{ if .Params.image }} + <article itemscope itemtype="http://schema.org/BlogPosting" class="col s12 m6 grid-item grid--width6"> + {{ else }} + <article itemscope itemtype="http://schema.org/BlogPosting" class="col s12 m4 grid-item grid--width4"> + {{ end }} + <div class="card"> + {{ if .Params.image }} + <div class="card-image"> + <img src="/images/{{ .Params.image }}"> + </div> + {{ end }} + <section class="card-content" itemprop="text"> + <span class="card-title" itemprop="headline">{{ .Title }}</span> + <p>{{ .Summary }}</p> + </section> + <div class="card-action"> + <a href="{{ .RelPermalink }}">Weiterlesen…</a> + </div> + </div> + </article> + {{ end }} + </div> +</main> |
