Commit graph

567 commits

Author SHA1 Message Date
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
52fd600814 More use of start/end for paddings and margins. 2023-04-23 18:24:51 +02:00
Fredrik Jonsson
a5e759d988 Add style components for zebra-tables and responsive-tables. 2023-04-23 16:47:57 +02:00
Fredrik Jonsson
8ca27a65c3 Use start/end for text-align and padding to handle rtl etc. better. 2023-04-23 16:47:14 +02:00
Fredrik Jonsson
3012cad52e Add colours for odd/even rows and row headers. 2023-04-23 16:44:15 +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
9e025a2b53 Adjust how max line width is set on lists and headings. 2023-04-03 14:51:12 +02:00
Fredrik Jonsson
2a24277c90 Fix spelling, it is Matomo and not Matamo. Thanks @bwc69151. 2023-04-03 12:01:37 +02:00
Fredrik Jonsson
bc3dc4a071 Update README with KaTeX support etc. 2023-04-02 11:45:22 +02:00
Fredrik Jonsson
4ec8920b90 Style adjustments for forms. 2023-03-27 11:36:05 +02:00
Fredrik Jonsson
a5a71c126f Improve comments for variables. 2023-03-27 11:35:46 +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
be55ea6bdd Added newly added 3.x features to the README. 2023-03-26 11:41:06 +02:00
Fredrik Jonsson
d7fe991e4c Added margin-block classes as e.g. mtb--m. 2023-03-26 11:40:50 +02:00
Fredrik Jonsson
d4c120d04c Add all example render hooks to the README. 2023-03-26 10:43:44 +02:00
bwc69151
fb382bda2a
Swahili translation sw.toml (#84) 2023-03-26 10:25:30 +02:00
Fredrik Jonsson
c1b813206e Add links to nice forms in the README, part 2. 2023-03-26 10:23:06 +02:00
Fredrik Jonsson
0ba4ea9b18 Add links to nice forms in the README. 2023-03-25 21:03:20 +01:00
Fredrik Jonsson
37b0a700af Fix linting issue. 2023-03-25 20:59:21 +01:00
Fredrik Jonsson
e40112df72 Box shadow on button active. 2023-03-25 16:04:48 +01:00
Fredrik Jonsson
2034707d32 Box shadow on button hover. 2023-03-25 15:03:39 +01:00
Fredrik Jonsson
ce9d9ff8cc Fix bug with unit in spacing mixin. 2023-03-24 14:45:02 +01:00
Fredrik Jonsson
17d3ac7f81 Fix: debug should be false by default. 2023-03-24 14:13:05 +01:00
Fredrik Jonsson
f8f7981f4b Make use of css variables in responsive-video component. 2023-03-23 19:11:04 +01:00
Fredrik Jonsson
fce6597ea1 Add missing tags component. 2023-03-18 07:30:06 +01:00
Fredrik Jonsson
c9526d5de0 Remove button from base/forms. 2023-03-17 20:30:38 +01:00
Fredrik Jonsson
5cffb74b65 Do not set max line with on h1. 2023-03-17 20:26:42 +01: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
881ab104d8 Readd debug mixin. 2023-03-15 15:07:45 +01:00
Fredrik Jonsson
b1ea700304 Add a footer-bg colour. 2023-03-15 15:06:56 +01:00
Fredrik Jonsson
ef541b998e Split sass reset dir in to reset file and base dir. 2023-03-15 15:06:45 +01:00
Fredrik Jonsson
c81317e0ca Adjust font sizes. 2023-03-13 09:18:53 +01:00
Fredrik Jonsson
8b433b36ec Update to FlexSearch.js v0.7.31. 2023-03-13 09:18:32 +01:00
Fredrik Jonsson
afbc914417 Remove unused our outdated js libs. 2023-03-13 08:07:52 +01:00
Fredrik Jonsson
308e9d961b Make use of :focus-visible when needed. 2023-03-08 08:18:25 +01:00
Fredrik Jonsson
44a15013b5 Add description to archetypes. 2023-03-08 08:18:03 +01:00
Fredrik Jonsson
0cbd21753b Move third party js to a assets/vendor dir. 2023-03-02 08:19:28 +01:00
Fredrik Jonsson
a0794b7c59 Use dvh with vh fallback for page min-height. 2023-03-01 09:46:39 +01:00
Fredrik Jonsson
52fcea72aa Adjustments to the mobile menu, part 2. 2023-02-27 14:32:22 +01:00
Fredrik Jonsson
37218ed069 Adjustments to the mobile menu. 2023-02-27 13:47:14 +01:00
Fredrik Jonsson
bdbf3b595d Fixing help text in the set_up_new_site script. 2023-02-27 08:25:07 +01:00
Fredrik Jonsson
cc537ae55e Add draft input to cloudcannon conf example. 2023-02-25 16:44:23 +01:00
Fredrik Jonsson
1e233af325 Add remove_extra_inputs and instance_value settings to cloudcannon conf. 2023-02-24 21:25:26 +01:00