From ece34571b589893fa33ef6ebcc2eefdd3c33a9d7 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sat, 19 Feb 2022 16:52:07 +0100 Subject: [PATCH] work in progress: example site; set up theme.toml --- config.yaml | 7 ++ exampleSite/config.yaml | 65 +++++++++++++++++++ exampleSite/content/pages/about.md | 12 +--- exampleSite/content/pages/contact.md | 13 ++-- exampleSite/content/pages/legal.md | 16 +++++ exampleSite/content/pages/privacy.md | 35 ++++++++++ exampleSite/content/posts/documentation.md | 12 ---- exampleSite/content/posts/elements.markdown | 2 +- exampleSite/content/posts/install.md | 16 +++++ .../content/posts/installation.markdown | 11 ---- exampleSite/content/posts/usage.markdown | 2 +- .../content/posts/welcome-to-hugo.markdown | 2 +- i18n/de.yaml | 6 +- theme.toml | 20 ++++++ theme.yaml | 20 ------ 15 files changed, 175 insertions(+), 64 deletions(-) create mode 100644 exampleSite/config.yaml create mode 100644 exampleSite/content/pages/legal.md create mode 100644 exampleSite/content/pages/privacy.md delete mode 100644 exampleSite/content/posts/documentation.md create mode 100644 exampleSite/content/posts/install.md delete mode 100644 exampleSite/content/posts/installation.markdown create mode 100644 theme.toml delete mode 100644 theme.yaml diff --git a/config.yaml b/config.yaml index de41bad..90948a0 100644 --- a/config.yaml +++ b/config.yaml @@ -1,3 +1,10 @@ +# config.yaml + +module: + hugoVersion: + extended: true + min: 0.91.2 + frontmatter: date: - date diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml new file mode 100644 index 0000000..a0c23c7 --- /dev/null +++ b/exampleSite/config.yaml @@ -0,0 +1,65 @@ +baseurl: / +DefaultContentLanguage: en +title: cybercards theme +theme: cybercards +themesDir: themes +paginate: 6 + +markup: + goldmark: + renderer: + unsafe: true + +params: + #defaultImage: 9609-motor2.jpg + logo: logo-matrix.png + favicon: icon-star.png + + github: https://github.com/cyberconcepts + sourcehut: https://git.sr.ht/~cco + email: team@cyberconcepts.org + + copyright: + name: cyberconcepts.org team + link: https://www.cyberconcepts.org + + legal: + name: Legal Statement + path: pages/legal + + privacy: + name: Privacy Statement + path: pages/privacy + +frontmatter: + _merge: shallow + +related: + _merge: shallow + +taxonomies: + domain: domains + topic: topics + +related: + includeNewer: true + indices: + - name: parents + weight: 100 + - name: topics + weight: 100 + threshold: 80 + toLower: true + +menu: + main: + - identifier: home + name: Home + title: Home + url: / + weight: 10 + - identifier: topics + name: Topics + title: Topics + url: /topics/ + weight: 20 diff --git a/exampleSite/content/pages/about.md b/exampleSite/content/pages/about.md index 08a54da..21533c6 100644 --- a/exampleSite/content/pages/about.md +++ b/exampleSite/content/pages/about.md @@ -1,19 +1,9 @@ --- -layout: page title: About -permalink: /about/ --- - -Hugo cards is a Bootstrap based theme ported from the Jekyll theme [Webjeda-cards](https://webjeda.com/cards/). Any Bootstrap element can be used in the theme. +*cybercards* is a theme based on [Hugo cards](https://themes.gohugo.io/themes/hugo-cards/) which in turn is a port of the Jekyll theme [Webjeda-cards](https://webjeda.com/cards/). Any Bootstrap element can be used in the theme. For more themes, visit [Hugo Themes](https://themes.gohugo.io/) - -**Does the theme deserve a star?** - - -Star - - \ No newline at end of file diff --git a/exampleSite/content/pages/contact.md b/exampleSite/content/pages/contact.md index 5fee537..18a1591 100644 --- a/exampleSite/content/pages/contact.md +++ b/exampleSite/content/pages/contact.md @@ -1,10 +1,15 @@ --- -layout: page title: Contact -permalink: /contact/ --- -Visit [my site](https://bool.netlify.com) +**Helmut Merz, cyberconcepts IT-Consulting** -Insert your contact details or a contact form here. +Am Steinigen Graben 8 +D-86911 Diessen +Braunschweiger Strasse 41 +D-12055 Berlin + +Phone +49-163-6865618 +Email h.merz@cyberconcepts.de +Web [www.cyberconcepts.de](http://www.cyberconcepts.de) diff --git a/exampleSite/content/pages/legal.md b/exampleSite/content/pages/legal.md new file mode 100644 index 0000000..27c89f1 --- /dev/null +++ b/exampleSite/content/pages/legal.md @@ -0,0 +1,16 @@ +--- +title: "Legal Statement" +author: helmutm +--- + +**Helmut Merz, cyberconcepts IT-Consulting** + +Am Steinigen Graben 8 +D-86911 Diessen + +Braunschweiger Strasse 41 +D-12055 Berlin + +Phone +49-163-6865618 +Email h.merz@cyberconcepts.de +Web [www.cyberconcepts.de](http://www.cyberconcepts.de) diff --git a/exampleSite/content/pages/privacy.md b/exampleSite/content/pages/privacy.md new file mode 100644 index 0000000..9fbc4ab --- /dev/null +++ b/exampleSite/content/pages/privacy.md @@ -0,0 +1,35 @@ +--- +title: "Privacy Statement" +author: helmutm +--- + +### 1. Name and Address of Responsible Person + +Der Verantwortliche im Sinne der Datenschutz-Grundverordnung und anderer nationaler Datenschutzgesetze der Mitgliedsstaaten sowie sonstiger datenschutzrechtlicher Bestimmungen ist: + +cyberconcepts IT-Consulting +Dr. Helmut Merz +Am Steinigen Graben 8 +D-86911 Dießen +Phone +49-163-6865618 +Email h.merz@cyberconcepts.de + +### 2. Collection and Processing of Personal Data + +Bei dem Besuch dieser Website werden auf unserem Server in sogenannten Logdateien Informationen gespeichert, die uns Ihr Browser übermittelt (Uhrzeit der Serveranfrage, IP-Adresse, Browsertyp/-version, verwendetes Betriebssystem, Referrer URL). Diese Daten werden automatisch nach vier Kalenderwochen gelöscht. Die Speicherung dieser Informationen in Server-Log-Daten ist für die Sicherheit und den Schutz dieser Website erforderlich. Eine Zuordnung der Daten zu bestimmten Personen ist nicht möglich, personenbezogene Daten werden nicht erhoben, es findet keinerlei Auswertung der Informationen in den Logdateien statt, die über das Erkennen und die Abwehr von Angriffen auf die Website hinausgeht. + +### 3. Information on Personal Data, Correction and Removal of Data + +This website does not store any user-related personal data. + +### 4. Cookies + +This website does not use any cookies. + +### 5. No Responsibility for Links to Other Websites + +Diese Website kann Links zu Websiten anderer Anbieter enthalten, auf die sich diese Datenschutzerklärung nicht erstreckt. Diese Anbieter sind für die Einhaltung der datenschutzrechtlichen Regelungen selbst verantwortlich und haben in der Regel eigene Datenschutzerklärungen. Für diese Internetseitenund Dienste sowie Erklärungen übernehmen wir keine Haftung. + +### 6. Web Analytic Services + +This website does not use any analytic services; it does not record or track any user activity. diff --git a/exampleSite/content/posts/documentation.md b/exampleSite/content/posts/documentation.md deleted file mode 100644 index fac87f7..0000000 --- a/exampleSite/content/posts/documentation.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -layout: post -title: Documentation -img: image-5.png -tags: ["tag_a", "tag_b"] -date: 2016-03-09 ---- - - -Nulla vel ante sit amet leo imperdiet porta. Mauris pellentesque finibus ligula non dignissim. Sed sed vehicula velit. Ut eleifend velit maximus massa lobortis mattis. In dui quam, rutrum eu purus et, mattis consequat ex. Vivamus risus mauris, ultricies vel dolor eget, aliquet tristique est. Suspendisse odio urna, vehicula vel diam at, pulvinar porttitor metus. Sed ac ipsum et magna aliquam mattis in eleifend mi. Pellentesque porttitor diam nec hendrerit efficitur. In hac habitasse platea dictumst. Nam arcu enim, imperdiet quis molestie molestie, molestie non diam. Quisque pretium felis in lorem placerat rhoncus eu et lorem. Praesent tincidunt purus sed mi lacinia maximus. Curabitur rutrum tempus posuere. Donec quis fringilla enim. Nullam nisl nisl, vestibulum sed enim vel, tempor pulvinar ligula. - -Mauris tincidunt ligula et erat ullamcorper varius. Nunc sit amet lacus ullamcorper, suscipit sem in, interdum dui. Nam ultricies, dui eget aliquet mollis, erat ipsum luctus eros, sed pulvinar nulla velit ut nibh. Mauris sed molestie turpis. Curabitur vehicula eros lectus, ac venenatis justo fringilla eget. Phasellus fringilla molestie diam vel aliquet. Nunc orci lorem, laoreet eget blandit nec, vestibulum eu urna. Ut gravida egestas massa, in auctor nisl iaculis id. In hac habitasse platea dictumst. Fusce nec massa ullamcorper, posuere nisl et, feugiat risus. Morbi metus risus, facilisis aliquam risus porta, volutpat viverra leo. Praesent vestibulum, orci in consectetur aliquet, lacus metus suscipit risus, a dignissim eros nibh sed purus. Nullam in magna non nulla ultricies aliquam. Nullam malesuada rhoncus est, in vehicula lacus mattis vel. Nam et velit dignissim, consectetur est ac, imperdiet nulla. Nunc feugiat facilisis ipsum, quis porttitor quam mattis in. \ No newline at end of file diff --git a/exampleSite/content/posts/elements.markdown b/exampleSite/content/posts/elements.markdown index dafacbe..2f8b23d 100644 --- a/exampleSite/content/posts/elements.markdown +++ b/exampleSite/content/posts/elements.markdown @@ -1,7 +1,7 @@ --- layout: post title: "Elements" -img: image-4.png +img: tags: ["tag_a", "tag_c"] date: "2016-04-10" --- diff --git a/exampleSite/content/posts/install.md b/exampleSite/content/posts/install.md new file mode 100644 index 0000000..43ed0bd --- /dev/null +++ b/exampleSite/content/posts/install.md @@ -0,0 +1,16 @@ +--- +title: Installation +summary: Installation and set-up of the *cybercards* theme +img: image-1.png +pageid: documentation +topics: [Documentation, Installation] +date: 2022-02-19 +--- + +## Installation + +### Prerequisite for CSS generation + +All CSS will be generated during site generation from `.scss` source files that use the [Bootstrap toolkit](https://getbootstrap.com/). This only works if the `.scss` source files can be found in the right place in your `themes` folder. The current version of the *cybercards* uses Bootstrap version 5.1.3. + +Please download the Bootstrap toolkit source files from the [Bootstrap download page](https://getbootstrap.com/docs/5.1/getting-started/download/) (or use this link: [Bootstrap source v5.1.3](https://github.com/twbs/bootstrap/archive/v5.1.3.zip])), unpack it and copy or move the `scss` folder to a folder `themes/common/bootstrap` (a subfolder of the `themes` folder that contains the `cybercards` theme folder). \ No newline at end of file diff --git a/exampleSite/content/posts/installation.markdown b/exampleSite/content/posts/installation.markdown deleted file mode 100644 index c12ee67..0000000 --- a/exampleSite/content/posts/installation.markdown +++ /dev/null @@ -1,11 +0,0 @@ ---- -layout: post -title: "Installation" -img: image-3.png -categories: [one] -tags: ["tag_c"] -date: 2016-05-09 ---- -Nulla vel ante sit amet leo imperdiet porta. Mauris pellentesque finibus ligula non dignissim. Sed sed vehicula velit. Ut eleifend velit maximus massa lobortis mattis. In dui quam, rutrum eu purus et, mattis consequat ex. Vivamus risus mauris, ultricies vel dolor eget, aliquet tristique est. Suspendisse odio urna, vehicula vel diam at, pulvinar porttitor metus. Sed ac ipsum et magna aliquam mattis in eleifend mi. Pellentesque porttitor diam nec hendrerit efficitur. In hac habitasse platea dictumst. Nam arcu enim, imperdiet quis molestie molestie, molestie non diam. Quisque pretium felis in lorem placerat rhoncus eu et lorem. Praesent tincidunt purus sed mi lacinia maximus. Curabitur rutrum tempus posuere. Donec quis fringilla enim. Nullam nisl nisl, vestibulum sed enim vel, tempor pulvinar ligula. - -Mauris tincidunt ligula et erat ullamcorper varius. Nunc sit amet lacus ullamcorper, suscipit sem in, interdum dui. Nam ultricies, dui eget aliquet mollis, erat ipsum luctus eros, sed pulvinar nulla velit ut nibh. Mauris sed molestie turpis. Curabitur vehicula eros lectus, ac venenatis justo fringilla eget. Phasellus fringilla molestie diam vel aliquet. Nunc orci lorem, laoreet eget blandit nec, vestibulum eu urna. Ut gravida egestas massa, in auctor nisl iaculis id. In hac habitasse platea dictumst. Fusce nec massa ullamcorper, posuere nisl et, feugiat risus. Morbi metus risus, facilisis aliquam risus porta, volutpat viverra leo. Praesent vestibulum, orci in consectetur aliquet, lacus metus suscipit risus, a dignissim eros nibh sed purus. Nullam in magna non nulla ultricies aliquam. Nullam malesuada rhoncus est, in vehicula lacus mattis vel. Nam et velit dignissim, consectetur est ac, imperdiet nulla. Nunc feugiat facilisis ipsum, quis porttitor quam mattis in. \ No newline at end of file diff --git a/exampleSite/content/posts/usage.markdown b/exampleSite/content/posts/usage.markdown index 83ef94a..48620d5 100644 --- a/exampleSite/content/posts/usage.markdown +++ b/exampleSite/content/posts/usage.markdown @@ -1,6 +1,6 @@ --- title: "Usage Guide" -img: image-2.png +img: categories: [two] date: "2016-06-12" --- diff --git a/exampleSite/content/posts/welcome-to-hugo.markdown b/exampleSite/content/posts/welcome-to-hugo.markdown index f61f9c1..d422853 100644 --- a/exampleSite/content/posts/welcome-to-hugo.markdown +++ b/exampleSite/content/posts/welcome-to-hugo.markdown @@ -1,7 +1,7 @@ --- title: "Welcome to Hugo!" date: 2016-06-13 10:51:47 +0530 -img: "image-1.png" +img: categories: [one, two] author: "Hugo Aguirre" --- diff --git a/i18n/de.yaml b/i18n/de.yaml index 1c4c6bc..754cb96 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1,5 +1,5 @@ # -# de.yaml 2022-01-09 +# de.yaml 2022-02-19 # about: @@ -21,8 +21,8 @@ author: other: Autor backlinks: - other: Backlinks - #other: Links auf diese Seite + #other: Backlinks + other: Links zu dieser Seite child-articles: other: Untergeordnete Artikel diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..1618a1a --- /dev/null +++ b/theme.toml @@ -0,0 +1,20 @@ +# theme.toml + +name = "cybercards" +license = "MIT" +licenselink = "https://github.com/cyberconcepts/cybercards/blob/master/LICENSE.md" +description = "A bootstrap based minimal hugo theme based on Hugo cards and webjeda-cards" +homepage = "https://www.cyberconcepts.org" +tags = ["bootstrap", "cards", "responsive", "jekyll", "blog"] +features = [] +min_version = "0.91.0" + +[author] + name = "cyberconcepts.org team" + homepage = "https://www.cyberconcepts.org" + +# If porting an existing theme +[original] + name = "Hugo cards" + homepage = "https://themes.gohugo.io/themes/hugo-cards/" + repo = "" diff --git a/theme.yaml b/theme.yaml deleted file mode 100644 index 794d54f..0000000 --- a/theme.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# theme.yaml - -name: cybercards -license: "MIT" -licenselink: "https://github.com/bul-ikana/hugo-cards/blob/master/LICENSE.md" -description: "A bootstrap based minimal hugo theme based on webjeda-cards" -homepage: "https://www.cyberconcepts.org" -tags: ["bootstrap", "cards", "responsive", "jekyll", "blog"] -features: [] -min_version: "0.57.0" - -author: - name: "cyberconcepts.org team" - homepage: "https://www.cyberconcepts.org" - -# If porting an existing theme -original: - name: "Webjeda-cards" - homepage: "https://webjeda.com/cards/" - repo: "https://github.com/sharu725/cards"