Skip to content

Loading…

make category url and tag url lower case #70

Closed
ohsc opened this Issue · 3 comments

3 participants

@ohsc

This is friendly to case-sensitive server.

@chrisyip

Modify your theme templates, e.g. _widget/category.ejs, add toLowerCase():

<% site.categories.each(function(item){ %>
  <li><a href="<%- config.root %><%- item.path.toLowerCase() %>"><%= item.name %></a><small><%= item.length %></small></li>
<% }); %>
@ohsc

This does not solve the problem fundamentally

@chrisyip chrisyip added a commit to chrisyip/hexo that referenced this issue
@chrisyip chrisyip #70 add case option for writing files and folders f63e1d4
@chrisyip

Usage:

Add filename_case to site `_config.yml:

# assign 1 for lower case, 2 for upper case, otherwise do nothing
filename_case: 1
@tommy351 tommy351 added a commit that referenced this issue
@tommy351 tommy351 New setting: "filename_case" #70 #81
1: Transform link into lower case
2: Transform link into upper case
8af44a6
@tommy351 tommy351 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.