fix: glob targets
This commit is contained in:
parent
2c4f44eb9a
commit
73d2775836
2 changed files with 3 additions and 5 deletions
|
@ -40,9 +40,7 @@ export const tagMap = (collection) => {
|
|||
|
||||
export const tagsSortedByCount = (collectionApi) => {
|
||||
const tagStats = {};
|
||||
const posts = collectionApi.getFilteredByGlob('src/posts/**/*.md').sort((a, b) => {
|
||||
return a.date - b.date;
|
||||
});
|
||||
const posts = collectionApi.getFilteredByGlob('src/posts/**/*.*').sort((a, b) => a.date - b.date);
|
||||
posts.forEach((post) => {
|
||||
post.data.tags.forEach((tag) => {
|
||||
if (!tagStats[tag]) tagStats[tag] = 1;
|
||||
|
@ -89,7 +87,7 @@ export const postStats = (collectionApi) => {
|
|||
let highPostCount = 0
|
||||
let yearProgress = 0
|
||||
|
||||
const posts = collectionApi.getFilteredByGlob('src/posts/**/*.md').sort((a, b) => {
|
||||
const posts = collectionApi.getFilteredByGlob('src/posts/**/*.*').sort((a, b) => {
|
||||
return a.date - b.date
|
||||
})
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "7.0.1",
|
||||
"version": "7.0.2",
|
||||
"description": "The source for my personal site. Built using 11ty and hosted on Netlify.",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
Reference in a new issue