Skip to content
Permalink
Browse files
Stores are called pages nowadays.
  • Loading branch information
felixfontein committed Sep 23, 2018
1 parent 39a71c0 commit 08b2ae5aad4f5a8df03890a1060a063c068de9ea
@@ -3,4 +3,4 @@ COMPILERS["bbcode"] = ('.bb',)

# Add bbcode files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.bb", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.bb", "posts", "post.tmpl"),)
PAGES = PAGES + (("pages/*.bb", "pages", "page.tmpl"),)
@@ -12,7 +12,7 @@ POSTS = (
("posts/*.markdown", "posts", "post.tmpl"),
)
PAGES = (
("stories/*.md", "stories", "story.tmpl"),
("stories/*.mdown", "stories", "story.tmpl"),
("stories/*.markdown", "stories", "story.tmpl"),
("pages/*.md", "pages", "page.tmpl"),
("pages/*.mdown", "pages", "page.tmpl"),
("pages/*.markdown", "pages", "page.tmpl"),
)
@@ -7,5 +7,5 @@ POSTS = (
)
PAGES = (
...
("contentful/pages/*.md", "stories", "story.tmpl"),
("contentful/pages/*.md", "pages", "page.tmpl"),
)
@@ -7,5 +7,5 @@ POSTS = (
)
PAGES = (
...
("dato/pages/*.md", "stories", "story.tmpl"),
("dato/pages/*.md", "pages", "page.tmpl"),
)
@@ -4,4 +4,4 @@ COMPILERS["kramdown"] = ('.kd',)

# Add kramdown files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.kd", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.kd", "posts", "post.tmpl"),)
PAGES = PAGES + (("pages/*.kd", "pages", "page.tmpl"),)
@@ -3,4 +3,4 @@ COMPILERS["markmin"] = ('.mm',)

# Add markmin files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.mm", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.mm", "posts", "post.tmpl"),)
PAGES = PAGES + (("pages/*.mm", "pages", "page.tmpl"),)
@@ -3,4 +3,4 @@ COMPILERS["misaka"] = ('.md',)

# Add markdown files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.md", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.md", "posts", "post.tmpl"),)
PAGES = PAGES + (("pages/*.md", "pages", "page.tmpl"),)
@@ -12,7 +12,7 @@ POSTS = (
("posts/*.markdown", "posts", "post.tmpl"),
)
PAGES = (
("stories/*.md", "stories", "story.tmpl"),
("stories/*.mdown", "stories", "story.tmpl"),
("stories/*.markdown", "stories", "story.tmpl"),
("pages/*.md", "pages", "page.tmpl"),
("pages/*.mdown", "pages", "page.tmpl"),
("pages/*.markdown", "pages", "page.tmpl"),
)
@@ -5,4 +5,4 @@ COMPILERS["orgmode"] = ('.org',)

# Add org files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.org", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.org", "stories", "story.tmpl"),)
PAGES = PAGES + (("pages/*.org", "pages", "page.tmpl"),)
@@ -44,7 +44,7 @@ The plugin generates two files in each language:
page with a slider and list of projects, from template `projects.tmpl`
* projects/projects.json — a JSON file, dict of `{slug: all meta data}`

Project subpage generation is handled by Nikola’s built-in stories framework.
Project subpage generation is handled by Nikola’s built-in pages framework.

Meta fields
-----------
@@ -247,7 +247,7 @@ def _process_post_object(self, post):
digest = self._hash_post_comments(post)
post.add_dependency_uptodate(utils.config_changed({1: digest}, 'nikola.plugins.comments.static_comments:' + post.base_path), is_callable=False, add='page')

def _process_posts_and_stories(self, site):
def _process_posts_and_pages(self, site):
"""Add comments to all posts."""
if site is self.site:
for post in site.timeline:
@@ -257,4 +257,4 @@ def set_site(self, site):
"""Set Nikola site object."""
super(StaticComments, self).set_site(site)
site._GLOBAL_CONTEXT['site_has_static_comments'] = True
blinker.signal("scanned").connect(self._process_posts_and_stories)
blinker.signal("scanned").connect(self._process_posts_and_pages)
@@ -3,4 +3,4 @@ COMPILERS["textile"] = ('.txt',)

# Add textile files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.txt", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.txt", "posts", "post.tmpl"),)
PAGES = PAGES + (("pages/*.txt", "pages", "page.tmpl"),)

0 comments on commit 08b2ae5

Please sign in to comment.