Added image viewer
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
|
||||
{{ 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">
|
||||
<article class="center cf pv5 ph3 ph4-ns">
|
||||
<header>
|
||||
<div class="flex justify-between">
|
||||
<div class=" w-50 ">
|
||||
@@ -16,7 +15,7 @@
|
||||
{{ partial "formatted-date.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</header>
|
||||
|
||||
{{/* Show facts, if available */}}
|
||||
<div class="nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray">
|
||||
@@ -72,34 +71,13 @@
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ partial "gallary.html" . }}
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user