hugo without theme
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<article class="measure-wide center pa3 pa4-ns nested-copy-line-height nested-img">
|
||||
<section class="cf pv3 pv4-l f4 tc-l measure-wide lh-copy mid-gray">
|
||||
{{- .Content -}}
|
||||
<p id="top">Touren-Archiv</p>
|
||||
</section>
|
||||
|
||||
<div class="w-100">
|
||||
<!-- Groups content by month according to the "date" field in front matter -->
|
||||
{{ range .Pages.GroupByDate "2006" }}
|
||||
<section class="mt5">
|
||||
<div>
|
||||
<h3 id="{{ .Key }}">{{ .Key }} </h3>
|
||||
</div>
|
||||
|
||||
<div class="center">
|
||||
<section class=" mt1">
|
||||
{{ range .Pages }}
|
||||
<div class="relative mb1 bg-white">
|
||||
{{ partial "archive-post-summary.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
<div class="mt4 flex flexbox justify-center">
|
||||
<a href=#top>top</a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,106 @@
|
||||
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation-bar.html" ( dict "context" . "items" (slice "/" ) )}}
|
||||
|
||||
<div class="flex-l mt2 mw8 center">
|
||||
<article class="center cf pv5 ph3 ph4-ns mw7">
|
||||
<header>
|
||||
<div class="flex justify-between">
|
||||
<div class=" w-50 ">
|
||||
{{- .Params.Sports -}}
|
||||
</div>
|
||||
<div class=" w-50 tr ">
|
||||
{{- .Params.Locations -}}
|
||||
{{ partial "formatted-date.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{/* Show facts, if available */}}
|
||||
<div class="nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray">
|
||||
{{ if isset .Params "distance_km" }}
|
||||
<h1 class="f2">
|
||||
Fakten
|
||||
</h1>
|
||||
<ul>
|
||||
{{ with .Params.distance_km}}
|
||||
<li>
|
||||
Distanz : {{ partial "func/NumberFormatter.html" ( dict "number" . "precision" 1 )}} KM
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ with .Params.average_speed_kmh }}
|
||||
<li>
|
||||
Schnitt : {{ partial "func/NumberFormatter.html" ( dict "number" . "precision" 1 ) }} km/h
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ with .Params.ascent_m }}
|
||||
<li>
|
||||
Aufstieg: {{ partial "func/NumberFormatter.html" ( dict "number" . "precision" 0) }} HM
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ with .Params.avarage_speed }}
|
||||
<li>
|
||||
Schnitt : {{ printf "%.f" . }} km/h
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ with .Params.temperature_c }}
|
||||
<li>
|
||||
Temperatur: {{ partial "func/NumberFormatter.html" ( dict "number" . "precision" 1 ) }} °C
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
{{ if isset .Params "members" }}
|
||||
<h1 class="f2">
|
||||
Teilnehmer
|
||||
</h1>
|
||||
<div class="nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray">
|
||||
{{ $max := add -1 (len .Params.members) }}
|
||||
{{ range $index, $member := .Params.members }}
|
||||
{{ $member }}{{if lt $index $max }}, {{ end }}
|
||||
{{ end}}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<h1 class="f2">
|
||||
Story
|
||||
</h1>
|
||||
<div class="nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
|
||||
<h1 class="f2">
|
||||
Bilder des Tages
|
||||
</h1>
|
||||
{{ $page := .}}
|
||||
{{ with .Resources.Match "images/*" }}
|
||||
{{ range . }}
|
||||
{{ $gallary_img := .Resize "600x" }}
|
||||
<div class="pv4 b--black-10 ph3 ph0-l">
|
||||
<a href="{{.Permalink}}" class="db ">
|
||||
<img style="max-width: 100%; width: auto; height: auto;" src="{{ $gallary_img.RelPermalink }}"
|
||||
width="{{ .Width }}" height="{{ .Height }}" alt="{{ .Title }}" >
|
||||
</a>
|
||||
{{ if isset $page.Params "captions" }}
|
||||
{{ range first 1 (where $page.Params.captions "name" .Name) }}
|
||||
{{ .text }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
{{ partial "social-activity.html" . }}
|
||||
|
||||
</article>
|
||||
</div>
|
||||
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user