diff --git a/_config.yml b/_config.yml index 78cee2d6..27354bd0 100644 --- a/_config.yml +++ b/_config.yml @@ -33,7 +33,7 @@ collections: permalink: "/:title" repo: output: true - permalink: ":author/:title" + permalink: ":doc_author/:title" news: output: true permalink: /news/:year/:month/:day/:title diff --git a/_plugins/author_permalink.rb b/_plugins/author_permalink.rb index 50da7af1..81febb1b 100644 --- a/_plugins/author_permalink.rb +++ b/_plugins/author_permalink.rb @@ -1,8 +1,8 @@ module Jekyll module Drops class UrlDrop < Drop - def author - @obj.author + def doc_author + @obj.data['author'] end end end