Commit graph

16 commits

Author SHA1 Message Date
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
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
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
Damon Lynch
9a99a8fb3a
chore: update »design«-URL from github.com to themes.gohugo.io (#11) 2020-10-13 10:58:42 +02:00
Jan Raasch
848f6129ec style: add & run prettier 2020-09-09 18:00:59 +02:00
Jan Raasch
a7fcc36fed chore: point design-template-link to github for now 2020-07-08 20:33:36 +02:00
Jan Raasch
7defcb60fd feat: markdownify copyright-line 2020-07-08 19:26:00 +02:00
Jan Raasch
b05ff4eb22 chore: initial commit 2020-07-07 17:50:41 +02:00