~will-clarke/super-simple-static-site-generator

8640917e8574ccd3db5dda37823ab0530214d483 — William Clarke 1 year, 8 months ago de200ae
Copy all html files directly over to dst
1 files changed, 1 insertions(+), 3 deletions(-)

M ssssg
M ssssg => ssssg +1 -3
@@ 14,6 14,7 @@ main() {
    touch src/config.yaml src/_top.html src/_bottom.html src/_header.html \
        src/index.md src/posts.md src/tags
    cp src/*md tmp/
    cp src/*{html,txt} dst/

    # Generate tmp/posts/*.md, tmp/index.md, tmp/posts.md, tmp/tags.md,
    # tmp/tags/example-tag.md files, using our posts as a source


@@ 42,9 43,6 @@ main() {

    cp -R src/css/. dst/css/.

    # copy over the robots.txt file if there is one.
    test -f src/robots.txt && cp src/robots.txt dst/robots.txt

    # create a super-simple sitemap of all html files.
    for file in dst/**/*.html; do
        add_to_sitemap "$file"