#638 - Hexo draft folder support

This commit is contained in:
Elio Struyf
2023-09-13 14:38:28 +02:00
parent 57960120a4
commit fdb4a0892c
3 changed files with 25 additions and 5 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export default function usePages(pages: Page[]) {
let pagesToShow: Page[] = Object.assign([], searchedPages);
// Framework specific actions
if (framework?.toLowerCase() === 'jekyll') {
if (framework?.toLowerCase() === 'jekyll' || framework?.toLowerCase() === 'hexo') {
pagesToShow = pagesToShow.map((page) => {
// https://jekyllrb.com/docs/posts/#drafts
const filePath = parseWinPath(page.fmFilePath);