Joe Mooring
8de4ffb294
tpl/tplimpl: Fix context in shortcode error messages
...
Fixes #13279
2025-01-20 16:17:55 +01:00
Bjørn Erik Pedersen
1fad3832a9
tpl/tplimpl: Simplify some test assertions
2025-01-16 11:29:24 +01:00
Joe Mooring
1191467c05
tpl/tplimpl: Deprecate twitter shortcode in favor of x shortcode
...
Closes #13214
2025-01-16 10:33:34 +01:00
Joe Mooring
b13d0a68e6
tpl/images: Change signature of images.QR to images.QR TEXT OPTIONS
...
Closes #13230
2025-01-08 19:59:39 +01:00
Bjørn Erik Pedersen
5f2adad2c7
tpl/images: Format the QR hashes as hex
...
Slightly shorter, and it looks more like a ... hash.
2025-01-06 15:05:03 +01:00
Joe Mooring
4ea94c451d
tpl/images: Add images.QR function
...
Closes #13205
2025-01-06 12:05:59 +01:00
Bjørn Erik Pedersen
a5e5be234c
Fix panic on server rebuilds when using both base templates and template.Defer
...
Fixes #12963
2024-12-16 18:03:04 +01:00
Joe Mooring
a32c889a7b
tpl/tplimpl: Fix title attribute in details shortcode
2024-12-13 10:50:17 -08:00
Joe Mooring
1e34e5b26d
tpl/tplimpl: Update details shortcode
...
- Remove localization of default summary value
- Add title attribute
- Reformat to be consistent with other embedded templates
- Simplify and improve integration test
- Update documentation
2024-12-13 14:21:13 +01:00
racehd
4f130f6e4f
tpl/tplimpl: Add details shortcode
...
- Add new shortcode to render details HTML element.
- Implement integration tests to check: default state, custom summary, open state, attribute sanitization, allowed attributes, and localization of default summary text.
- Update docs to include details shortcode.
Closes # 13090
2024-12-13 09:24:20 +01:00
Joe Mooring
801035bb7a
tpl/tplimpl: Create an embedded comment shortcode
...
Closes #13010
2024-11-04 21:05:07 +01:00
Bjørn Erik Pedersen
2168c5b125
Upgrade to Go 1.23
...
Fixes #12763
2024-08-15 10:18:19 +02:00
Joe Mooring
74ab839ccb
tpl/tplimpl: Plainify title and description in twitter_cards.html
...
Closes #12433
Improves #10900
2024-05-14 14:45:04 +02:00
Joe Mooring
92290aa892
tpl/tplimpl: Plainify title and description in schema.html
...
Closes #12432
2024-05-14 14:18:49 +02:00
Joe Mooring
87ab7f7ffc
tpl/tplimpl: Improve locale value in opengraph.html
...
Closes #12480
2024-05-14 10:24:17 +02:00
Joe Mooring
fb51b698b3
tpl/tplimpl: Fix double-escaping in opengraph template
...
Closes #12418
2024-04-25 10:03:17 +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
2a0329423c
testing: Rename integration_test.go to PACKAGE_integration_test.go
...
Primary motivation making them easier to find in the code editor.
2024-01-28 11:41:59 +01:00