diff --git a/_config.yml b/_config.yml index deebff75..78cee2d6 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/_plugins/author_permalink.rb b/_plugins/author_permalink.rb new file mode 100644 index 00000000..50da7af1 --- /dev/null +++ b/_plugins/author_permalink.rb @@ -0,0 +1,9 @@ +module Jekyll + module Drops + class UrlDrop < Drop + def author + @obj.author + end + end + end + end \ No newline at end of file