From a2b6c552333145577580436bb1c37c6ec5ad0958 Mon Sep 17 00:00:00 2001 From: B Kleinen Date: Thu, 23 Sep 2021 21:36:17 +0200 Subject: [PATCH] add content structure for seuh main menu --- README.MD | 8 +++++ archetypes/seuh.md | 57 ++++++++++++++++++++++++++++++ config.toml | 6 +--- content/_index.md | 4 +-- content/contact/_index.md | 2 +- content/seuh/_index.md | 7 ++++ content/seuh/about.md | 57 ++++++++++++++++++++++++++++++ content/seuh/geschichte.md | 57 ++++++++++++++++++++++++++++++ layouts/seuh/list.html | 28 +++++++++++++++ layouts/seuh/single.html | 27 ++++++++++++++ layouts/seuh/summary.html | 13 +++++++ static/icons/info-square.svg | 6 ++++ static/icons/terminal.svg | 5 +++ static/icons/vector-pen.svg | 4 +++ static/images/logo-seuh-mobile.svg | 4 +-- static/images/logo-seuh.svg | 8 ++--- 16 files changed, 279 insertions(+), 14 deletions(-) create mode 100644 archetypes/seuh.md create mode 100644 content/seuh/_index.md create mode 100644 content/seuh/about.md create mode 100644 content/seuh/geschichte.md create mode 100644 layouts/seuh/list.html create mode 100644 layouts/seuh/single.html create mode 100755 layouts/seuh/summary.html create mode 100644 static/icons/info-square.svg create mode 100644 static/icons/terminal.svg create mode 100644 static/icons/vector-pen.svg diff --git a/README.MD b/README.MD index fb7271f..b99a5a6 100644 --- a/README.MD +++ b/README.MD @@ -11,3 +11,11 @@ The SEUH 2022 Website is based on the Based on a fork in [seuh2022/hugo-hero-theme](https://github.com/seuh2022/hugo-hero-theme), after reading this article: [Using git submodule for Hugo themes - Don't Panic](https://www.andrewhoog.com/post/git-submodule-for-hugo-themes/) + + +| SEUH | Programm | Termine | Kontakt | +|:--------------------|:--------------|:---------------|:----------------| +| - About + Sponsoren | - Programm | - CFP | - Maillingliste | +| - Geschichte | - Tagungsband | - Registration | - local Orga | +| | | | | +| | | | | diff --git a/archetypes/seuh.md b/archetypes/seuh.md new file mode 100644 index 0000000..b15fa8d --- /dev/null +++ b/archetypes/seuh.md @@ -0,0 +1,57 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +icon: "seuh/service-icon-1.png" +featured: true +draft: false +weight: 100 +heroHeading: 'SEUH' +heroSubHeading: 'heroSubheading' +heroBackground: 'seuh/service1.jpg' +--- + +Lorem markdownum aequalis strigis. Saetigeri iubeas, vultu huic alvum nondum +de obside ut laniavit arbor palmis, cum quin. Rupes vetat videndo, armigerae +crimen habet Priamum nec. + +## Ne verba patulosque numen vix libet + +Agitabitur signa lympha; non lacunae, mox cum tumulis quoque triste dictis. +Ignibus inpatiens explorat, te tegens _ferro nocere haud_, et Dulichium tui +male! Quo sed [fuit flexit et](#vexant-achivi) hic die solido, gloria? + +1. Cum det dixit Parcarum qui spemque est +2. Exit ex huic +3. Quod consiste agitataque claustraque vicina videt lacertis +4. Loquor videt +5. Ardua non igne caelesti coniugis cognovi diversorum +6. Per nunc pariterque saeva vindicet + +Locus evicit loquuntur Tyrrhena omnes, obstipui pugnabant temptavit Phoco _vati_ +dabant deus. Memorata haberet sepulcrales gentisque dum sic, in flumina templa! +Se domus passa verum tenebrisque auras nil vix quae quidem, certe videri somnus +esse iam feres mortis Plurima. + +## Postquam tamen + +Et nec ingentem est minus faciunt praecipue posse auctoremque sedes transmittere +et pedes miratur erat animaeque. Tellus admonuit humanam funes, sagittis et +licet! Inserui quamvis Clymeni. + +- Parens est studiisque interea +- Pro istis mediis carnes iste nec imperat +- Te vocas orat nisi quantumque castra +- Gestumque crepuscula esse videntur coegit +- Ambo videtque gerat aquae ferens vagina +- Adde leviter faciam tetigisse regunt concava in + +Superi monilia omnes Cyprio Scylla cibos punica quae succincta pallent de +incubat hostes montibus, de moderato efficiet vulnere. Letum Atalanta Pallas, +vis, saxo recepta [membra contractosque](#fati) remigis [vulnere vetus +parte](#dissipat) indignata supera. + +Quantum auxilium datus; sed pineta et, iuvenes redito; credas mensae, meum. Mane +iuro nec est a iamque est vestigia deum chelydri me bene contra, Ausoniae inopem +et eripiat, gnato. Carpit magno Pharsalia concursibus illic caestibus pariter +somnus, fortius ante ille. Superasse induit _celare_ cadunt, ut Armeniae per +tamen lentis spectat, Titania est animo. diff --git a/config.toml b/config.toml index 45137a4..9c5a926 100644 --- a/config.toml +++ b/config.toml @@ -39,7 +39,7 @@ theme = "hugo-hero-theme" [[menu.main]] name = "Kontakt" - url = "/kontakt/" + url = "/contact/" weight = 4 [[menu.main]] name = "Sponsoren" @@ -68,10 +68,6 @@ theme = "hugo-hero-theme" url = "/history/" weight = 3 -[[menu.main]] - name = "Contact" - url = "/contact/" - weight = 4 diff --git a/content/_index.md b/content/_index.md index 0e3b5c8..66b21ff 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,7 +1,7 @@ --- title: 'Home' date: 2018-02-12T15:37:57+07:00 -heroHeading: 'Hero - Hugo Small Business Theme' -heroSubHeading: 'Hero is a multipurpose Hugo theme with fullscreen hero images and fullwidth sections. It contains content types for a business or portfolio site.' +heroHeading: 'SEUH 2022' +heroSubHeading: 'Software-Engineering im Unterricht der Hochschulen Berlin' heroBackground: 'images/jason-blackeye-1191801-unsplash.jpg' --- diff --git a/content/contact/_index.md b/content/contact/_index.md index d8b68c2..9b922c7 100644 --- a/content/contact/_index.md +++ b/content/contact/_index.md @@ -1,5 +1,5 @@ --- -title: 'Contact' +title: 'Kontakt' date: 2018-02-22T17:01:34+07:00 --- diff --git a/content/seuh/_index.md b/content/seuh/_index.md new file mode 100644 index 0000000..4b53009 --- /dev/null +++ b/content/seuh/_index.md @@ -0,0 +1,7 @@ +--- +title: 'SEUH' +date: 2018-02-10T11:52:18+07:00 +heroHeading: 'SEUH 2022' +heroSubHeading: 'Software Engineering im Unterricht der Hochschulen' +heroBackground: 'https://source.unsplash.com/eluzJSfkNCk/1600x400' +--- diff --git a/content/seuh/about.md b/content/seuh/about.md new file mode 100644 index 0000000..09b74d5 --- /dev/null +++ b/content/seuh/about.md @@ -0,0 +1,57 @@ +--- +title: "About" +date: 2021-09-23 +icon: "icons/info-square.svg" +featured: true +draft: true +weight: 1 +heroHeading: 'About' +heroSubHeading: 'heroSubheading' +heroBackground: 'seuh/placeholder.jpg' +--- + +Lorem markdownum aequalis strigis. Saetigeri iubeas, vultu huic alvum nondum +de obside ut laniavit arbor palmis, cum quin. Rupes vetat videndo, armigerae +crimen habet Priamum nec. + +## Ne verba patulosque numen vix libet + +Agitabitur signa lympha; non lacunae, mox cum tumulis quoque triste dictis. +Ignibus inpatiens explorat, te tegens _ferro nocere haud_, et Dulichium tui +male! Quo sed [fuit flexit et](#vexant-achivi) hic die solido, gloria? + +1. Cum det dixit Parcarum qui spemque est +2. Exit ex huic +3. Quod consiste agitataque claustraque vicina videt lacertis +4. Loquor videt +5. Ardua non igne caelesti coniugis cognovi diversorum +6. Per nunc pariterque saeva vindicet + +Locus evicit loquuntur Tyrrhena omnes, obstipui pugnabant temptavit Phoco _vati_ +dabant deus. Memorata haberet sepulcrales gentisque dum sic, in flumina templa! +Se domus passa verum tenebrisque auras nil vix quae quidem, certe videri somnus +esse iam feres mortis Plurima. + +## Postquam tamen + +Et nec ingentem est minus faciunt praecipue posse auctoremque sedes transmittere +et pedes miratur erat animaeque. Tellus admonuit humanam funes, sagittis et +licet! Inserui quamvis Clymeni. + +- Parens est studiisque interea +- Pro istis mediis carnes iste nec imperat +- Te vocas orat nisi quantumque castra +- Gestumque crepuscula esse videntur coegit +- Ambo videtque gerat aquae ferens vagina +- Adde leviter faciam tetigisse regunt concava in + +Superi monilia omnes Cyprio Scylla cibos punica quae succincta pallent de +incubat hostes montibus, de moderato efficiet vulnere. Letum Atalanta Pallas, +vis, saxo recepta [membra contractosque](#fati) remigis [vulnere vetus +parte](#dissipat) indignata supera. + +Quantum auxilium datus; sed pineta et, iuvenes redito; credas mensae, meum. Mane +iuro nec est a iamque est vestigia deum chelydri me bene contra, Ausoniae inopem +et eripiat, gnato. Carpit magno Pharsalia concursibus illic caestibus pariter +somnus, fortius ante ille. Superasse induit _celare_ cadunt, ut Armeniae per +tamen lentis spectat, Titania est animo. diff --git a/content/seuh/geschichte.md b/content/seuh/geschichte.md new file mode 100644 index 0000000..3fe5acd --- /dev/null +++ b/content/seuh/geschichte.md @@ -0,0 +1,57 @@ +--- +title: "Geschichte" +date: 2021-09-23T19:52:13+02:00 +icon: "icons/vector-pen.svg" +featured: true +draft: false +weight: 2 +heroHeading: 'Geschichte' +heroSubHeading: 'zur Geschichte der SEUH' +heroBackground: 'seuh/service1.jpg' +--- + +Lorem markdownum aequalis strigis. Saetigeri iubeas, vultu huic alvum nondum +de obside ut laniavit arbor palmis, cum quin. Rupes vetat videndo, armigerae +crimen habet Priamum nec. + +## Ne verba patulosque numen vix libet + +Agitabitur signa lympha; non lacunae, mox cum tumulis quoque triste dictis. +Ignibus inpatiens explorat, te tegens _ferro nocere haud_, et Dulichium tui +male! Quo sed [fuit flexit et](#vexant-achivi) hic die solido, gloria? + +1. Cum det dixit Parcarum qui spemque est +2. Exit ex huic +3. Quod consiste agitataque claustraque vicina videt lacertis +4. Loquor videt +5. Ardua non igne caelesti coniugis cognovi diversorum +6. Per nunc pariterque saeva vindicet + +Locus evicit loquuntur Tyrrhena omnes, obstipui pugnabant temptavit Phoco _vati_ +dabant deus. Memorata haberet sepulcrales gentisque dum sic, in flumina templa! +Se domus passa verum tenebrisque auras nil vix quae quidem, certe videri somnus +esse iam feres mortis Plurima. + +## Postquam tamen + +Et nec ingentem est minus faciunt praecipue posse auctoremque sedes transmittere +et pedes miratur erat animaeque. Tellus admonuit humanam funes, sagittis et +licet! Inserui quamvis Clymeni. + +- Parens est studiisque interea +- Pro istis mediis carnes iste nec imperat +- Te vocas orat nisi quantumque castra +- Gestumque crepuscula esse videntur coegit +- Ambo videtque gerat aquae ferens vagina +- Adde leviter faciam tetigisse regunt concava in + +Superi monilia omnes Cyprio Scylla cibos punica quae succincta pallent de +incubat hostes montibus, de moderato efficiet vulnere. Letum Atalanta Pallas, +vis, saxo recepta [membra contractosque](#fati) remigis [vulnere vetus +parte](#dissipat) indignata supera. + +Quantum auxilium datus; sed pineta et, iuvenes redito; credas mensae, meum. Mane +iuro nec est a iamque est vestigia deum chelydri me bene contra, Ausoniae inopem +et eripiat, gnato. Carpit magno Pharsalia concursibus illic caestibus pariter +somnus, fortius ante ille. Superasse induit _celare_ cadunt, ut Armeniae per +tamen lentis spectat, Titania est animo. diff --git a/layouts/seuh/list.html b/layouts/seuh/list.html new file mode 100644 index 0000000..988f159 --- /dev/null +++ b/layouts/seuh/list.html @@ -0,0 +1,28 @@ +{{ define "header_css" }}{{ end }} +{{ define "body_classes" }}page-services-list{{ end }} +{{ define "header_classes" }}{{ end }} + +{{ define "main" }} + +{{ partial "hero-image-setheight.html" (dict "background" .Params.heroBackground "heading" .Params.heroHeading "subheading" .Params.heroSubHeading "content" .)}} +{{ if .Content }} +
+
+
+
+ {{ .Content }} +
+
+
+
+{{ end }} + + +
+
+ {{ range .Pages.ByWeight }} +
{{ .Render "summary" }}
+ {{ end }} +
+
+{{ end }} \ No newline at end of file diff --git a/layouts/seuh/single.html b/layouts/seuh/single.html new file mode 100644 index 0000000..c02a133 --- /dev/null +++ b/layouts/seuh/single.html @@ -0,0 +1,27 @@ +{{ define "header_css" }}{{ end }} +{{ define "body_classes" }}page-services-single{{ end }} +{{ define "header_classes" }}{{ end }} + +{{ define "main" }} +{{ partial "hero-image-setheight.html" (dict "background" .Params.heroBackground "heading" .Params.heroHeading "subheading" .Params.heroSubHeading "section" .Section "content" .)}} +
+
+
+
+
{{.Content}}
+
+
+
+
+{{ end }} + +{{ define "footer_js" }} +{{ $library := resources.Get "js/libs/library.js" }} +{{ $services := resources.Get "js/pages/services.js" }} +{{ $servicesJS := slice $library $services |resources.Concat "js/services.js" }} +{{ if .Site.IsServer }} + + {{ else }} + + {{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/seuh/summary.html b/layouts/seuh/summary.html new file mode 100755 index 0000000..ba51674 --- /dev/null +++ b/layouts/seuh/summary.html @@ -0,0 +1,13 @@ +
+ {{ if .Params.icon }} +
+ +
+ {{ end }} +
+

+ {{ .Title }} +

+ {{ .Content | truncate 120 "..." }} +
+
\ No newline at end of file diff --git a/static/icons/info-square.svg b/static/icons/info-square.svg new file mode 100644 index 0000000..0bcb648 --- /dev/null +++ b/static/icons/info-square.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/icons/terminal.svg b/static/icons/terminal.svg new file mode 100644 index 0000000..12fb283 --- /dev/null +++ b/static/icons/terminal.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/icons/vector-pen.svg b/static/icons/vector-pen.svg new file mode 100644 index 0000000..0a6163c --- /dev/null +++ b/static/icons/vector-pen.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/images/logo-seuh-mobile.svg b/static/images/logo-seuh-mobile.svg index 8adb6b0..c701077 100644 --- a/static/images/logo-seuh-mobile.svg +++ b/static/images/logo-seuh-mobile.svg @@ -1,10 +1,10 @@ + stroke="#1c3ed3" fill="none" stroke-width="1"/> S E U diff --git a/static/images/logo-seuh.svg b/static/images/logo-seuh.svg index ba67ad2..8931584 100644 --- a/static/images/logo-seuh.svg +++ b/static/images/logo-seuh.svg @@ -1,11 +1,11 @@ - + logo-seuh - SEUH 2022 + SEUH 2022 - \ No newline at end of file +