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

Add support for external canonical URL #33

Merged
merged 7 commits into from
Apr 14, 2021
Merged

Add support for external canonical URL #33

merged 7 commits into from
Apr 14, 2021

Conversation

jorritfolmer
Copy link
Contributor

Why? Because it wasn't possible to syndicate third party content or include your own blog posts already hosted elsewhere. This adds a new "Canonical:" or ":canonical:" metadata field so you can set canonical to an external URL.

Why? Because it wasn't possible to syndicate third party content or include your own blog posts already hosted elsewhere. This adds a new "Canonical:" or ":canonical:" metadata field so you can set canonical to an external URL.
Copy link
Collaborator

@MaevaBrunelles MaevaBrunelles left a comment

Choose a reason for hiding this comment

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

Hi @jorritfolmer,

Many thanks for your contribution! It's indeed a missing feature.

I let you some thoughts.
About the metadata name, I would go for external_canonical to avoid confusion with the generated internal canonical.
About the test comment, don't be afraid about the parametrize thought, I believe that the most important is to add a test at SEO enhancer level (before HTML generation).

If some points are not clear, don't hesitate to tell me!

CHANGELOG.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
pelican/plugins/seo/seo_enhancer/html_enhancer/__init__.py Outdated Show resolved Hide resolved
pelican/plugins/seo/tests/conftest.py Outdated Show resolved Hide resolved
pelican/plugins/seo/tests/test_seo_enhancer.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
pelican/plugins/seo/seo_enhancer/html_enhancer/__init__.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@MaevaBrunelles MaevaBrunelles left a comment

Choose a reason for hiding this comment

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

I'm ok with the feature. If it makes sens to you too, you can update the typos and the declaration of save_as. Your PR will be merged after!

jorritfolmer and others added 5 commits April 14, 2021 08:37
Co-authored-by: Maëva Brunelles <[email protected]>
Co-authored-by: Maëva Brunelles <[email protected]>
Co-authored-by: Maëva Brunelles <[email protected]>
Co-authored-by: Maëva Brunelles <[email protected]>
@MaevaBrunelles MaevaBrunelles merged commit e821af9 into pelican-plugins:master Apr 14, 2021
@MaevaBrunelles
Copy link
Collaborator

Again many thanks for your contribution 💯

MaevaBrunelles added a commit that referenced this pull request Apr 14, 2021
Add support for external canonical URL
@jorritfolmer jorritfolmer deleted the canonical branch April 19, 2021 12:21
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