Skip to content

Commit 9e68559

Browse files
authored
Upgrade Hugo to 0.143.0 and add comment shortcode (#2188)
1 parent 77da7e4 commit 9e68559

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ For the full list of changes, see the [0.x.y] release notes.
4343
- **Blog** section index page content and title used to be ignored, they are now
4444
displayed ([#1787]). To recover the old behavior use the following style
4545
override: `.td-section.td-blog .td-content { display: none; }`.
46+
- Adds a `comment` shortcode, as a drop-in replacement for the on removed from
47+
Hugo.
4648

4749
[0.x.y]: https://github.com/google/docsy/releases/latest?FIXME=v0.X.Y
4850
[#1787]: https://github.com/google/docsy/issues/1787

layouts/shortcodes/comment.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{/* Allows for large segments of Markdown or HTML to be commented out. This was
2+
briefly an internal Hugo template, but it is no more. For details, see:
3+
4+
- https://discourse.gohugo.io/t/deprecate-comment-shortcode/53237
5+
- https://github.com/gohugoio/hugo/pull/13294
6+
7+
*/}}
8+
{{- $noop := .Inner -}}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
},
4141
"devDependencies": {
4242
"cpy-cli": "^5.0.0",
43-
"hugo-extended": "^0.142.0",
44-
"netlify-cli": "^18.0.2",
43+
"hugo-extended": "^0.143.0",
44+
"netlify-cli": "^18.0.3",
4545
"npm-check-updates": "^17.1.14",
4646
"prettier": "^3.4.2"
4747
},

0 commit comments

Comments
 (0)