-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support date range in footer copyright element #1821
Support date range in footer copyright element #1821
Conversation
@emckean - what would be the right starting year for the copyright in the User Guide? |
5572768
to
6589430
Compare
6589430
to
76dda7c
Compare
76dda7c
to
2206e77
Compare
{{ with .Site.Copyright -}} | ||
<span class="td-footer__copyright"> | ||
{{- . | $page.RenderString -}} | ||
</span> | ||
{{- end -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @chalin,
What’s the rationale behind this change (previously it was {{ with .Site.Copyright }}{{ . | safeHTML }}{{ end }}
)? I’m worried that it makes it difficult to include HTML badges like the ones generated from https://chooser-beta.creativecommons.org/.
Hi @chalin, friendly ping as I don’t know if you received a notification for my question above? |
Thanks for the ping @yann-soubeyrand -- I'll get back to you |
Thanks! In the meantime, I found how to achieve what I needed by putting this in my config:
I’m using AsciiDoc and |
@yann-soubeyrand: My rational was to make processing consistent across alternatives, but it doesn't really need to be consistent -- I can claim backwards compatibility for |
User Guide screenshots
Wide screen:
Narrow screen: