14564 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
ef8bf89d8b resources/page: Revise the new contentbasename permalinks tokens
* Make it work for all pages, including those created from content adapters and not backed by a file.
* Allow the `slug` to win, so the new tokens are:

`:contentbasename`:

1. ContentBaseName

`:slugorcontentbasename`:

1. Slug
2. ContentBaseName

Note that a page will always have a `ContentBaseName`, so no need to fall back to e.g. the title.

Closes #11722
2025-02-17 09:41:49 +01:00
Henrique Dias
901adb07b7 resources/page: Add :contentbasename and :contentbasenameorslug permalink tokens
See #11722
2025-02-17 09:41:49 +01:00
Joe Mooring
0fca8ef251
all: Change shortcode usage and design to prevent invalid HTML 2025-02-17 00:38:33 -08:00
harry
c41d766137 Update RegularPagesRecursive.md
fixing a small typo in the info page
2025-02-15 23:09:33 +01:00
Joe Mooring
e935747483
content: Correct return type for strings.Split 2025-02-15 10:30:21 -08:00
Bjørn Erik Pedersen
3d504abbad
Revert "content: Add ids to the Netlify steps"
This reverts commit c08c8e15e733088d760fbc4e9e80546b6399659a.

This will eventually fix itself with https://github.com/gohugoio/hugo/issues/13403
2025-02-15 18:01:01 +01:00
Bjørn Erik Pedersen
c08c8e15e7
content: Add ids to the Netlify steps
But it's probably easier to just use e.g. h6.
2025-02-15 14:46:38 +01:00
Bjørn Erik Pedersen
5a3b470a2f
theme: "move" the id from content to article
This is the id used for Algolia records without id on the element itself.
2025-02-15 14:36:22 +01:00
Bjørn Erik Pedersen
b878613aad
theme: Add page kind as a CSS class to body 2025-02-15 11:58:53 +01:00
Joe Mooring
269657e8f1
content: Fix formatting error 2025-02-14 05:39:21 -08:00
Joe Mooring
664f6c92f3 config: Change image cache location 2025-02-14 10:10:11 +01:00
Bjørn Erik Pedersen
fa6b719b1b theme: Reduce ToC to level 2-4
Fixes #2902
2025-02-14 10:09:21 +01:00
Joe Mooring
bc16341ca1 theme: Render mathematical markup with transform.ToMath
Closes #2897
2025-02-14 09:54:02 +01:00
Joe Mooring
14bf9dc700
theme: Add aria-label attribute to search fields
Closes #2899
2025-02-14 09:29:09 +01:00
Joe Mooring
ed42af5b3b theme: Adjust search field and search activation
- Activate search with / regardless of OS
- Adjust colors for "standalone" search button

Closes #2893
2025-02-14 09:15:06 +01:00
Joe Mooring
f042e49709 dev: Add prettier-plugin-void-html
This is a Prettier plugin to format void HTML elements using the void
tag syntax instead of self-closing syntax. Additionally, if
self-closing syntax is used on non-void elements, then they will be
"unwrapped" so that both the opening and closing tags are present.
2025-02-14 09:11:20 +01:00
Joe Mooring
f6ec83533e
content: Fix inline shortcode example 2025-02-13 20:57:15 -08:00
Joe Mooring
0a74210e2b
theme: Remove readfile shortcode 2025-02-13 19:55:54 -08:00
Bjørn Erik Pedersen
334ca06ac6 theme: Fix some dark mode accessibility as reported by Axe core
Tested with the Chrome extension.
2025-02-13 18:21:33 +01:00
Bjørn Erik Pedersen
02626ff921
theme: aria-lbabel => aria-label 2025-02-13 17:54:18 +01:00
Bjørn Erik Pedersen
227b76ab7e
Add Prettier and config 2025-02-13 07:36:41 -08:00
Joe Mooring
43ab224280
content: Bump minimum required Go version to 1.23.0 2025-02-13 07:00:56 -08:00
Bjørn Erik Pedersen
03e54683f5 modules: Add GOAUTH to module config
Closes #13385
2025-02-13 15:01:28 +01:00
Bjørn Erik Pedersen
9f06a3b9cb js/esbuild: Add drop option
Fixes #13362
2025-02-13 13:26:46 +01:00
Bjørn Erik Pedersen
ddcd993698 Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a' 2025-02-13 10:40:34 +01:00
Joe Mooring
d1a2519330 theme: Optimize for printing 2025-02-13 09:01:07 +01:00
Joe Mooring
d906488d50 theme: Add border to highlighted code blocks within list items 2025-02-13 08:57:30 +01:00
Joe Mooring
9630c38cb8 theme: Display short command on commands list 2025-02-13 08:56:40 +01:00
Joe Mooring
7f81dd9972 content: Regen commands markup 2025-02-13 08:54:31 +01:00
Joe Mooring
a84008e994
content: Cleanup primary list page 2025-02-12 11:39:02 -08:00
Joe Mooring
0874b03e94
content: Publish QR code examples to the images/qr directory 2025-02-12 09:43:02 -08:00
Bjørn Erik Pedersen
ef1ce3498b
Restore static/img 2025-02-12 18:31:57 +01:00
Joe Mooring
489a68458a
content: Restore KeyCDN screen captures 2025-02-12 08:39:13 -08:00
Bjørn Erik Pedersen
7d6e6184b1 theme: Move search button in navbar to the right on smaller screens
Closes #2886
2025-02-12 13:42:50 +01:00
Bjørn Erik Pedersen
b03b96082d
theme: Misc style adjustments
* Indent the toc level 2 a little
* Adjust code shortcode file bacground and make it unselectable

Closes #2882
2025-02-12 10:13:51 +01:00
Bjørn Erik Pedersen
ecad978216 theme: Misc fixes
* Prevent meta-k shortcut from also opening Firefox's native search.
* Speed up the search drawer transition a little.
* Don't hide the search input/button when search is open.
* Fix some dark mode issues

Closes #2883
2025-02-12 09:58:10 +01:00
Joe Mooring
cf5e07b0f2
content: Restore example data and images 2025-02-11 19:33:08 -08:00
Joe Mooring
c7265041f1
content: Reformat css.TailwindCSS setup steps 2025-02-11 19:08:34 -08:00
Bjørn Erik Pedersen
3226e668fc
theme: Make the search button more compact on mobile 2025-02-11 21:56:48 +01:00
Joe Mooring
1f6614ee8e
content: Update css.TailwindCSS example 2025-02-11 12:10:11 -08:00
Bjørn Erik Pedersen
49a2e7d71b
theme: Improve search output
For pages with h6 only (e.g. frequently asked questions).
2025-02-11 20:54:41 +01:00
Joe Mooring
7e6b81ffa6
misc: Create issue template 2025-02-11 10:37:03 -08:00
Bjørn Erik Pedersen
826740223c
theme: Misc search improvements
* Add style for highlighted text
* Collapse all >= h3 into lvl3 and show that in the search results
2025-02-11 18:45:47 +01:00
Bjørn Erik Pedersen
75f32b2f63
theme: Remove the search alert
I have reconfigured and rerun the crawler, and it's reasonably good now.
2025-02-11 18:09:06 +01:00
Joe Mooring
fd3de4ac2c
config: Enable link render hook warnings 2025-02-11 08:59:22 -08:00
Bjørn Erik Pedersen
769e387cd4
Adjust logic to mark current section for Algolia 2025-02-11 17:52:44 +01:00
Bjørn Erik Pedersen
ba73ce646b
Adjust markup to make it easier to match in Algolia 2025-02-11 17:30:14 +01:00
Bjørn Erik Pedersen
5accec5f16 Misc adjustments 2025-02-11 16:30:05 +01:00
Bjørn Erik Pedersen
eb5842566f Some content adjustments
* Remove linkTitle: In this section
* documentation.md => list layout
* hide_in_this_section: true => glossary.
2025-02-11 16:30:05 +01:00
Bjørn Erik Pedersen
bdf97b7b45 Add new theme 2025-02-11 16:30:05 +01:00