diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-26 17:14:53 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-26 17:14:53 +0200 |
| commit | 4556a4ec7753a8cf85e0568e245dc3e7328bc708 (patch) | |
| tree | 831114beba69bb33f647dd28f295a44224c91cce /layouts | |
| parent | bd8464abb8deee0d31bb84cc47cd3335c0e688d5 (diff) | |
| download | blog-4556a4ec7753a8cf85e0568e245dc3e7328bc708.tar.gz blog-4556a4ec7753a8cf85e0568e245dc3e7328bc708.zip | |
add creative texts (Deutsch) in its own section
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/list.html | 2 | ||||
| -rw-r--r-- | layouts/index.html | 2 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 8 | ||||
| -rw-r--r-- | layouts/partials/header.html | 9 |
4 files changed, 18 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 00e2181..b7cef4a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,4 +10,4 @@ {{ end }} </main> -{{ partial "footer.html" . }}
\ No newline at end of file +{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 673ab35..1935813 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ partial "header.html" . }} <main role="main"> -{{ range (where .Data.Pages ".Params.hidefromhome" "!=" "true") }} +{{ range (where .Data.Pages ".Section" "==" "tech") }} <article itemscope itemtype="http://schema.org/Blog"> <h2 class="entry-title" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2> <span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 83766c7..2260fb4 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,8 +2,14 @@ <div class="hr"></div> <div class="footer-link"> <!-- SVGs: GitHub octicons, MIT license --> - <a href="/index.xml"><svg height="16" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M2 13H0V11c1.11 0 2 0.89 2 2zM0 3v1c4.97 0 9 4.03 9 9h1c0-5.52-4.48-10-10-10z m0 4v1c2.75 0 5 2.25 5 5h1c0-3.31-2.69-6-6-6z" /></svg> RSS</a> + {{ if not .IsHome }} + <a href="{{ .Site.RSSLink }}"><svg height="16" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M2 13H0V11c1.11 0 2 0.89 2 2zM0 3v1c4.97 0 9 4.03 9 9h1c0-5.52-4.48-10-10-10z m0 4v1c2.75 0 5 2.25 5 5h1c0-3.31-2.69-6-6-6z" /></svg> RSS</a> + {{ end }} + {{ if .IsNode }} + <a href="{{ .RSSLink }}"><svg height="16" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M2 13H0V11c1.11 0 2 0.89 2 2zM0 3v1c4.97 0 9 4.03 9 9h1c0-5.52-4.48-10-10-10z m0 4v1c2.75 0 5 2.25 5 5h1c0-3.31-2.69-6-6-6z" /></svg> RSS{{ if not .IsHome}} ({{ .Title }}){{ end }}</a> + + {{ end }} {{ with .Site.Params.email }}<a href="mailto:{{ . }}" target="_blank"><svg height="16" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M0 4v8c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V4c0-0.55-0.45-1-1-1H1c-0.55 0-1 0.45-1 1z m13 0L7 9 1 4h12zM1 5.5l4 3L1 11.5V5.5z m1 6.5l3.5-3 1.5 1.5 1.5-1.5 3.5 3H2z m11-0.5L9 8.5l4-3v6z" /></svg> Mail</a>{{ end }} {{ with .Site.Params.github }}<a href="https://github.com/{{ . }}" target="_blank"><svg height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59 0.4 0.07 0.55-0.17 0.55-0.38 0-0.19-0.01-0.82-0.01-1.49-2.01 0.37-2.53-0.49-2.69-0.94-0.09-0.23-0.48-0.94-0.82-1.13-0.28-0.15-0.68-0.52-0.01-0.53 0.63-0.01 1.08 0.58 1.23 0.82 0.72 1.21 1.87 0.87 2.33 0.66 0.07-0.52 0.28-0.87 0.51-1.07-1.78-0.2-3.64-0.89-3.64-3.95 0-0.87 0.31-1.59 0.82-2.15-0.08-0.2-0.36-1.02 0.08-2.12 0 0 0.67-0.21 2.2 0.82 0.64-0.18 1.32-0.27 2-0.27 0.68 0 1.36 0.09 2 0.27 1.53-1.04 2.2-0.82 2.2-0.82 0.44 1.1 0.16 1.92 0.08 2.12 0.51 0.56 0.82 1.27 0.82 2.15 0 3.07-1.87 3.75-3.65 3.95 0.29 0.25 0.54 0.73 0.54 1.48 0 1.07-0.01 1.93-0.01 2.2 0 0.21 0.15 0.46 0.55 0.38C13.71 14.53 16 11.53 16 8 16 3.58 12.42 0 8 0z" /></svg> GitHub</a>{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 89a67ba..1881eff 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -18,3 +18,12 @@ </div> {{ if eq $isHomePage true }}<h1 class="site-title">{{ .Site.Title }}</h1>{{ end }} </header> + <div class="container"> + <div class="row"> + {{ range $section, $p := .Site.Sections }} + <div class="one-half column"> + <a class="button" href="/{{ $section }}/">{{ $section }}</a> + </div> + {{ end }} + </div> + </div> |
