Skip to content

Commit

Permalink
Expose author as a template variable for file and folder names
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonh committed Sep 6, 2023
1 parent c6b7c80 commit 25fc842
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/settings/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const renderFilename = (
: undefined;
const renderedFilename = Mustache.render(filename, {
title: article.title,
author: article.author ?? "unknown-author",
date,
dateSaved: date,
datePublished,
Expand Down Expand Up @@ -320,6 +321,7 @@ export const renderFolderName = (
date,
dateSaved: date,
datePublished,
author: article.author ?? "unknown-author",
});
};

Expand Down

0 comments on commit 25fc842

Please sign in to comment.