Commit graph

803 commits

Author SHA1 Message Date
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
97ab01cb96 Set once: true for all addEventListener in contact.js so not to waste CPU cycels. 2023-09-29 09:24:24 +02:00
Fredrik Jonsson
4f27fa0bcf Fix cloudcannon conf for wrapper shortcode. 2023-09-06 09:55:30 +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
7290fdc11a Updating node packages. 2023-07-19 07:50:17 +02:00
Fredrik Jonsson
fcb0fca976 Improve readme for cookieConsent. 2023-07-17 11:04:42 +02:00
Fredrik Jonsson
cf0c43760c Add clearcookieconsent link/button option. 2023-07-17 11:00:46 +02:00
Fredrik Jonsson
31f67a58b0 Remove obsolute form-submit and form-error. 2023-07-16 07:40:56 +02:00
dependabot[bot]
a7034badd0
Bump stylelint from 15.6.0 to 15.10.1 (#95)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 15.6.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/15.6.0...15.10.1)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-08 07:31:57 +02:00
Fredrik Jonsson
8dd5e86058 Use js.Build for all js minify. 2023-06-27 14:21:52 +02:00
Fredrik Jonsson
aeefabf16b Specify release-drafter.yaml conf. 2023-06-27 14:12:07 +02:00
Fredrik Jonsson
c0c1273880 Add text-wrap: balance; for headings. 2023-06-27 14:08:11 +02:00
Fredrik Jonsson
4b4cafb2fb Implement Release Drafter. 2023-06-27 14:07:18 +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
e7db4553d4 Updated min_version to 0.93.0 to support .Page.Store feature. 2023-05-18 13:21:43 +02:00
Fredrik Jonsson
012c465927 Add %button--shadow to zen styles. 2023-05-08 19:21:19 +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
79ad438b19 Do not set colour for code with syntax highlighting. 2023-05-07 15:44:11 +02:00
Fredrik Jonsson
0459743880 Message highlight. 2023-04-26 14:24:53 +02:00
Fredrik Jonsson
205f7e7834 Make sure headings etc. also gets inverted in boxes. Add classes or extend handlers to some components missing them. 2023-04-26 13:09:04 +02:00
Fredrik Jonsson
73f1114123 Add stylelint quiet-deprecation-warnings. 2023-04-25 09:24:01 +02:00
Fredrik Jonsson
9017bdebf5 Add a editorconfig file. 2023-04-25 09:15:17 +02:00
dependabot[bot]
7ba670ba69
Bump yaml, stylelint, stylelint-config-standard-scss and stylelint-scss (#89)
Removes [yaml](https://github.com/eemeli/yaml). It's no longer used after updating ancestor dependencies [yaml](https://github.com/eemeli/yaml), [stylelint](https://github.com/stylelint/stylelint), [stylelint-config-standard-scss](https://github.com/stylelint-scss/stylelint-config-standard-scss) and [stylelint-scss](https://github.com/stylelint-scss/stylelint-scss). These dependencies need to be updated together.


Removes `yaml`

Updates `stylelint` from 14.14.1 to 15.6.0
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/14.14.1...15.6.0)

Updates `stylelint-config-standard-scss` from 6.1.0 to 9.0.0
- [Release notes](https://github.com/stylelint-scss/stylelint-config-standard-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-config-standard-scss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-config-standard-scss/compare/v6.1.0...v9.0.0)

Updates `stylelint-scss` from 4.3.0 to 4.6.0
- [Release notes](https://github.com/stylelint-scss/stylelint-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-scss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-scss/compare/v4.3.0...v4.6.0)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
- dependency-name: stylelint
  dependency-type: direct:development
- dependency-name: stylelint-config-standard-scss
  dependency-type: direct:development
- dependency-name: stylelint-scss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 08:26:17 +02:00
Fredrik Jonsson
33c9642116 Remove use of :has() from js as well. 2023-04-24 14:25:36 +02:00
Fredrik Jonsson
25e792dd22 Adjust padding and gap in the tables componets styles. 2023-04-24 09:33:26 +02:00
Fredrik Jonsson
a54b27a9a7 Code style and code comments fixes. 2023-04-24 09:20:48 +02:00
Fredrik Jonsson
3bf7c9ad3a Rework the tables componets styles to work for all browsers, :has() support is limited. 2023-04-24 09:20:25 +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
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