jpescador / hugo-future-imperfect

A ported theme with some extras for the Hugo static website engine
MIT License
308 stars 227 forks source link

Add trailing slash to category links in blog posts #147

Open rlees85 opened 6 years ago

rlees85 commented 6 years ago

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):

Screenshots (if appropriate):

Types of changes

Checklist:

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