feat: convert all files to esm
This commit is contained in:
parent
ef6923ece6
commit
e8fd3a17d2
34 changed files with 202 additions and 228 deletions
|
@ -1,4 +1,4 @@
|
|||
const postsByTag = (collection) => {
|
||||
export const postsByTag = (collection) => {
|
||||
const posts = collection.getFilteredByTag("post");
|
||||
|
||||
const postsByTag = {};
|
||||
|
@ -13,7 +13,7 @@ const postsByTag = (collection) => {
|
|||
return postsByTag;
|
||||
};
|
||||
|
||||
const catalogueByType = (collection) => {
|
||||
export const catalogueByType = (collection) => {
|
||||
const allItems = collection.getFilteredByTag("catalogue");
|
||||
|
||||
const catalogueByType = {};
|
||||
|
@ -28,8 +28,3 @@ const catalogueByType = (collection) => {
|
|||
|
||||
return catalogueByType;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
catalogueByType,
|
||||
postsByTag,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue