Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

fix: blog permalinks that work on IPNS #182

Merged
merged 2 commits into from
Nov 4, 2018

Conversation

lidel
Copy link
Collaborator

@lidel lidel commented Oct 5, 2018

Context: ipfs-inactive/website#274 (comment) + ipfs-inactive/website#275

This PR changes default URL used in permalinks in https://blog.ipfs.io/index.json and https://blog.ipfs.io/index.xml from https://ipfs.io/blog/ to https://blog.ipfs.io.

Small change but makes:

  • blog permalinks work when loaded via IPNS
  • blog.ipfs.io/index.json and RSS feed useful on ipfs.io even when loaded over IPNS, solving errors like the one below:

    2018-10-05--01-32-46

It should be safe to do this, as those are used only in:

  • RSS and JSON outputs
  • meta headers for Facebook embeds

Closes #145

@lidel
Copy link
Collaborator Author

lidel commented Nov 4, 2018

I also added rel="canonical" link tag to every blog post.

This is a neat SEO optimization: search engines will choose one URL as
the canonical version and crawl that, and all other URLs will be
considered duplicate URLs and crawled less often.

In our case all versions hosted from /ipns/blog.ipfs.io/ at public
gateways will be marked as duplicate and merged adding SEO juice to the
canonical URL.

More: https://support.google.com/webmasters/answer/139066?hl=en

@daviddias
Copy link
Contributor

ping @ipfs/infrastructure Team

This is a neat SEO optimization: search engines will choose one URL as
the canonical version and crawl that, and all other URLs will be
considered duplicate URLs and crawled less often.

In our case all versions hosted from /ipns/blog.ipfs.io/* at public
gateways will be marked as duplicate and merged adding SEO juice to the
canonical URL.

More:
https://support.google.com/webmasters/answer/139066?hl=en
Copy link
Contributor

@kyledrake kyledrake left a comment

Choose a reason for hiding this comment

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

LGTM, feel free to merge.

@daviddias daviddias merged commit 9856b89 into ipfs-inactive:master Nov 4, 2018
@ghost ghost removed status/in-progress In progress stage: skeleton labels Nov 4, 2018
@lidel lidel deleted the fix/permalinks-on-ipns branch November 4, 2018 21:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants