def __init__(self): self._tags_dict = {} self._output = self.get('json', self.prefix_dest('tags.json')) for post in g.public_posts: for tag in post.tags: tag = tag.lower() if tag not in self._tags_dict: self._tags_dict[tag] = [] self._tags_dict[tag].append({ 'title': post.title, 'url': '/' + get_post_destination(post, settings.config['permalink']), 'datetime': xmldatetime(post.date) })
def _dest_of(self, post): dest = get_post_destination(post, settings.config['permalink']) return os.path.join(g.output_directory, dest)
def _dest_of(self, post): dest = get_post_destination(post, settings.permalink) return os.path.join(g.output_directory, dest)