Skip to content

docsy.dev: set to_year to "present", and shortcode cleanup - #2427

Merged
chalin merged 1 commit into
docsy:mainfrom
chalin:chalin-m24-copyright-year-range-2026-0108
Jan 8, 2026
Merged

chalin merged 1 commit into
docsy:mainfrom
chalin:chalin-m24-copyright-year-range-2026-0108

Conversation

@chalin

@chalin chalin commented Jan 8, 2026 •

Copy link
Copy Markdown
Collaborator
  • Set current year to "present" in the copyright date range
  • Drop informational "warning" from contrib page shortcode.

{{ $postPath := printf "%d/%s" . $version -}}
{{ $blogPage = $blogSection.GetPage $postPath -}}
{{ if $blogPage }}{{ break }}{{ end -}}
{{ warnf "%s: shortcode 'release-summary': Blog post not found for version %q in year %d, path: %q" $version . $postPath -}}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more of an "info" than a warning. Let's just drop it. If the post isn't found, an error is reported via line 27 below.

@chalin
chalin merged commit 5fd8175 into docsy:main Jan 8, 2026
@chalin
chalin deleted the chalin-m24-copyright-year-range-2026-0108 branch January 8, 2026 17:38
@chalin chalin added this to the 0.14.0 milestone Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants