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:
parent
b2c4c19846
commit
0873704003
@ -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
|
||||
|
9
_plugins/author_permalink.rb
Normal file
9
_plugins/author_permalink.rb
Normal file
@ -0,0 +1,9 @@
|
||||
module Jekyll
|
||||
module Drops
|
||||
class UrlDrop < Drop
|
||||
def author
|
||||
@obj.author
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user