2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 21:16:45 +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
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
2 changed files with 10 additions and 2 deletions

View File

@ -33,8 +33,7 @@ collections:
permalink: "/:title"
repo:
output: true
custom_permalink_placeholders: ["publisher"]
#permalink: "/:publisher/:title"
permalink: ":author/:title"
news:
output: true
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