Commit graph

35 commits

Author SHA1 Message Date
Joe Mooring
1ecd0596a3 output: Fix docshelper template lookup order for AMP pages
Fixes #12797
2024-08-28 13:05:28 +02:00
Bjørn Erik Pedersen
01008ba512 Add config options page.nextPrevSortOrder/nextPrevInSectionSortOrder
See #12776
2024-08-17 16:47:50 +02:00
Bjørn Erik Pedersen
ef2e30eca3
docs: Regen docshelper 2024-08-09 19:34:13 +02:00
raoulb
9d2b5f98d0
math: Add trigonometric functions and some angle helper functions
This commit adds these new template functions in the `math` namespace:

math.Acos
math.Asin
math.Atan
math.Atan2
math.Cos
math.Pi
math.Sin
math.Tan
math.ToDegrees
math.ToRadians

Co-authored-by: Joe Mooring <joe@mooring.com>
2024-07-29 11:05:36 +02:00
Bjørn Erik Pedersen
af0cb57aaf
Merge commit '8b9803425e63e1b1801f8d5d676e96368d706722' 2024-06-21 09:41:24 +02:00
Joe Mooring
8efc75b73f markup/goldmark: Add the Hugo Goldmark Extras "delete" extension
With Goldmark v1.7.1 and earlier, the Goldmark "strikethrough" extension was
triggered by wrapping text within a pair of double-tilde characters. With
Goldmark v1.7.2 and later, to provide full GFM compatibility, the Goldmark
"strikethrough" extension is triggered by wrapping text within a pair of
single- or double-tilde characters.

This change created a conflict with the Hugo Goldmark Extras "subscript"
extension.

When enabling the Hugo Goldmark Extras "subscript" extension, if you
want to render subscript and strikethrough text concurrently, you must:

1. Disable the Goldmark "strikethrough" extension
2. Enable the Hugo Goldmark Extras "delete" extension

Closes #12597
2024-06-18 18:56:20 +02:00
Joe Mooring
8cf94aea73 deps: Upgrade github.com/alecthomas/chroma v2.13.0 => v2.14.0
Closes #12580
2024-06-08 20:25:42 +02:00
Joe Mooring
548dc21378 config: Remove extraneous BuildConfig setting
Closes #12519
2024-05-21 14:34:49 +02:00
Bjørn Erik Pedersen
266140251f
docs: Regen docshelper 2024-05-14 14:46:16 +02:00
Joe Mooring
ca9a77ef92 markup/goldmark: Support extras extension
Enables inclusion of these HTML elements in Markdown:

- Inserted Text (++inserted++)
- Mark Text (==marked==)
- Subscript (H~2~O)
- Superscript (1^st^)
2024-05-10 22:32:02 +02:00
Bjørn Erik Pedersen
df9f2fb617
docs: Regen docshelper 2024-04-16 12:08:28 +02:00
Eitan Adler
bf0b140364
all: Fix duplicate words in comments 2024-04-11 09:31:33 +02:00
Joe Mooring
6738a3e79d tpl/tplimpl: Optionally exclude content from sitemap
Define global inclusion/exclusion in site configuration, and override
via front matter. For example, to exclude a page from the sitemap:

    [sitemap]
    disable = true # default is false

Closes #653
Closes #12282

Co-authored-by: kolappannathan <kolappannathan@users.noreply.github.com>
Co-authored-by: felicianotech <FelicianoTech@gmail.com>
2024-04-02 11:21:03 +02:00
Joe Mooring
ebfca61ac4 tpl/tplimpl: Update Google Analytics template and config
Google Analytics 4 (GA4) replaced Google Universal Analytics (UA)
effective 1 July 2023.

See https://support.google.com/analytics/answer/11583528.

Changes:

- Update tpl/tplimpl/embedded/templates/google_analytics.html
- Remove tpl/tplimpl/embedded/templates/google_analytics_async.html
- Remove extraneous config settings

Closes #11802
Closes #10093
2024-03-26 15:40:51 +01:00
Bjørn Erik Pedersen
0ccb6cdc04
docs: Regen docshelper 2024-03-16 15:54:02 +01:00
Bjørn Erik Pedersen
60b176cb57
docs: Regen docshelper 2024-02-18 13:20:15 +01:00
Bjørn Erik Pedersen
7cb447ab8e
docs: Regenerate docshelper 2024-02-07 20:48:25 +01:00
Bjørn Erik Pedersen
51615440bf
docs: Make null booleans falsy in the docs helper 2024-01-31 12:34:28 +01:00
Bjørn Erik Pedersen
7caa5b3e50
docs: Regen docs helper 2024-01-31 09:45:35 +01:00
Bjørn Erik Pedersen
5fd1e74903
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
```
git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash
```

Closes #11925
2024-01-27 10:48:57 +01:00
Bjørn Erik Pedersen
fc7de7136a
docs: Prepare for new sub tree
See #11925
2024-01-27 10:47:28 +01:00
Bjørn Erik Pedersen
50042ee1f4
docs: Regen docshelper 2024-01-26 08:23:37 +01:00
James Tatum
8915343075 deps: Update github.com/tdewolff/minify/v2 v2.20.9 => v2.20.13
KeepConditionalComments was deprecated in the upstream library and replaced with KeepSpecialComments. This new option reflects that both conditional comments and Server Side Include comments can be optionally stripped by the minifier. As with KeepConditionalComments, the minifier is configured not to strip them by default.
2024-01-25 19:33:14 +01:00
Bjørn Erik Pedersen
255e0a9718
docs: Regen docshelper 2023-12-05 16:19:43 +01:00
Bjørn Erik Pedersen
7617de86cd
docs: Regen docs helper 2023-12-04 15:24:34 +01:00
Bjørn Erik Pedersen
d19ed4d4e6
Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae' 2023-12-04 15:24:01 +01:00
Joe Mooring
bfc325f561 deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8
Closes #5748
2023-11-30 10:13:40 +01:00
Bjørn Erik Pedersen
29b6e133a8
docs: Regen docshelper 2023-10-30 15:03:10 +01:00
Bjørn Erik Pedersen
d3d4ab41a9
docs: Regenerate docshelper 2023-10-29 11:31:51 +01:00
Bjørn Erik Pedersen
1768684d8b
docs: Regen docshelper 2023-09-24 11:56:43 +02:00
Bjørn Erik Pedersen
e847a98db6
docs: Regen docs helper 2023-08-30 19:23:34 +02:00
OMOTO Tsukasa
d7dcc76d27
markup/goldmark: Add CJK extension
Fixes #10472
2023-08-30 13:08:45 +02:00
Joe Mooring
90944aa261 docshelper: Improve template lookup order descriptions
- Always include example for "with layout/type set"
- Use lowercase for "set to" examples (lookup is case sensitive)
- Consistent use of taxonomy and term

Fixes gohugoio/hugoDocs#1734
2023-08-15 12:53:18 +02:00
Bjørn Erik Pedersen
a2f6400d65
cache: Hide IsResourceDir from the exported config 2023-08-09 23:49:08 +02:00
Bjørn Erik Pedersen
d139f30234 docs: Replace docs.json with docs.yaml
Updates #11345
2023-08-08 09:13:17 +02:00