axitkhurana / buster

Brute force static site generator for Ghost
MIT License
800 stars 139 forks source link

sitemap #68

Open ghost opened 9 years ago

ghost commented 9 years ago

I created function for generation sitemaps. Just put it in the end of file and call inside main func

def load_site_map(static_path):
    arguments = docopt(__doc__, version='0.1.3')
    sitemaps = ["sitemap.xml","sitemap-posts.xml","sitemap-authors.xml","sitemap-tags.xml"]
    for sitemap in sitemaps:
        path = os.path.join(static_path, sitemap)
        if os.path.exists(path):
            os.remove(path)
        else:
            print("File not found %s." % path)

        command = ("wget "
                   "--directory-prefix {1} "  # download contents to static/ folder
                   "{0}/{2}").format(arguments['--domain'], static_path,sitemap)
        os.system(command)
bheru27 commented 8 years ago

@spirogov Fork the repo and make a pull request.

SergeyPirogov commented 8 years ago

@bheru27 ok, but who will merge it, as i see this repo is dead?