Skip to content

Commit

Permalink
projectpages: add gallery field
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 6, 2015
1 parent ea80c63 commit 7a2fc0c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions v7/projectpages/README.md
Expand Up @@ -70,6 +70,7 @@ Meta fields
* **github** — GitHub link
* **bitbucket** — BitBucket link
* **bugtracker** — bug tracker link
* **gallery** — screenshot gallery link
* **language** — programming language
* **license** — name of the license under which the project
* **role** — your role in the project. Free-form, sample values include
Expand Down
2 changes: 1 addition & 1 deletion v7/projectpages/projectpages.plugin
Expand Up @@ -7,6 +7,6 @@ MinVersion = 7.1.0+

[Documentation]
Author = Chris Warrick
Version = 0.1.4
Version = 0.1.5
Website = http://plugins.getnikola.com/#projectpages
Description = Generate project pages
3 changes: 3 additions & 0 deletions v7/projectpages/templates/jinja/project.tmpl
Expand Up @@ -67,6 +67,9 @@
{% if post.meta('bitbucket') %}
<a href="{{ post.meta('bitbucket') }}" class="btn btn-lg btn-info"><i class="fa fa-bitbucket"></i> BitBucket</a>
{% endif %}
{% if post.meta('gallery') %}
<a href="{{ post.meta('gallery') }}" class="btn btn-lg btn-success"><i class="fa fa-picture-o"></i> Gallery</a>
{% endif %}
{% if post.meta('bugtracker') %}
<a href="{{ post.meta('bugtracker') }}" class="btn btn-lg btn-warning"><i class="fa fa-bug"></i> Bug Tracker</a>
{% endif %}
Expand Down
3 changes: 3 additions & 0 deletions v7/projectpages/templates/mako/project.tmpl
Expand Up @@ -67,6 +67,9 @@
% if post.meta('bitbucket'):
<a href="${post.meta('bitbucket')}" class="btn btn-lg btn-info"><i class="fa fa-bitbucket"></i> BitBucket</a>
% endif
% if post.meta('gallery'):
<a href="${post.meta('gallery')}" class="btn btn-lg btn-success"><i class="fa fa-picture-o"></i> Gallery</a>
% endif
% if post.meta('bugtracker'):
<a href="${post.meta('bugtracker')}" class="btn btn-lg btn-warning"><i class="fa fa-bug"></i> Bug Tracker</a>
% endif
Expand Down

0 comments on commit 7a2fc0c

Please sign in to comment.