Commit graph

94 commits

Author SHA1 Message Date
Thijs Kroesbergen
86569bb78d Use relLangURL for detailed page path in navigation 2025-06-05 00:07:43 +02:00
Daniel Holbach
811e1f2b54 Fix language menu in multihost setting
#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>
2025-03-27 22:21:07 +01:00
Harm te Molder
d326aa747e Use Font Awesome instead of Fork Awesome 2024-11-05 10:28:30 +01:00
Daniel Holbach
b88d13e7f0 Add combine_page_and_site_title option
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>
2024-10-06 20:51:29 +02:00
Daniel Holbach
ae3f16bd93 Use css.Sass instead of resources.ToCSS
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>
2024-09-16 01:11:15 +02:00
Kostas Chatzikokolakis
8bc71355a6 Allow per-page customization of description/keywords 2024-07-09 01:36:32 +02:00
Kostas Chatzikokolakis
b411ea2f0a Improve automatic scaling of cover image 2024-07-09 01:35:26 +02:00
Kostas Chatzikokolakis
d92da3689a Allow rendering subdirectories as scrolling pages 2024-07-05 21:29:47 +02:00
Jasper Schellingerhout
94a56ac555 Wrap fork-awesome in <i> instead of <icon> 2024-07-04 22:20:34 +02:00
Jeffrey N
807c028d71 Add head tag to pages 2024-06-27 07:56:25 +02:00
Mark Niemeyer
e00ab80692 change id of back button on single pages
prev. the css of blog-logo was applied
2024-06-12 00:11:58 +02:00
Joe Mooring
a43bb4ea6d Improve language switcher to work reliably in single- and multi-host settings
Thanks a lot @jmooring
	https://discourse.gohugo.io/t/multihost-trouble/50103/10

Authored-by: Joe Mooring <joe.mooring@veriphor.com>
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
2024-06-03 21:06:54 +02:00
Daniel Holbach
33337a69ea use urls.AbsLangURL if hugo.IsMultihost
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
2024-06-02 00:02:16 +02:00
Joe Mooring
b5c6238a1b layouts: Use Permalink instead of RelPermalink
Addresses upstream multihost bug:
https://github.com/gohugoio/hugo/issues/12560

Closes #185
2024-06-01 20:21:03 +02:00
Filippo Fontana
e13ca197b8
Add support emojis (#184)
* layout, index: render markdown emoji in section titles
* exampleSite, config: enable emoji rendering in markdown files
2024-06-01 20:18:05 +02:00
Ilja
4191af692f
Multi-language, i18n (#177)
* 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>
2024-05-19 22:41:12 +02:00
Zdenek K
628147b53f #162 Scroll to top - attempted fix 2024-04-01 22:09:28 +02:00
Ilja Radusch
d336a31c1e allow for subdir in baseURL 2024-03-17 23:12:50 +01:00
Filippo Fontana
3048ba2968 Fix #173: handle tel: link correctly also in contact section
Signed-off-by: Filippo Fontana <filippofontana1998@gmail.com>
2024-03-17 12:50:30 +01:00
Filippo Fontana
1dbb750bc0 Fix #173: tel: link is now handled correctly by Hugo
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>
2024-03-17 12:31:44 +01:00
Filippo Fontana
eeba87cc3d Center contact icons in the footer
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>
2024-03-11 17:18:01 +01:00
Filippo Fontana
69acce5ec7 Handle website contacts dynamically
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>
2024-03-10 22:29:58 +01:00
Daniel Holbach
1a2693cc15 add an option to add links at the bottom of the page as well
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
2024-02-19 19:20:46 +01:00
Daniel Holbach
f1d65eeccb
Define contact information in params, add to footer of the page (#166)
contact icons in footer, opt-in via parameter
2023-12-23 19:08:45 +01:00
Daniel Holbach
37d24211ce
ensure there's a title for each piece of content (#165)
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
2023-12-23 00:03:28 +01:00
Daniel Holbach
97cec6269d
logo: add alternate text (#164)
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
2023-12-23 00:01:23 +01:00
spi
5b4c79e689
Link to dedicated page from site head (#158)
- dedicated pages can be linked from landing area
- briefer version of that page can be included on the singe-page content
2023-10-14 15:23:18 +02:00
spi
c547893371
Return to top menu item (#156)
Opt-in "Return To Top" navigation menu entry, implements #154
2023-10-04 21:15:55 +02:00
Ferdinand Thiessen
2d2190f8f0 Only use jQuery animate if native smooth scrolling is not supported
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-04-10 00:13:27 +02:00
schnusch
ca1b4954fc Remove unnecessary javascript code and replace with hugo template code 2023-04-08 19:59:14 +02:00
Zdenek K
6f7f95f181 Cover video - initial transplant
Transplanted cover video feature from fork of @thomasjungblut and adapted to latest hugo scroll code

Co-Authored-By: Thomas Jungblut <thomas.jungblut@gmail.com>
2023-04-05 21:34:45 +02:00
Zdenek Kedaj
f4ac2a0612 CSS refactor - Extracted generic.css from screen.css
Co-Authored-By: Ferdinand Thiessen <1855448+susnux@users.noreply.github.com>
2023-04-02 00:46:06 +02:00
zjedi
dd852157f1
Merge pull request #129 from ottlinger/patch-5
Add ability to reference icons in external links
2023-03-30 12:36:54 +02:00
P. Ottlinger
425293f1b7
Add icons to external links 2023-03-29 21:48:13 +02:00
P. Ottlinger
192b6d361e
#126: Update footer.html to contain version information
Format and extract version information from GitInfo - 
uncommitted pages generate a bogus date.
2023-03-29 21:21:11 +02:00
P. Ottlinger
6d4b5c8df4
#126: Remove empty section from generated markup 2023-03-29 21:19:43 +02:00
P. Ottlinger
ab6c1b393b
Update footer.html
Add rel=noopener to try to fix security warning.
2023-03-26 23:18:07 +02:00
P. Ottlinger
41e9f9588c
Update footer.html to always open link to hugo-scroll in new window
Modify footer to always open link to this repo in a new tab.
2023-03-26 22:13:49 +02:00
zjedi
7954c690a4 - fix: remove visual arrow from foooter.
- Single-page navigation URL uses navigation_menu_title if available
2023-03-23 18:01:14 +01:00
zjedi
6bc232a50d Merge remote-tracking branch 'origin/master' into pr/45
# Conflicts:
#	layouts/index.html
2023-03-22 00:27:16 +01:00
Ian Cook
147b87c3de
Swap "odd" and "even" for "dark" and "light" classes 2023-03-21 10:13:01 -05:00
Ian Cook
104cb84570
Change "invert" Param to "invertSectionColors" 2023-03-21 10:12:20 -05:00
Ian Cook
390ad61694
Enable inverting homepage section styling
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.
2023-03-20 19:45:44 -05:00
zjedi
5ba5542aee Merge remote-tracking branch 'origin/master' into pr/45
# Conflicts:
#	layouts/index.html
2023-03-21 01:04:40 +01:00
zjedi
b8fdafcc14 Merge branch 'master' into pr/45 2023-03-21 00:52:42 +01:00
zjedi
4902a83bfd safeHTML used for header, footer and content titles 2023-03-21 00:30:33 +01:00
zjedi
cbed08621d Tranferring repository ownership 2023-03-18 20:56:52 +01:00
zjedi
7f5462eefb Header logo - documented, added to example site, CSS fixed 2023-03-14 22:22:58 +01:00
zjedi
0e17f0b7b7 Merge remote-tracking branch 'origin/master' into pr/73
# Conflicts:
#	layouts/index.html
2023-03-14 18:20:04 +01:00
zjedi
6d688fb013 title color tuned and new feature title_guard: When set true, it creates a visual guard (partially transparent rounded box), preventing non-ideal background images from interfering with title/description headings 2023-03-12 01:46:59 +01:00