Commit graph hackertours-theme/layouts
Author SHA1 Message Date
Fredrik Jonsson
141f2f7b6d Add support for Plausible analytics. 2021-01-31 10:31:07 +01:00
Fredrik Jonsson
79b366cb18 Cookie concent feature. 2021-01-29 14:53:38 +01:00
Fredrik Jonsson
437d160847 Remove outdated mask-icon for Safari. 2021-01-04 09:16:17 +01:00
Fredrik Jonsson
07cdce1c9d Add optional related see also sections to posts. 2021-01-04 09:13:03 +01:00
Frieder Schrempf
2c65850e1a
fixup! Don't show date information of post when no date is set 2020-12-29 10:13:05 +01:00
Frieder Schrempf
4633d08017
Don't show date information of post when no date is set 2020-12-28 11:17:43 +01:00
Frieder Schrempf
f7fbd1e7f2
Move author and date information for post to common partials
To remove code duplication, let's move this to a partial and
reuse it.
2020-12-28 11:14:39 +01:00
Fredrik Jonsson
02efe4fdde Added newtab option to file shortcode. 2020-11-25 08:57:02 +01:00
Fredrik Jonsson
e9f8977861 Fix bug in audio shortcode, misplaces figcaption. 2020-11-24 09:40:30 +01:00
Fredrik Jonsson
46595e5ae9 Added new file shortcode and added better checks in figure and img shortcodes. 2020-11-23 11:08:12 +01:00
Fredrik Jonsson
0848b49f3f Improved figure and img shortcodes that handle images in both /static and /assets. New size attribute activates image resizing. 2020-11-16 13:08:44 +01:00
Fredrik Jonsson
ed88ef7ddb Only add the render heading hook file as an example, not all site want to use it. 2020-11-14 13:07:37 +01:00
Fredrik Jonsson
d3eb48fee5 Use .LanguageCode in place of .Lang when avalible for all lang and hreflang attributes. 2020-11-13 13:41:07 +01:00
Fredrik Jonsson
4858a12ca9 Adjust how lang attribute is set on html tag. 2020-11-13 12:29:27 +01:00
Fredrik Jonsson
7757584612 Add language to JSONFeed and remove spaces before colons. 2020-11-13 10:58:20 +01:00
Fredrik Jonsson
7dab9c765b Add misssing styles for anchor-link in render-header. 2020-11-13 09:17:51 +01:00
Fredrik Jonsson
383d923008 Update JSON feed to version 1.1. 2020-11-12 22:12:30 +01:00
Fredrik Jonsson
ac0d899333 Use .Plain instead of .Summary in meta description. THe text are truncate to 170 in any case and should be compleatly plain text. 2020-11-11 09:30:38 +01:00
Fredrik Jonsson
a5c805ca39 Replace language icon with SVG version. 2020-11-10 11:31:14 +01:00
Fredrik Jonsson
1b967073df Add template render-heading to add anchor links to headers. 2020-11-09 13:36:31 +01:00
Fredrik Jonsson
6b58f9f39d Make use of HasShortcode to automtically include js files when neded. 2020-09-24 11:30:17 +02:00
Fredrik Jonsson
88054afa22 Add a early js script. 2020-08-24 02:08:30 +02:00
Fredrik Jonsson
695d22015f Reneme matomo partial to tracking since we have added Google analytic support. 2020-08-10 11:32:25 +02:00
Adinda Praditya
60e8fcc73e Add support for Google Analytics with Content security policy headers 2020-08-09 11:46:43 +07:00
Fredrik Jonsson
18e1a9914e Removing more double spaces. 2020-07-30 09:32:27 +02:00
Takashi Kato
71f50d5b40
Remove extra space
Encountered an issue https://github.com/frjo/hugo-theme-zen/issues/16.
Per forum, this may help an error. https://discourse.gohugo.io/t/error-with-template-illegal-number-syntax/21148/4
2020-06-16 21:14:43 +09:00
Fredrik Jonsson
bf7b9dfb1d Menus need relLangURL. 2020-04-28 12:57:09 +02:00
Fredrik Jonsson
474796c204 Make the figure shortcode work with images not in static. 2020-04-20 20:43:51 +02:00
Piotr
131ac2ced8 Revert "Added call to Google Analytics."
This reverts commit 273f408669.
2020-04-20 14:17:32 +02:00
Piotr
f405eb0612 Added missing language prefix in tag list. 2020-04-20 12:54:46 +02:00
Piotr
273f408669 Added call to Google Analytics. 2020-04-20 12:35:12 +02:00
Fredrik Jonsson
fcde1683d1 Integrated FlexSearch.js and removed DuckDuckGo search. 2020-03-24 21:45:43 +01:00
Fredrik Jonsson
29be42aaa2 Implemented the new languageDirection setting. 2020-03-22 09:17:17 +01:00
Fredrik Jonsson
defca5605c Add body classes for list and single pages as well as front. 2020-03-12 12:54:50 +01:00
Fredrik Jonsson
50e0196151 Use created date and not last modified date in posts header and summary. 2020-02-26 20:50:33 +01:00
Fredrik Jonsson
91106240a9 Move matomo code to seperate script to ease implementing Content-Security-Policy header. 2020-01-13 10:46:53 +01:00
Fredrik Jonsson
27d3d64e50 Build menus from .Site.Menus.main if it exists, otherwise build it automatically with home and sections as before. 2020-01-03 11:30:34 +01:00
Fredrik Jonsson
6b0f3caf6c Do not use scratch in figure shortcode anymore, set variables the new improved go template way. 2020-01-03 11:28:24 +01:00
Fredrik Jonsson
8971d752bb Fix bug from last commit that replaces check for currentID for currentSection for pages in menus. 2020-01-03 11:20:22 +01:00
Fredrik Jonsson
1602176e73 Make meny and sidebar templates with new aria-current easier to read. 2020-01-03 10:26:31 +01:00
Piotr Machacz
8802e49a6b add aria-current to active class in menus and sidebar 2020-01-02 16:32:10 +01:00
Fredrik Jonsson
8ad67c1716 Use safeHTMLAttr to avoid encoding charecters in header meta and link tags. 2019-12-10 15:19:56 +01:00
Fredrik Jonsson
7b634ad79c Improve and document how to set language direction, i.e ltr/rtl. 2019-11-28 10:34:46 +01:00
Fredrik Jonsson
62df7c4b3d Turn sidebar off by default. 2019-11-20 10:59:41 +01:00
Fredrik Jonsson
e8f4002c70 Use paginator for mainSections on home page. 2019-11-20 10:59:23 +01:00
Fredrik Jonsson
6aa7ff2b49 Do not build styles twise in development. Output identical. 2019-11-01 10:29:44 +01:00
Fredrik Jonsson
ae3ca2e41c Add alternate language link tags in head. 2019-11-01 10:27:49 +01:00
Frieder Schrempf
2de95d06c4
Add translations for 'Last modified' and 'Created'. 2019-10-01 14:28:21 +02:00
Fredrik Jonsson
f0ba6de8b9 Updated feed templates for Hugo v0.58.0. 2019-09-05 14:57:46 +02:00
Fredrik Jonsson
fa9f59c76a Truncate description in meta tags to 170 charecters if it is taken from .Summary. 2019-09-04 14:32:35 +02:00