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

Correct Canonicals #78

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Conversation

hatdropper1977
Copy link
Contributor

The old version of Attila Hard Codes the Canonical values for the Categories, Authors and Tags pages.

This PR uses the CATEGORIES_SAVE_AS, AUTHORS_SAVE_AS and TAGS_SAVE_AS values set in pelicanconf.py.

For example:

{% block canonical_url %}<link href="{{ SITEURL }}/authors" rel="canonical" />{% endblock canonical_url %}

Becomes:

{% block canonical_url %}<link href="{{ SITEURL }}/{{ AUTHORS_SAVE_AS }}" rel="canonical" />{% endblock canonical_url %}

@arulrajnet
Copy link
Owner

Thanks @hatdropper1977

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

2 participants