Mercurial > piecrust2
comparison piecrust/processing/sitemap.py @ 234:1c4078ec3011
sitemap: Fixed typo bug.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 14 Feb 2015 08:37:00 -0800 |
parents | ab6e7e0e9d44 |
children | 7081a5f88e10 |
comparison
equal
deleted
inserted
replaced
233:4379d8f8f831 | 234:1c4078ec3011 |
---|---|
72 t = page.datetime.timestamp() | 72 t = page.datetime.timestamp() |
73 sm_cfg = page.config.get('sitemap') | 73 sm_cfg = page.config.get('sitemap') |
74 | 74 |
75 args = {'url': uri, 'lastmod': strftime_iso8601(t)} | 75 args = {'url': uri, 'lastmod': strftime_iso8601(t)} |
76 if sm_cfg: | 76 if sm_cfg: |
77 args.update(cm_cfg) | 77 args.update(sm_cfg) |
78 | 78 |
79 self._writeEntry(args, fp) | 79 self._writeEntry(args, fp) |
80 | 80 |
81 def _writeEntry(self, args, fp): | 81 def _writeEntry(self, args, fp): |
82 fp.write(SITEURL_HEADER) | 82 fp.write(SITEURL_HEADER) |