diff --git a/config.toml b/config.toml deleted file mode 100644 index 6dade37..0000000 --- a/config.toml +++ /dev/null @@ -1,89 +0,0 @@ -baseURL = "https://bunteshaus.de/" -languageCode = "de-DE" -defaultContentLanguage = "de" -title = "Bunteshaus e.V." -theme = "buha" -enableGitInfo = true -paginate = 5 -description = "Buntes Haus e.V. - Soziokulturelles Zentrum in Celle - probably the friendliest place on earth" -copyright = "bunteshaus.de" - -[taxonomies] -categories = 'categories' -tags = 'tags' -events = 'events' -about = 'about' -featured = 'featured' -foundations = 'foundations' - -[frontmatter] - date = ['date', 'publishDate', 'lastmod'] - expiryDate = ['expiryDate'] - lastmod = ['lastmod', ':git', 'date', 'publishDate'] - publishDate = ['publishDate', 'date'] - - -[params] - # keywords for seo - keywords = "buntes haus celle, buntes haus, bunteshaus, celle, buntes haus e.V., www.bunteshaus.de, celle, punk, reggae, ska, konzerte, partys, soziokultur, soziokulturelles zentrum celle, elektro, electroe, jugendzentrum, celle, dum n bass, konzert, musik, politik, kultur, alternativ, cd kaserne celle, cd kaserne, plenum, celle, antifa, antira, anti akw, anti atom celle, veranstaltungen, infoladen, proberaum celle, archiv für neue soziale bewegungen in celle, hartz 4 IV beratung celle, skaten, graffiti, sprayen, kunst, fahrradwerkstatt, deka dance celle, dekadance, Revista, probably the friendliest Place on Earth" - debug = false - #do you want a contact page? - contact = true - - #do you want a newsletter page? - newsletter = true - - #do you want a links page? - links = true - - #do you want an archive? - archive = true - - # do you want an imprint? - imprint = true - - # what is seen in the header? - mainMenu = ['about'] - - # in which section search for posts? - searchSections = ['news'] - - # how long stays a featrued article on frontpage as featured (in weeks) - featured_expire = "1" - - placeholder = "/images/no_article_pic.png" - - # data for your imprint and contact page - [params.imprintdata] - tel = "(+) 49 5141 907 927" - mail = 'info@bunteshaus.de' - street = "Hannoversche Straße 30 f" - pobox = "3166" - city = "29221 Celle" - country = "Niedersachsen / Deutschland" - executive = "Ingileif Bech" - nonprofit = true - - [params.foundations] - brentrup = "https://heise.de" - -[outputs] - home = ["HTML", "RSS"] - section = ["HTML", "RSS"] - page = ["HTML"] - taxonomy = ["HTML", "RSS"] - term = ["HTML", "RSS"] - -[languages] - [languages.de] - languageName = "Deutsch" - weight = 10 - - [languages.ku] - languageName = "Kurdî" - weight = 0 - - [languages.en] - languageName = "English" - weight = 5 - diff --git a/config/_default/config.toml b/config/_default/config.toml new file mode 100644 index 0000000..968a102 --- /dev/null +++ b/config/_default/config.toml @@ -0,0 +1,10 @@ +baseURL = "https://bunteshaus.de/" +languageCode = "de-DE" +defaultContentLanguage = "de" +title = "Bunteshaus e.V." +theme = "buha" +enableGitInfo = true +paginate = 5 +description = "Buntes Haus e.V. - Soziokulturelles Zentrum in Celle - probably the friendliest place on earth" +copyright = "bunteshaus.de" + diff --git a/config/_default/frontmatter.toml b/config/_default/frontmatter.toml new file mode 100644 index 0000000..7233328 --- /dev/null +++ b/config/_default/frontmatter.toml @@ -0,0 +1,4 @@ +date = ['date', 'publishDate', 'lastmod'] +expiryDate = ['expiryDate'] +lastmod = ['lastmod', ':git', 'date', 'publishDate'] +publishDate = ['publishDate', 'date'] diff --git a/config/_default/languages.toml b/config/_default/languages.toml new file mode 100644 index 0000000..16f15c9 --- /dev/null +++ b/config/_default/languages.toml @@ -0,0 +1,11 @@ +[de] + languageName = "Deutsch" + weight = 10 + +[ku] + languageName = "Kurdî" + weight = 0 + +[en] + languageName = "English" + weight = 5 diff --git a/config/_default/outputs.toml b/config/_default/outputs.toml new file mode 100644 index 0000000..f2d39fa --- /dev/null +++ b/config/_default/outputs.toml @@ -0,0 +1,5 @@ + home = ["HTML", "RSS"] + section = ["HTML", "RSS"] + page = ["HTML"] + taxonomy = ["HTML", "RSS"] + term = ["HTML", "RSS"] diff --git a/config/_default/params.toml b/config/_default/params.toml new file mode 100644 index 0000000..9344c67 --- /dev/null +++ b/config/_default/params.toml @@ -0,0 +1,45 @@ +# keywords for seo +keywords = "buntes haus celle, buntes haus, bunteshaus, celle, buntes haus e.V., www.bunteshaus.de, celle, punk, reggae, ska, konzerte, partys, soziokultur, soziokulturelles zentrum celle, elektro, electroe, jugendzentrum, celle, dum n bass, konzert, musik, politik, kultur, alternativ, cd kaserne celle, cd kaserne, plenum, celle, antifa, antira, anti akw, anti atom celle, veranstaltungen, infoladen, proberaum celle, archiv für neue soziale bewegungen in celle, hartz 4 IV beratung celle, skaten, graffiti, sprayen, kunst, fahrradwerkstatt, deka dance celle, dekadance, Revista, probably the friendliest Place on Earth" +debug = false +#do you want a contact page? +contact = true + +#do you want a newsletter page? +newsletter = true + +#do you want a links page? +links = true + +#do you want an archive? +archive = true + +#do you want an media folder? +media = true + +# do you want an imprint? +imprint = true + +# what is seen in the header? +mainMenu = ['about'] + +# in which section search for posts? +searchSections = ['news'] + +# how long stays a featrued article on frontpage as featured (in weeks) +featured_expire = "1" + +placeholder = "/images/no_article_pic.png" + +# data for your imprint and contact page +[imprintdata] + tel = "(+) 49 5141 907 927" + mail = 'info@bunteshaus.de' + street = "Hannoversche Straße 30 f" + pobox = "3166" + city = "29221 Celle" + country = "Niedersachsen / Deutschland" + executive = "Ingileif Bech" + nonprofit = true + +[foundations] + brentrup = "https://heise.de" diff --git a/config/_default/taxonomies.toml b/config/_default/taxonomies.toml new file mode 100644 index 0000000..420008d --- /dev/null +++ b/config/_default/taxonomies.toml @@ -0,0 +1,6 @@ +categories = 'categories' +tags = 'tags' +events = 'events' +about = 'about' +featured = 'featured' +foundations = 'foundations' diff --git a/themes/buha/layouts/partials/layout/article.html b/themes/buha/layouts/partials/layout/article.html index f393557..2ef1232 100644 --- a/themes/buha/layouts/partials/layout/article.html +++ b/themes/buha/layouts/partials/layout/article.html @@ -13,7 +13,7 @@ {{ end }} {{ partial "snippets/article_metadata" $metas }} -
+
{{- if and (.context.Resources.ByType "image") (eq .pic "true") -}} {{ $resize := "500x" }} {{- $img := index (.context.Resources.ByType "image") 0 -}} diff --git a/themes/buha/layouts/partials/snippets/footer.html b/themes/buha/layouts/partials/snippets/footer.html index 75f4fae..2b0d5d4 100644 --- a/themes/buha/layouts/partials/snippets/footer.html +++ b/themes/buha/layouts/partials/snippets/footer.html @@ -42,6 +42,13 @@ {{ $links = i18n "links" }} {{ end }} {{- $links | strings.FirstUpper -}}

+ {{- end -}} + {{- if eq site.Params.media true -}} + {{ $links := "Media" }} + {{ if i18n "media" }} + {{ $links = i18n "media" }} + {{ end }} + {{- $links | strings.FirstUpper -}}

{{- end -}} {{- if not (or (eq .Section "featured") (eq .Section "about")) -}} {{- with .OutputFormats.Get "rss" -}}