Created
October 21, 2019 04:36
-
-
Save ahmetb/e40448751be7f2dd9faf2a05af6f9d1d to your computer and use it in GitHub Desktop.
convert pelican frontmatter (YAML) to hugo (YAML) by adding --- separators
This file contains 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
# prepend --- to every doc | |
sed -i '1i---' *.md | |
# append --- to first empty line (\n\n) | |
# (use GNU sed) | |
sed -i '0,/^$/s//---\n/' *.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment