Commit graph hackertours-theme/layouts/partials
Author SHA1 Message Date
Fredrik Jonsson
8dd5e86058 Use js.Build for all js minify. 2023-06-27 14:21:52 +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
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
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
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
Fredrik Jonsson
66debf54cf Simplify _zen.scss by using componets classes. 2023-02-24 15:55:11 +01:00
Fredrik Jonsson
6f2f3cd067 Default to site.Author.name for post author. 2023-02-24 15:51:30 +01:00
Fredrik Jonsson
338d1e8264 Link elements with hreflang should be absolute. 2023-02-24 08:39:49 +01:00
Fredrik Jonsson
f58575e232 New card template. Add settings to transpile sass with libsass or dartsass. Add setting to use internal pagination template. Wrap summary in p tags. 2023-02-01 10:33:48 +01:00
Fredrik Jonsson
8432f13929 Replace h4 tag with p+strong in sidebar menu. 2023-01-18 10:03:53 +01:00
Fredrik Jonsson
1bd584da5f Fix invalid json when page has no content or description. 2023-01-17 08:43:43 +01:00
Fredrik Jonsson
0581ac810f No longer load Umbrella JS by default sine alla theme JS is vanilla. Updated jQuery to latest version. Updated README. 2022-12-21 13:56:57 +01:00
Fredrik Jonsson
7f91caaf5d Improve the accecibility of the mobil menu. Also switch to SVG hamburger icon that is animated. 2022-12-21 10:05:10 +01:00
Fredrik Jonsson
617ab51ed7 Replace ExecuteAsTemplate with js.Build for js files. 2022-07-19 15:06:57 +02:00
Fredrik Jonsson
56d3c30a98 Replace use of add with path.Join for buildig paths. 2022-07-19 14:56:32 +02:00
Fredrik Jonsson
cf58f0e200 Add Alpine.js, will start expermimenting with this, part 2. 2022-05-27 10:40:14 +02:00
Fredrik Jonsson
ce6e10f7a9 Use GetTerms for taxonomy terms. 2022-01-24 08:03:42 +01:00
Fredrik Jonsson
440cb44207 Move sass lib folder down one level. Move css colour var generation to styles file. 2022-01-24 08:03:42 +01:00
Fredrik Jonsson
3737d5874c Replace .Site.x and $.Site.x with site.x. 2022-01-24 08:03:42 +01:00
Fredrik Jonsson
767119d014 Use localstorage for cookiconsent response instead of setting a cookie. 2021-12-13 10:50:23 +01:00
Fredrik Jonsson
57c4ec440a Updating to FlexSearch.js v0.7.2. 2021-08-17 08:52:46 +02:00
Fredrik Jonsson
a1e7e3f79b Add js libs lozad (lazy load images) and list (sort and filter any HTML). 2021-06-23 10:14:40 +02:00
Fredrik Jonsson
bff732b3e0 Use hidden class on cookie consent. 2021-05-21 08:28:06 +02:00
Fredrik Jonsson
2795c2cddb Title case for follow in feedlinks. 2021-05-20 09:48:25 +02:00
Fredrik Jonsson
030c7217fd Switch to internal Google Analytic temple to support v4. 2021-05-20 09:33:51 +02:00
Fredrik Jonsson
95f637dcc5 Change from subscibe to follow and make it translateble. 2021-05-20 09:00:18 +02:00
Fredrik Jonsson
0d39a55736 Rename param related to relatedposts. 2021-02-24 23:18:09 +01:00
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
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
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