Last active
December 15, 2015 20:29
-
-
Save mpicker0/5319122 to your computer and use it in GitHub Desktop.
Using a stylesheet also on Gist, batch convert all my GetSimple CMS XML files to Jekyll HTML files.
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
#!/usr/bin/env bash | |
for xmlfile in *xml | |
do | |
basename=${xmlfile%.*} | |
xsltproc ~/gs_to_jekyll.xsl ${xmlfile} \ | |
| perl -MHTML::Entities -ne 'print decode_entities($_)' \ | |
> /tmp/pages/${basename}.html | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the stylesheet: gs_to_jekyll.xsl