#196 added the flexibility to index.html to be used in subdirectories.
Unfortunately this broke the language menu in multihost settings.
Both functionalities are made to work now by checking the
`hugo.IsMultihost` condition.
This makes the code somewhat harder to read, but at least ensures
that the regression is fixed.
Fixes: #214
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
If true, it will e.g. change the title tag for the Legal page to
<title>Legal | Jane Doe - Nutrition Coach & Chef Consultant</title>
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
WARN deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.Sass instead.
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
* language menu
* allow for subdir in baseURL
* Update netlify.toml and github actions to use Hugo 0.121.1
* Documented i18n approaches in exampleSite
* Attempted & Abandoned images from assets as recommended approach in content pages- it seems Hugo expects to access those only programmatically, not via markdown.
---------
Co-authored-by: Zdenek K <zdenek.kedaj@gmail.com>
The `safeURL` function is required to insert URLs that are different
than `http:`, `https:` and `mailto:` (e.g. `tel:`) through the Hugo
templating system.
Additionally, an example about how to add new contacts is added in the
`config.toml` of `exampleSite`.
Signed-off-by: Filippo Fontana <filippofontana1998@gmail.com>
This commit changes the way contact icons are displayed in the footer:
instead of using <li> tags which inherit a 30px left margin, they are
now just simple <a> tags handled by flex to center them.
The new style rules are added to the `.icons` class in
`assets/css/theme.scss`.
Signed-off-by: Filippo Fontana <filippofontana1998@gmail.com>
This commits change the way contacts params are handled: instead of
declaring them statically, they are declared as an array of tables in
the TOML configuration file, then they are displayed in the two sections
(homepage and footer) of the website through the {{ range }} statement.
This makes handling multiple contacts params easier and avoids the
need of changing manually this two files:
- `layouts/partials/footer.html`;
- `exampleSite/content/homepage/contact.md`;
Signed-off-by: Filippo Fontana <filippofontana1998@gmail.com>
Transplanted cover video feature from fork of @thomasjungblut and adapted to latest hugo scroll code
Co-Authored-By: Thomas Jungblut <thomas.jungblut@gmail.com>
Add invert Param to the config file. Add the 'odd' class to the
post-holders and the 'even' class to the post-afters using Hugo if
statements instead of using JS. Marking invert = true in the config file
flips which sections are marked odd and even.