Skip to content

Nicer year range in copyright note - #25

Open
alfonsomunozpomer wants to merge 2 commits into
marketempower:masterfrom
alfonsomunozpomer:nicer-copyright-years
Open

Nicer year range in copyright note#25
alfonsomunozpomer wants to merge 2 commits into
marketempower:masterfrom
alfonsomunozpomer:nicer-copyright-years

Conversation

@alfonsomunozpomer

Copy link
Copy Markdown
Contributor

Only display a year range in the copyright footer note if params.copyrightYear is less than the current year (UTC). Otherwise only the current year will be shown.

Comment thread layouts/partials/footer.html Outdated
</div>
{{- $currentYear := dateFormat "2006" now.UTC }}
&#169; {{ if lt .Site.Params.copyrightYear $currentYear }}{{ .Site.Params.copyrightYear }}-{{ end }}{{ $currentYear }} {{ $copyright }}
</div$>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You have a stray $ in the closing </div>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops! Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants