Commit graph hackertours-theme/layouts
Author SHA1 Message Date
Fredrik Jonsson
afe29b6e81 Removed automatic menu. 2024-08-20 11:56:05 +02:00
Fredrik Jonsson
2ae8ee84ee Min version is now v0.124.0. Using site.Config.Services.GoogleAnalytics.ID, hugo.IsMultilingual and hugo.yaml etc. 2024-08-14 14:27:12 +02:00
Fredrik Jonsson
b1ecbbef64 Implemented upstream changes to feed templates. 2024-04-23 09:58:54 +02:00
Fredrik Jonsson
d292e993a1 Replace all site.Author* with site.Params.author*. 2024-03-16 20:59:18 +01:00
Fredrik Jonsson
608936b748 Implement LinkTitle in menus, making it easy to set in frontmatter. 2024-02-25 15:37:41 +01:00
Fredrik Jonsson
18e40b4ad6 Move mobile out of header dom. 2024-02-25 15:37:41 +01:00
Fredrik Jonsson
0376f98512 Add loading=lazy to img tags. 2024-01-30 19:34:52 +01:00
Fredrik Jonsson
31bafbb2f7 Adding view-transition meta tag so I remember to implement it whe browsers start to support it. It is really cool 2024-01-11 17:30:14 +01:00
Fredrik Jonsson
5ec7742bfe Improve cokkieconsent box styling. 2023-12-08 08:54:56 +01:00
Fredrik Jonsson
d95bf6d1b8 Remove extra margin block end to site header. 2023-11-25 23:06:17 +01:00
Fredrik Jonsson
e42f7228ff Remove button from search form. 2023-11-21 12:09:33 +01:00
Fredrik Jonsson
bf76cb1417 Search shortcode improvments. 2023-11-14 17:37:47 +01:00
Fredrik Jonsson
4bb4c9dec1 Remove content div wrappers. Use grid template columns for main to support stretch and breakout classes. 2023-11-14 17:37:47 +01:00
Fredrik Jonsson
fb411d6f32 If with or heght is set in img and figure shortcodes, use that even when size is set. 2023-11-14 17:36:46 +01:00
Fredrik Jonsson
d8af3cd856 Bug in podcast rss template, it is with not width. 2023-11-10 14:58:32 +01:00
Fredrik Jonsson
106d3df37e Updated to author params and GoogleAnalytics params with Hugo v0.120.0. 2023-10-30 20:23:17 +01:00
Fredrik Jonsson
94a6dc0af3
Make search work for all languages when contentDir is set. (#106) 2023-10-25 08:40:18 +02:00
Fredrik Jonsson
34a0a39352 Add wrapper start and end shortcodes. Make editing in Cloudcannon easier since we can avoid nested shortcodes. 2023-10-16 17:51:52 +02:00
Fredrik Jonsson
a68a2104c6 Support optional head and footer partials. 2023-10-12 09:05:38 +02:00
Fredrik Jonsson
ceb809eeaa Add the siteName param so site name can optionaly be set to visually-hidden. 2023-10-11 10:03:22 +02:00
Fredrik Jonsson
e3861bb728 Templates white space fixes. 2023-09-29 10:55:50 +02:00
Fredrik Jonsson
bfd78179c6 Use js.Build for minify in math partial. 2023-09-29 09:25:19 +02:00
Fredrik Jonsson
d0d2798bc9 MAke file_stat for local podcast files work if in subdir. 2023-08-28 20:11:26 +02:00
Fredrik Jonsson
cfdcf5cac4 Use site.Home.RelPermalink for logo and site title link. 2023-08-28 20:09:47 +02:00
Fredrik Jonsson
dab1fb45da Bug fix, path.Join do not work with full scheme URLs. Fix in feed earlier, this is for the partial. 2023-07-25 08:50:45 +02:00
Fredrik Jonsson
31f67a58b0 Remove obsolute form-submit and form-error. 2023-07-16 07:40:56 +02:00
Fredrik Jonsson
8dd5e86058 Use js.Build for all js minify. 2023-06-27 14:21:52 +02:00
Fredrik Jonsson
f44fd9da55 h1 only on top of page so different margins. 2023-06-03 22:38:03 +02:00
Fredrik Jonsson
be68250151 Use em to set header margins for better text rythm. 2023-06-01 19:30:24 +02:00
Fredrik Jonsson
93728f1e9e Make use of aria-current as selector and remove use of active class. 2023-05-30 08:57:59 +02:00
Fredrik Jonsson
9bdec6ca76 Whitespace in templates. 2023-05-28 19:36:58 +02:00
Fredrik Jonsson
a7bfa92312 Use .Site.LanguageCode. 2023-05-28 11:12:21 +02:00
Fredrik Jonsson
3c61f58e3d .Language.Params is deprecated and will be removed in a future release. 2023-05-18 20:03:47 +02:00
Fredrik Jonsson
06479083fb Fix some bugs with mobile toggle and reuse button and link classes for mobile menu. 2023-05-08 15:49:49 +02:00
Fredrik Jonsson
86d7c8d001 Minor codestyle fixes to meta_breadcrumb. Moving safeJS to the partial output. 2023-04-23 20:59:21 +02:00
Fredrik Jonsson
a4b9df99b1 Add header tag to title in list layouts so the title to not fall of the page. Minor other layout fixes. 2023-04-23 20:56:27 +02:00
Daniel F. Dickinson
eb27a1e023
Add schema.org BreadcrumbList to JSON+LD (#87)
* Add schema.org BreadcrumbList to JSON+LD

This implementation  depends on .Page.Ancestors, which requires Hugo
version v0.109.0.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

* Fix extraneous comma in schema

For blog posts we ended up with an extraneous comma due to it being
outside the condition for the breadcrumb
JSON+LD.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

* Pretty print breadcrumb JSON+LD for schema

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

* Make breadcrumbs opt-in on non-blogSections

Sections except blogSections (which is a configurable set which is
defaulted to sections 'blog' and 'post'), may be part of
`breadcrumbSections`. For the breadcrumb Sections, the section and any
pages under it will have the `breadcrumb` attribute (of type
`BreadcrumbList`) added to the JSON+LD for their schema.org structured
data.

Update documentation of `params` for example `config.yaml` in README.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

---------

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
2023-04-23 20:17:52 +02:00
Fredrik Jonsson
a5e759d988 Add style components for zebra-tables and responsive-tables. 2023-04-23 16:47:57 +02:00
Fredrik Jonsson
c482552746 Math partial can not be cached. 2023-04-18 15:18:31 +02:00
Fredrik Jonsson
936892fe7b Add math render codeblock and math shortcode. 2023-04-13 16:09:09 +02:00
Fredrik Jonsson
91c01f30a0 Add support for pre and post in menu items. 2023-04-11 11:26:39 +02:00
Fredrik Jonsson
516dff348e Rename assets/vendor to assets/libs to make it work with go modules. 2023-03-26 14:21:12 +02:00
Fredrik Jonsson
9a8fc75e1f Make use of partialCached for cookiconsent and math. 2023-03-17 20:07:13 +01:00
Fredrik Jonsson
eee22b08f5 Adjustments to the katex integration, part 2. 2023-03-17 16:44:50 +01:00
Fredrik Jonsson
5033f3a277 Adjustments to the katex integration. 2023-03-17 14:14:19 +01:00
Jason Li
1b82c48add
Add math typesetting support with KaTex (#80)
* add math typesetting support with KaTex
* Simplified the syntax for checking "math" property
* save katex files to local
* use local katex file to render math typesetting
* revert changes in scripts.html and styles.html
* Save math.js as a file, not inline script.
* move it into "assets/js" folder
* Load all necessary scripts and styles in math.html
2023-03-17 13:50:57 +01:00
Fredrik Jonsson
1d6e50708a Move some styles fron zen to base. Add margin-top and margin bottom classes for all spacing levels. Add footer component. 2023-03-15 15:46:09 +01:00
Fredrik Jonsson
afbc914417 Remove unused our outdated js libs. 2023-03-13 08:07:52 +01:00
Fredrik Jonsson
0cbd21753b Move third party js to a assets/vendor dir. 2023-03-02 08:19:28 +01:00
Fredrik Jonsson
52fcea72aa Adjustments to the mobile menu, part 2. 2023-02-27 14:32:22 +01:00