Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
convert pelican frontmatter (YAML) to hugo (YAML) by adding --- separators
# 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
You can’t perform that action at this time.