Browse Source

Move PROJECTS to _defaults

Talha Mansoor 11 years ago
parent
commit
d5915c5efd
2 changed files with 19 additions and 0 deletions
  1. 18 0
      templates/_includes/_defaults.html
  2. 1 0
      templates/index.html

+ 18 - 0
templates/_includes/_defaults.html

@@ -118,3 +118,21 @@ LANDING_PAGE_ABOUT = {'title': 'Talha Mansoor',
 {% set LANDING_PAGE_ABOUT = LANDING_PAGE_ABOUT %}
 {% endif %}
 
+{# It is an array of dictionaries. Each distionary has three keys: name, url,
+description.
+PROJECTS = [{
+    'name': 'Logpad + Duration',
+    'url': 'https://github.com/talha131/logpad-plus-duration#logpad--duration',
+    'description': 'Vim plugin to emulate Windows Notepad logging feature,'
+    ' and log duration of each entry'},
+    {'name': 'Elegant Theme for Pelican',
+    'url': 'http://oncrashreboot.com/pelican-elegant',
+    'description': 'A clean and distraction free theme, with search and a'
+    ' lot more unique features, using Jinja2 and Bootstrap'}]
+#}
+{% if not PROJECTS %}
+{% set PROJECTS = '' %}
+{% else %}
+{% set PROJECTS = PROJECTS %}
+{% endif %}
+

+ 1 - 0
templates/index.html

@@ -37,6 +37,7 @@
 
 {% block content %}
 {% from '_includes/_defaults.html' import LANDING_PAGE_ABOUT with context %}
+{% from '_includes/_defaults.html' import PROJECTS with context %}
 <div class="row-fluid">
     {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.title %}
     {% set css_class = 'span10 offset2' %}