new images, new content, new theme almost finished
This commit is contained in:
parent
b62b53674f
commit
ba414b0015
56 changed files with 288 additions and 120 deletions
1
layouts/_default/baseof.calendar.html
Normal file
1
layouts/_default/baseof.calendar.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ block "main" . }}{{ .Content }}{{ end }}
|
21
layouts/_default/list.calendar.html
Normal file
21
layouts/_default/list.calendar.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//CCCB//Calendar//DE
|
||||
{{ with .Title }}
|
||||
X-WR-CALNAME:{{ . }}
|
||||
{{ end }}
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
{{ range .Pages }}
|
||||
{{ if .Date }}
|
||||
BEGIN:VEVENT
|
||||
UID:{{ .File.UniqueID }}@berlin.ccc.de
|
||||
DTSTAMP:{{ .Date.Format "20060102T150405Z" }}
|
||||
DTSTART:{{ .Date.Format "20060102T150405Z" }}
|
||||
SUMMARY:{{ .Title }}
|
||||
DESCRIPTION:{{ .Summary | plainify }}
|
||||
URL:{{ .Permalink }}
|
||||
END:VEVENT
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
END:VCALENDAR
|
12
layouts/_default/list.xml.html
Normal file
12
layouts/_default/list.xml.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<events>
|
||||
{{ range .Pages }}
|
||||
<event>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<date>{{ .Date.Format "2006-01-02" }}</date>
|
||||
<description>{{ .Summary | plainify }}</description>
|
||||
{{ with .Params.location }}<location>{{ . }}</location>{{ end }}
|
||||
</event>
|
||||
{{ end }}
|
||||
</events>
|
21
layouts/_default/single.calendar.html
Normal file
21
layouts/_default/single.calendar.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//CCCB//Calendar//DE
|
||||
{{ with .Title }}
|
||||
X-WR-CALNAME:{{ . }}
|
||||
{{ end }}
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
{{ if .Date }}
|
||||
BEGIN:VEVENT
|
||||
UID:{{ .File.UniqueID }}@berlin.ccc.de
|
||||
DTSTAMP:{{ .Date.Format "20060102T150405Z" }}
|
||||
DTSTART:{{ .Date.Format "20060102T150405Z" }}
|
||||
{{ with .Params.event.end }}DTEND:{{ dateFormat "20060102T150405Z" . }}{{ end }}
|
||||
SUMMARY:{{ .Title }}
|
||||
DESCRIPTION:{{ .Summary | plainify }}
|
||||
URL:{{ .Permalink }}
|
||||
{{ with .Params.location }}LOCATION:{{ . }}{{ end }}
|
||||
END:VEVENT
|
||||
{{ end }}
|
||||
END:VCALENDAR
|
|
@ -3,8 +3,20 @@
|
|||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<article role="main" class="blog-post">
|
||||
{{ partial "talk-infobox" . }}
|
||||
{{ .Content }}
|
||||
<article class="max-w-prose mx-auto">
|
||||
<h1 class="text-2xl font-bold">{{ .Title }}</h1>
|
||||
{{ if .Params.subtitle }}
|
||||
<h2 class="text-xl">{{ .Params.subtitle }}</h2>
|
||||
{{ end }}
|
||||
|
||||
<div class="mt-4 border p-4 bg-secondary-bg rounded">
|
||||
{{ partial "talk-infobox" . }}
|
||||
</div>
|
||||
|
||||
<div class="mt-4 content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{ if .Params.tags }}
|
||||
<div class="blog-tags">
|
||||
|
|
16
layouts/events/single.html
Normal file
16
layouts/events/single.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{ define "main" }}
|
||||
<article class="max-w-prose mx-auto">
|
||||
<h1 class="text-2xl font-bold">{{ .Title }}</h1>
|
||||
{{ if .Params.subtitle }}
|
||||
<h2 class="text-xl">{{ .Params.subtitle }}</h2>
|
||||
{{ end }}
|
||||
|
||||
<div class="mt-4 border p-4 bg-secondary-bg rounded">
|
||||
{{ partial "talk-infobox" . }}
|
||||
</div>
|
||||
|
||||
<div class="mt-4 content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
|
@ -36,7 +36,7 @@ EXDATE;TZID=Europe/Berlin:{{.}}
|
|||
{{end -}}
|
||||
LOCATION:{{with .Params.location}}{{.}}{{else}}CCCB{{end}}
|
||||
URL:{{.Permalink}}
|
||||
DESCRIPTION:{{- .Content | plainify | replaceRE "\n" "\\n" | replaceRE ":" "\\:" -}}
|
||||
DESCRIPTION:{{.Permalink}}
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
{{end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue