|
| 1 | +{{ define "title" }} |
| 2 | +<title> |
| 3 | + {{ .Title }} - {{ strings.FirstUpper .Section }} - {{ .Site.Title }} |
| 4 | +</title> |
| 5 | +{{ end }} {{ define "head" }} {{ range .AlternativeOutputFormats -}} |
| 6 | +<link |
| 7 | + rel="{{ .Rel }}" |
| 8 | + type="{{ .MediaType.Type }}" |
| 9 | + href="{{ .Permalink | safeURL }}" |
| 10 | +/> |
| 11 | +{{ end -}} {{ with .Params.subtitle }}<meta description="{{.}}" />{{ end }} |
| 12 | +<meta property="og:title" content="{{ .Title }}" /> |
| 13 | +<meta property="og:type" content="article" /> |
| 14 | +<meta property="og:url" content="{{ .Permalink }}" /> |
| 15 | +<meta property="og:image" content='/files/{{ trim .Params.img_header "/"}}' /> |
| 16 | +{{ with .Params.subtitle }} |
| 17 | +<meta property="og:description" content="{{.}}" /> |
| 18 | +<meta name="description" content="{{.}}" /> |
| 19 | +{{ end }} {{ end }} {{ define "main" }} |
| 20 | +<main> |
| 21 | + <article class="l__project"> |
| 22 | + <div class="container"> |
| 23 | + <div class="row"> |
| 24 | + <h1 class="col col-12 col-md-10 offset-md-1">{{ .Title }}</h1> |
| 25 | + {{ with .Params.subtitle }} |
| 26 | + <p class="l__project__subtitle col col-12 col-md-10 offset-md-1"> |
| 27 | + {{.}} |
| 28 | + </p> |
| 29 | + {{ end }} |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + |
| 33 | + {{ if .Params.img_header }} |
| 34 | + <div class="container l__project__headerimg"> |
| 35 | + <div class="row"> |
| 36 | + <div class="col col-12"> |
| 37 | + <figure class="license"> |
| 38 | + <img src="/files/{{.Params.img_header}}" alt="" /> |
| 39 | + {{ with .Params.img_license }} |
| 40 | + <figcaption>{{ . }}</figcaption> |
| 41 | + {{ end }} |
| 42 | + </figure> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + </div> |
| 46 | + {{ end }} |
| 47 | + |
| 48 | + <div class="container"> |
| 49 | + <div class="row"> |
| 50 | + <aside |
| 51 | + class="order-2 col col-12 col-sm-10 col-md-3 col-lg-2 offset-lg-1" |
| 52 | + > |
| 53 | + {{ with .Params.eventdate }} |
| 54 | + <p> |
| 55 | + <span class="bold">Datum</span><br />{{ . | time.Format "02.01.2006" |
| 56 | + }} |
| 57 | + </p> |
| 58 | + {{ else }} {{ with .Params.eventdatestart }} |
| 59 | + <p> |
| 60 | + <span class="bold">Datum</span><br />{{ . | time.Format "02.01.2006" |
| 61 | + }} – {{ $.Params.eventdateend | time.Format "02.01.2006" }} |
| 62 | + </p> |
| 63 | + {{ end }} {{ end }} {{ with .Params.location }} |
| 64 | + <p><span class="bold">Ort</span><br />{{ . }}</p> |
| 65 | + {{ end }} {{ with .Params.link }} |
| 66 | + <p> |
| 67 | + <span class="bold">Link</span><br /><a |
| 68 | + href="{{ . }}" |
| 69 | + target="_blank" |
| 70 | + >{{ . }}</a |
| 71 | + > |
| 72 | + </p> |
| 73 | + {{ end }} {{ with .Params.tags }} |
| 74 | + <p><span class="bold">Tags</span><br />{{ delimit . ", " }}</p> |
| 75 | + {{ end }} |
| 76 | + </aside> |
| 77 | + |
| 78 | + <div |
| 79 | + class="l__project__content l__content col col-12 col-sm-10 col-md-8 offset-md-2 col-lg-7" |
| 80 | + > |
| 81 | + {{ .Content }} |
| 82 | + </div> |
| 83 | + </div> |
| 84 | + </div> |
| 85 | + </article> |
| 86 | +</main> |
| 87 | +{{ end }} |
0 commit comments