Last active
November 11, 2020 17:59
-
-
Save dbauszus-glx/21b26026b298932b61530cb20ed74de8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_collection.forEach(entry => { | |
const path = entry.inputPath.split('/') | |
entry.data.lv = path.length - 2 | |
entry.data.group && entry.data.lv-- | |
entry.data.tag = entry.data.tags && entry.data.tags[0] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment