Skip to content
Permalink
Browse files

Engine tags

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Feb 22, 2017
1 parent 6998ef9 commit d089e55e7e4db0a4cbe4115b353ffb1e80226688
Showing with 26 additions and 2 deletions.
  1. +2 −1 site/conf.py
  2. +10 −0 site/pages/jinja.rst
  3. +10 −0 site/pages/mako.rst
  4. +1 −1 site/plugins/pkgindex_compiler/pkgindex_compiler.py
  5. +3 −0 site/state_data.json
@@ -63,7 +63,8 @@

themes_submenu = (
('/', 'Themes Home'),
('/categories/', 'Categories'),
('/mako/', 'Mako'),
('/jinja/', 'Jinja2'),
('/v7/', 'Version 7'),
)

@@ -0,0 +1,10 @@
.. title: Jinja2 themes
.. slug: jinja
.. date: 1970-01-01 00:00:00 UTC
.. category: engine_page
.. post-list::
:sort: slug
:tags: theme, jinja
:post_type: pages
:template: theme_list.tmpl
@@ -0,0 +1,10 @@
.. title: Mako themes
.. slug: mako
.. date: 1970-01-01 00:00:00 UTC
.. category: engine_page
.. post-list::
:sort: slug
:tags: theme, mako
:post_type: pages
:template: theme_list.tmpl
@@ -143,7 +143,6 @@ def parse_theme_info(post, pkg_dir, config):
theme = os.path.basename(pkg_dir)
data = {}
data['name'] = theme
data['tags'] = 'theme'
out_path = post.folder_relative + '/' + theme
demo_dir = config['demo_screenshots_map'].get(out_path, out_path)
data['previewimage'] = '/' + demo_dir + '.png'
@@ -182,6 +181,7 @@ def parse_theme_info(post, pkg_dir, config):
'bootstrap3-jinja' in data['chain'] or
'bootstrap3' in data['chain']) and
'bootstrap3-gradients' not in data['chain'])
data['tags'] = 'theme,' + data['engine']

return data

@@ -0,0 +1,3 @@
{
"last_deploy": "2017-02-22T16:52:31.760687"
}

0 comments on commit d089e55

Please sign in to comment.
You can’t perform that action at this time.