Skip to content
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

refactor!: move favicon site param to page param #41

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

cjshearer
Copy link
Owner

This commit moves and renames .Site.params.faviconEmojiTemplate to
.Page.params.faviconText. This both clarifies that the parameter accepts any text - not necessarily an emoji, as well as furthering a wider effort to make this page fully configurable from one location.

  • refactor: move favicon template to head partial

We move the favicon svg template to the head partial, since it will never be used anywhere else.

  • fix: bust favicon cache during development

While using hugo server, the first generated favicon would cached and used for the duration. We now name the generated resource with its md5 hash to prevent this.

This commit moves and renames
`.Site.params.faviconEmojiTemplate` to
`.Page.params.faviconText`. This both clarifies
that the parameter accepts any text - not
necessarily an emoji, as well as furthering a
wider effort to make this page fully configurable
from one location.

* refactor: move favicon template to head partial

We move the favicon svg template to the head
partial, since it will never be used anywhere
else.

* fix: bust favicon cache during development

While using `hugo server`, the first generated
favicon would cached and used for the duration. We
now name the generated resource with its md5 hash
to prevent this.
@cjshearer cjshearer merged commit cd1d6f6 into main Feb 12, 2024
2 checks passed
@cjshearer cjshearer deleted the refactor/favicon-svg branch February 12, 2024 16:38
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.

None yet

1 participant