Commit graph hackertours-theme/layouts
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
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
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
97e5eb3bd7 Add param logoHeight. 2023-02-24 10:42:49 +01:00
Fredrik Jonsson
338d1e8264 Link elements with hreflang should be absolute. 2023-02-24 08:39:49 +01:00
Fredrik Jonsson
d81780b409 Add base size to srcset in render image example. 2023-02-02 18:54:22 +01:00
Fredrik Jonsson
45e970953c Add icon-inline component, update render-heading.html.example and add render-image.html.example. 2023-02-01 10:33:48 +01:00
Fredrik Jonsson
b1f0337557 Add taxonomy summary template without date but with count and description. 2023-02-01 10:33:48 +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
32a815789c Add base size to srcset in img and figure shortcodes. 2023-02-01 10:33:32 +01:00
Fredrik Jonsson
363850bae8 Bug fix, path.Join do not work with full scheme URLs. Made podcast feed with cdn not work. Revert back to use add. 2023-01-25 10:20:49 +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
dc538ae451 MAke it possible to set empty alt attribute on figure, img and svg shortcodes. Do not use h4 for caption title in figure, use strong instead. 2023-01-15 11:52:20 +01:00
Fredrik Jonsson
7df8e982ab
Improve shortcodes to support page resources (#68) 2023-01-05 09:19:56 +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
331be7ebe4 Convert the contact form to vanilla JS. 2022-12-21 13:39:50 +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
77cecbc62a Fix bug in logo image path and logo URL so they work in sub dir. 2022-12-05 08:10:43 +01:00
Aziz
d1cecf061c
Update and rename render-link.html to render-link.html.example 2022-09-16 16:59:06 +07:00
Aziz
cff71bf5f5
Create render-link.html
Markdown render hooks for links
2022-09-15 18:38:30 +07:00