buster icon indicating copy to clipboard operation
buster copied to clipboard

sitemap

Open ghost opened this issue 9 years ago • 2 comments

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)

ghost avatar Jun 20 '15 19:06 ghost

@spirogov Fork the repo and make a pull request.

bheru27 avatar Dec 14 '15 20:12 bheru27

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

SergeyPirogov avatar Dec 14 '15 21:12 SergeyPirogov