42 Commits
Author SHA1 Message Date
Joe Mooring fd628be6ed content: Replace calls to the code shortcode with fenced code blocks 2025-03-06 02:49:11 -08:00
Joe Mooring 71d8426ee6 theme: Create code block render hook 2025-03-05 17:03:42 -08:00
Joe Mooring b6cae5cbc6 content: Consolidate configuration documentation 2025-03-05 04:50:06 -08:00
Joe Mooring 727ef6f665 theme: Fix overflow issue for wide tables 2025-03-03 17:29:44 -08:00
Joe Mooring 8c059cbe14 theme: Use content adapter for news section 2025-02-28 14:15:31 -08:00
Joe Mooring ca931cd1f6 theme: Restore RSS feed for news section 2025-02-20 09:45:28 -08:00
Bjørn Erik Pedersen e68431034e theme: Format layouts
```
npx prettier --write layouts
```
2025-02-18 18:04:34 +01:00
Bjørn Erik Pedersen 18e1aa916d theme: Add anchor links via JS 2025-02-17 18:11:46 +01:00
Joe Mooring f683e64698 theme: Minor improvements to base template 2025-02-17 02:22:37 -08: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
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 9630c38cb8 theme: Display short command on commands list 2025-02-13 08:56:40 +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 bdf97b7b45 Add new theme 2025-02-11 16:30:05 +01:00
Bjørn Erik Pedersen b19d68ee55 Remove old theme 2025-02-11 16:30:05 +01:00
Joe Mooring 6f14084c13 Move glossary to quick reference section 2025-02-02 11:15:51 -08:00
Oleksandr RedkoandJoe Mooring 2ea56bef3e Fix typos found with codespell
Co-authored-by: Joe Mooring <joe@mooring.com>
2025-02-02 06:20:17 -08:00
Joe Mooring fa7643d1be Revert "Improve link render hook performance" 2025-01-30 01:42:46 -08:00
Joe Mooring fd4508645f Improve link render hook performance 2025-01-29 12:58:33 -08:00
Joe Mooring 441752d2d0 Refactor glossary lookup portion of link render hook 2025-01-20 00:26:38 -08:00
Joe Mooring 80109a14f4 Fix glossary term linking for plural form 2025-01-19 16:56:27 -08:00
Joe Mooring cd95f0f34e Update link render hook to support glossary links 2025-01-19 16:40:42 -08:00
Bjørn Erik Pedersen 53eadb430f Remove the glossary template 2025-01-19 07:03:21 -08:00
Joe Mooring 56d9c9b711 Refactor glossary of terms 2025-01-18 09:30:36 -08:00
Joe Mooring 02732fe916 Remove layouts directory 2024-04-26 14:48:28 -07:00
Joe Mooring 21247df4eb Update link render hook 2024-04-26 14:15:34 -07:00
Joe Mooring 7d2fd86474 Update link render hook 2024-04-26 14:06:57 -07:00
Joe Mooring ad4a124c0c Updates for v0.123.0
See #2385
2024-02-19 19:07:38 +01:00
Joe Mooring eb20521a20 Fix flash of unstyled content with mathematical markup 2024-01-27 12:44:41 -08:00
Joe Mooring d47c3a6854 Update/vendor theme 2024-01-26 10:25:05 -08:00
Joe Mooring 10ff15208f Create page describing how to include LaTeX/TeX in markdown 2024-01-26 08:20:06 -08:00
Joe Mooring 8657804ba4 Update theme 2023-11-05 17:43:27 -08:00
Joe Mooring 508666575f Miscellaneous updates 2023-11-05 13:12:09 -08:00
Joe Mooring 723a827fdc Namespace functions and methods 2023-11-04 21:01:42 -07:00
Joe Mooring a3a40ff999 Add return type to functions 2023-09-30 21:03:52 -07:00
JB eddd25ff46 Mermaid: reflect latest docs specifications
MermaidJS now specifies to write chart's markdown within a `pre` HTML tag to improve semantics.
2023-02-27 11:35:33 +01:00
Bjørn Erik Pedersen f33ba4e5a7 CodeblockContext method renames
Fixes #9577
2022-02-27 17:59:36 +01:00
Bjørn Erik Pedersen 979b479686 Move the Goat template to the correct place
Updates #7765
2022-02-25 00:09:07 +01:00
Bjørn Erik Pedersen 2df37e9e80 Add Markdown diagrams and render hooks for code blocks
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`).

We also used this new hook to add support for diagrams in Hugo:

* Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams.
* Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information.

Updates #7765
Closes #9538
Fixes #9553
Fixes #8520
Fixes #6702
Fixes #9558
2022-02-24 18:59:50 +01:00