From ddeed15ed5a909bd9e99e62b614389257c7c2ace Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sat, 28 Jan 2023 00:36:51 +0100 Subject: [PATCH] fix pattern --- _config.yml | 2 +- _plugins/author_permalink.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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