diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 00000000..bf442703 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,8 @@ +# Security + +## Reporting security vulnerabilities + +If you've found a security vulnerability in Hugo Invi, please do not create an +issue on the GitHub issue tracker as it will be visible publicly. + +Instead, send an email to and prefix the subject with "hugo-invi security: ". diff --git a/CHANGELOG.md b/CHANGELOG.md index e446c280..78c9e0f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,27 @@ All notable changes to this project (since its fork) are documented in this file The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -## [2.0] - 2022-12-xx +## [2.x] - 2023-xx-xx + +### Added + + +### Changed + + +### Deprecated + + +### Removed + + +### Fixed + + +### Security + + +## [2.0] - 2023-01-20 ### Added @@ -33,9 +53,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * Property names are called "name" instead of "title", if they represent e.g. menu options in the navbar exactly that; and not "link", which is the element -### Deprecated - - ### Removed * Site param `include_footer` from front matter; show footer at all times. @@ -58,7 +75,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added * Support for copyright notice -* "_markup/renderer-link": adds *noopener* and *nofollow* relation to markdown links in `content/`, if external link (i.e. URL begins with "http") +* "_markup/render-link": adds *noopener* and *nofollow* relation to markdown links in `content/`, if external link (i.e. URL begins with "http") * Allow configuring Feature Card height diff --git a/README.md b/README.md index 19af0ef2..902f99be 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,53 @@ # Hugo Invi - The Fresh theme for Hugo -**Hugo Invi** is a theme for the [Hugo](https://gohugo.io) static site generator based on [hugo-fresh](https://github.com/StefMa/hugo-fresh), which is based on `Fresh` by [CSS Ninja](https://cssninja.io/product/fresh). \ No newline at end of file +**Hugo Invi** is a multi-page website theme for the [Hugo](https://gohugo.io) static site generator, based on [hugo-fresh](https://github.com/StefMa/hugo-fresh) but heavily modified. hugo-fresh itself is adapted from [CSS Ninja](https://cssninja.io/product/fresh)'s `Fresh`, a bulma-based landing page. + +## Functionality + +Hugo Invi supports the following features… + +Technical +* Internationalization + * incl. an option in the Navigation Bar to change the site language +* Meta Data for SEO; supports + * OpenGraph + * Twitter + * Schema + * Organization +* Color Palette +* various Shortcodes and Markdown Render Hooks + +Visual +* Navigation Bar +* Sidebar +* Image Gallery +* Embedding YouTube videos + * incl. thumbnail with warning as video replacement: user has to accept YouTube cookies first (decision is saved as a cookie) +* Feature / Product cards + * varying height or aligned height +* Short list of main features (large font size) +* Quote Cards +* Cookie Notification + +## Usage + +### Content Shortcodes + +[Hugo Docs](https://gohugo.io/content-management/shortcodes/) + +Title and Subtitle +```css +// id is optional +{{< title id="delicious" lvl="3" text="Bacon" >}} + +// id is optional +{{< subtitle id="delicious" lvl="3" text="Bacon" >}} +``` + +### Markdown Render Hooks + +[Hugo Docs](https://gohugo.io/templates/render-hooks/) + +supported +* render link + * if the URL has the "http" prefix, it gains `target="_blank" rel="noopener, nofollow"` \ No newline at end of file diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 00793102..416b0af3 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -36,6 +36,11 @@ languages: languageName: English languageCode: en-us # ------------------------------------------ + # Contact Us + # ------------------------------------------ + emailEnterName: "Enter your name" + emailEnterEMailAddress: "Enter your email address" + # ------------------------------------------ # Video - accept 3rd party cookies # ------------------------------------------ video: @@ -175,6 +180,11 @@ languages: languageName: Deutsch languageCode: de-de # ------------------------------------------ + # Contact Us + # ------------------------------------------ + emailEnterName: "Trage deinen Namen ein" + emailEnterEMailAddress: "Trage deine E-Mail-Adresse ein" + # ------------------------------------------ # Video - accept 3rd party cookies # ------------------------------------------ video: diff --git a/layouts/_default/_markup/renderer-link.html b/layouts/_default/_markup/render-link.html similarity index 100% rename from layouts/_default/_markup/renderer-link.html rename to layouts/_default/_markup/render-link.html diff --git a/layouts/partials/contact-us.html b/layouts/partials/contact-us.html index c533acc3..67ed93ff 100644 --- a/layouts/partials/contact-us.html +++ b/layouts/partials/contact-us.html @@ -1,8 +1,14 @@ +{{- $cu := $.Param "contact_us" }} +{{- $title := index $cu "title" }} +{{- $subtitle := index $cu "subtitle" }} +{{- $send := index $cu "send" }}
-

Drop us a line or two

-

We'd love to hear from you

+

{{ $title }}

+ {{- with $subtitle }} +

{{ . }}

+ {{- end }}
@@ -10,19 +16,17 @@

We'd love to hear from you

-
-
- -
-
- -
-
- -
- +
+ +
+
+ +
+
+ +
+
diff --git a/theme.toml b/theme.toml index 99671b28..46e53a55 100644 --- a/theme.toml +++ b/theme.toml @@ -3,7 +3,7 @@ name = "Hugo Invi" version = "2.0" license = "MIT" licenselink = "https://github.com/cubiest/hugo-invi/blob/master/LICENSE.txt" -description = "A Hugo adaptation of the Fresh theme from CSS Ninja" +description = "A simple, clean and lightweight Hugo theme for multilingual websites, inspired by CSS Ninja's Fresh theme" homepage = "https://github.com/cubiest/hugo-invi"