From dc7cc9ab076c70bf783e804a3162fd7314fbd547 Mon Sep 17 00:00:00 2001 From: Jonny007-MKD Date: Sun, 12 Aug 2018 16:22:39 +0200 Subject: [PATCH] Initial commit with theme highlights --- .gitignore | 1 + .gitmodules | 6 ++ archetypes/default.md | 6 ++ config.toml | 87 +++++++++++++++++++++++++++ layouts/partials/trainingszeiten.html | 22 +++++++ themes/highlights | 1 + 6 files changed, 123 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 layouts/partials/trainingszeiten.html create mode 160000 themes/highlights diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a48cf0d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..075b428 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "themes/hugo-highlights-theme"] + path = themes/highlights + url = https://github.com/schmanat/hugo-highlights-theme.git +[submodule "themes/highlights"] + path = themes/highlights + url = https://github.com/schmanat/hugo-highlights-theme.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..7296ac9 --- /dev/null +++ b/config.toml @@ -0,0 +1,87 @@ +baseURL = "https://www.shintai-brv.de/" +languageCode = "de-de" +title = "SHINTAI Judoschule Bremervörde e.V." +theme = "highlights" +Paginate = 10 +enableRobotsTXT = true + +[blackfriday] + fractions = false + +[permalinks] + post = "/:slug/" + page = "/:slug/" + +[sitemap] + changefreq = "monthly" + priority = 0.5 + filename = "sitemap.xml" + +[privacy] + [privacy.disqus] + disable = true + [privacy.googleAnalytics] + disable = true + [privacy.instagram] + disable = true + [privacy.speakerDeck] + +[params] + favicon = "" + facebook = "" + twitter = "" + instagram = "" + youtube = "" + github = "" + linkedin = "" + + # To provide more meta data for search engings feel free to add a few informations. + # This lines will be inserted as meta tags. + name = "Shintai Judoschule Bremervörde" + description = "" + + email = "" + + # If this param is set to true, every section gets an own background image (located at static/images) + # to change the image you could use the param picture on every section. + # If it's disabled you could change the background to overwrite the bg.png and overlay.png to set the background. + backgroundpersection = true + + [params.hero] + type = "hero" + title = "SHINTAI Judoschule Bremervörde e.V." + description = "" + buttontext = "mehr" + + [[params.block]] + id = "kontakt" + type = "text" + title = "Anschrift" + description = "

Gnarrenburger Straße 33
27432 Bremervörde

Ansprechpartner: Christian Walther-Schwone
0160-3012669
sjs.brv@googlemail.com

" + buttontext = "next" + # the picture is storead at static/images/ + #picture = "pic01.jpg" + + [[params.block]] + id = "trainingszeiten" + type = "trainingszeiten" + title = "Trainingszeiten" + # the picture is storead at static/images/ + #picture = "pic03.jpg" + + [[params.block.item]] + day = "Montag" + description = "Judo, 5 bis 9 Jahre: 18 - 19 Uhr
Judo, 10 bis 14 Jahre: 19 - 20 Uhr
Technik, ab 14 Jahre: 20 - 21 Uhr" + [[params.block.item]] + day = "Mittwoch" + description = "Judo, 5 bis 9 Jahre: 17:30 - 18:30 Uhr
Judo, 10 bis 14 Jahre: 18:30 - 19:30 Uhr
Technik, ab 14 Jahre: 19:30 - 20:15 Uhr
Randori, ab 15 Jahre: 20:15 - 21:00 Uhr" + [[params.block.item]] + day = "Freitag" + description = "Judo, Mädchen, 5 bis 13 Jahre: 17 - 18 Uhr
Judo, Jungen, 5 bis 13 Jahre: 18 - 19 Uhr
Technik, ab 14 Jahre: 19 - 19:45 Uhr" + [[params.block.item]] + day = "Samstag, 1. & 3. Woche im Monat" + description = "Judo-Fitness, Kraft/Ausdauer: 9 - 10 Uhr
Selbstverteidigung: 10 - 11 Uhr" + [[params.block.item]] + day = "Samstag, 2. & 4. Woche im Monat" + description = "Selbstverteidigung: 13 - 14 Uhr
Dan Vorbereitung: 14 - 16 Uhr" + diff --git a/layouts/partials/trainingszeiten.html b/layouts/partials/trainingszeiten.html new file mode 100644 index 0000000..bafe1b3 --- /dev/null +++ b/layouts/partials/trainingszeiten.html @@ -0,0 +1,22 @@ +{{ print "" | safeHTML }} +
+
+ {{ if eq .params.backgroundpersection true }} + + {{ end }} +
+
+

{{ with .block.title }}{{ . | markdownify }}{{ end }}

+
+ {{ range .block.item }} +
+

{{ .day }}

+ {{ with .description }}{{ . | markdownify }}{{ end }} +
+ {{ end }} +
+ {{ if .next }} + {{ with .block.buttontext }}{{ . | markdownify }}{{ end }} + {{ end }} +
+
diff --git a/themes/highlights b/themes/highlights new file mode 160000 index 0000000..4823854 --- /dev/null +++ b/themes/highlights @@ -0,0 +1 @@ +Subproject commit 48238544054fe7d31234d65e85d8354ab3c42d5a