2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-13 02:25:31 +00:00

change permalink to fit githubs model

This commit is contained in:
Matthias Mair
2023-01-27 16:32:21 +01:00
parent b2c4c19846
commit 0873704003
2 changed files with 10 additions and 2 deletions

View File

@ -33,8 +33,7 @@ collections:
permalink: "/:title" permalink: "/:title"
repo: repo:
output: true output: true
custom_permalink_placeholders: ["publisher"] permalink: ":author/:title"
#permalink: "/:publisher/:title"
news: news:
output: true output: true
permalink: /news/:year/:month/:day/:title permalink: /news/:year/:month/:day/:title

View File

@ -0,0 +1,9 @@
module Jekyll
module Drops
class UrlDrop < Drop
def author
@obj.author
end
end
end
end