Change Archives URL

I would like to change the URL of the archive, but I can't find a way to do it. Instead of url/archives, I want the archive website to be accessible at url/blog. How can I change this?

7 replies

Hello! This is very possible. You will first need to fork an editable copy of your template, if you haven't done so already. Then follow these steps:

  1. Open the template's package.json file
  2. Change the url parameter of the archives.html property from /archives to /blog. The relevant section will look something like this:
    "archives.html": {
      "url": "/archives",
      "partials": {
        ...
      }
    },

Don't forget to also change the link on your menu from /archives to /blog.

Does that solve the problem? Please let me know if you have any questions about this or anything else.

Answered 2 years ago · Improve this answer

Is this how you would change the url structure for tagged items too? I'm migrating from Squarespace, which used the domain/blog/tag/tag-name structure and I want to preserve those links. Can I set that structure up here, too?

Answered 4 months ago · Improve this answer

This won't work for tagged pages unfortunately, since the format of those URLs cannot be changed at the moment, although I plan to make this possible in future. In the meantime, I would set up a general purpose redirect using RegEx from:

/blog/tag/tag-name

to:

/tagged/tag-name

Does that help?

Answered 4 months ago · Improve this answer

I'm not super familiar with RegEx syntax. I've tried this combo, but it didn't work. Any ideas?

Could you put me on a list to know when that format can be changed?

Answered 4 months ago · Improve this answer

This should work:

from: /blog/tag/(.*)

to: /tagged/$1

If you send us an email we'll notify you and follow up here when you can customize the tag URL.

Answered 4 months ago · Improve this answer
Answered 4 months ago · Improve this answer
Answered 4 months ago · Improve this answer

Markdown allowed
Question or feedback?
Contact us

Tags

developers 28 questions bug 14 questions posts 9 questions resolved 7 questions request 6 questions google-drive 5 questions configure 4 questions pages 3 questions added 3 questions meta 3 questions More tags →
Subscribe for changes
RSS Feed of latest questions