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 trailing slash to category links in blog posts #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add trailing slash to category links in blog posts #147

wants to merge 1 commit into from

Conversation

rlees85
Copy link
Contributor

@rlees85 rlees85 commented Aug 8, 2018

Description

Currently, when rendering blog posts, the category URLs do not include a trailing slash. For example:
http://localhost/categories/banana
http://localhost/categories/apple

This fix simply corrects this:
http://localhost/categories/banana/
http://localhost/categories/apple/

The sidecar category links already include the trailing slash.

Motivation and Context

How Has This Been Tested?

Locally, made change to theme, tested URLs render successfully. They do.

Hugo Version:

$ hugo version
Hugo Static Site Generator v0.46 linux/amd64 BuildDate: 2018-08-02T22:40:09+0200

Browser(s):

  • Chrome
  • Firefox

Screenshots (if appropriate):

Types of changes

  • [*] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

I don't think many of the boxes above are relevant to this change. No documentation required.

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.

1 participant