13862 Commits

Author SHA1 Message Date
Dietrich Epp
ff34a035a9 deploy: Add stripIndexHtml target option
This new configuration parameter causes paths matching
"<dir>/index.html" to be stored as "<dir>/" remotely. This simplifies
the cloud configuration needed for some use cases, such as CloudFront
distributions with S3 bucket origins. Before this change, users must
configure their S3 buckets as public websites (which is incompatible
with certain authentication / authorization schemes), or users must add
a CloudFormation function to add index.html to the end of incoming
requests. After this change, users can simply use an ordinary CloudFront
distribution (no additional code) with an ordinary S3 bucket origin (and
not an S3 website).

This adds tests to ensure that functionality like matchers is unaffected
by this change. I have also tested that the functionality works as
expected when deploying to a real S3 / CloudFront website.

Closes #12607
2024-06-20 19:37:22 +02:00
Joe Mooring
d9e964bdb6 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
ac5bd16d28 deps: Upgrade github.com/alecthomas/chroma v2.13.0 => v2.14.0
Closes #12580
2024-06-08 20:25:42 +02:00
Joe Mooring
25377171b7 config: Remove extraneous BuildConfig setting
Closes #12519
2024-05-21 14:34:49 +02:00
Bjørn Erik Pedersen
0d2044f6d0 docs: Regen docshelper 2024-05-14 14:46:16 +02:00
Joe Mooring
a2548dac9d 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
Joe Mooring
9d0c86ee85 commands: Add gen chromastyles --lineNumbersTableStyle flag
For symmetry, also rename --linesStyle to --lineNumbersInlineStyle.

Closes #12393
2024-04-20 12:25:28 +02:00
Bjørn Erik Pedersen
7f26f69e89 docs: Regen docshelper 2024-04-16 12:08:28 +02:00
Eitan Adler
ae663793b9 all: Fix duplicate words in comments 2024-04-11 09:31:33 +02:00
Joe Mooring
9d18e239f4 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
8fb8af286e 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
2f7a4ed686 docs: Regen CLI docs 2024-03-16 15:54:33 +01:00
Bjørn Erik Pedersen
5162805d7f docs: Regen docshelper 2024-03-16 15:54:02 +01:00
Andreas Deininger
0e234715c4 docs: Fix hyphens and grammar in synopsis of command 'hugo server' 2024-03-07 14:03:49 +01:00
Benjamin Altpeter
93eb216ca8 js: Support JSX and JSXImportSourceOptions
Fixes #12118
2024-02-23 10:25:27 +01:00
Bjørn Erik Pedersen
f7436b6a31 Merge commit '2658a71e1b6fe24a8b754a62ce0398a09d270d86' 2024-02-19 18:59:28 +01:00
Bjørn Erik Pedersen
da2d6ba11c docs: Regen docshelper 2024-02-18 13:20:15 +01:00
Joe Mooring
8c46b304a0
Correct description of build options > render > link 2024-02-15 10:40:34 -08:00
Joe Mooring
f57932df12
Fix front matter example 2024-02-15 08:50:52 -08:00
Joe Mooring
a7e5fea730
Clarify pagination restriction 2024-02-13 08:51:16 -08:00
cmahnke
3a7e665dbf
Fix typos 2024-02-13 06:30:29 -08:00
Joe Mooring
f608452492
List translation keys reserved by nicksnyder/go-i18n 2024-02-12 11:11:18 -08:00
Joe Mooring
411374a589 Add images.Dither filter
Closes #8598
2024-02-11 22:51:11 +02:00
Rosano
94f2a36081
Fix typo 2024-02-11 11:43:11 -08:00
Bjørn Erik Pedersen
2da1198ac6
Update FNV32a.md: new-in 0.98.0 2024-02-11 18:55:22 +02:00
Sav Tripodi
d9a4c66aef
Fix typo data-templates.md 2024-02-09 09:10:18 -08:00
Alan Guedes
0d3c2e2c32 Update partials.md
Small typo "*"
2024-02-08 13:07:02 +01:00
Alan Guedes
d7e9a08782 Update partials.md 2024-02-08 12:33:19 +01:00
Bjørn Erik Pedersen
36937d58d3 docs: Regen CLI docs 2024-02-07 20:49:52 +01:00
Bjørn Erik Pedersen
7c4b773176 docs: Regenerate docshelper 2024-02-07 20:48:25 +01:00
Bjørn Erik Pedersen
a9f56bf9b0 Merge commit '6efb279bfacbd7304cef994be8181c6f804e7dd4' 2024-02-07 20:46:41 +01:00
Andreas Deininger
a9584e3d14
ci: bump GitHub workflow actions to latest versions 2024-02-06 07:53:35 -08:00
Joe Mooring
f37ee374d5
Fix methods related to time.After 2024-02-05 07:44:44 -08:00
Joe Mooring
a49214057c
Correct heading render hook example 2024-02-04 14:15:02 -08:00
Joe Mooring
4b696f936d
Update README.md 2024-02-03 12:26:36 -08:00
Joe Mooring
b5a6e40391
Clean up the contributing section 2024-02-03 12:22:41 -08:00
Ken Morse
a5d79ed191 Fixed typo: instea → instead 2024-02-03 20:12:55 +01:00
Joe Mooring
6150a60e32
Remove the "local file templates" page 2024-02-03 10:19:00 -08:00
Joe Mooring
9395743dc7
Update/vendor theme 2024-02-01 10:34:30 -08:00
Bjørn Erik Pedersen
b3346da539 docs: Make null booleans falsy in the docs helper 2024-01-31 12:34:28 +01:00
Bjørn Erik Pedersen
88286d1eae docs: Regen docs helper 2024-01-31 09:45:35 +01:00
Joe Mooring
33d8c10ccb
Remove output format "name" parameter 2024-01-30 13:56:15 -08:00
Joe Mooring
7200ad97d0
Add security section to resources.GetRemote page 2024-01-29 17:52:13 -08:00
Joe Mooring
3f1e056b2f
Remove erroneous front matter field
Fixes #2418
2024-01-29 04:18:30 -08:00
Joe Mooring
07c9a7e42b
Add alpha index to glossary 2024-01-28 15:44:19 -08:00
Joe Mooring
6619c8aa03
Fix Page.Params example 2024-01-28 13:30:07 -08:00
Joe Mooring
145a923598
Simplify string concat example in math.Add 2024-01-28 08:45:52 -08:00
Joe Mooring
42488bb097
Add string concat example to math.Add 2024-01-28 08:42:30 -08:00
Joe Mooring
eb20521a20
Fix flash of unstyled content with mathematical markup 2024-01-27 12:44:41 -08:00
Oleksandr Redko
74603bebeb
Fix typo in 'typesetting' 2024-01-27 09:53:56 -08:00