index.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {% extends "base.html" %}
  2. {% block title %}
  3. {{ super() }}
  4. {% endblock title %}
  5. {% block content %}
  6. <div class="row-fluid">
  7. {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.title %}
  8. <header class="page_header span12">
  9. <h1><a href="{{ SITEURL }}">{{ LANDING_PAGE_ABOUT.title }}</a></h1>
  10. </header>
  11. {% endif %}
  12. <div class="row-fluid">
  13. {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.details %}
  14. <div class="span8">
  15. <header>
  16. <h1 id="about-me">About me</h1>
  17. </header>
  18. <div class="article-content">
  19. {{ LANDING_PAGE_ABOUT.details }}
  20. </div>
  21. </div>
  22. {% endif %}
  23. {% if PROJECTS %}
  24. <div class="span4">
  25. <header>
  26. <h1 id="my-projects">My Projects</h1>
  27. {% for project in PROJECTS %}
  28. <ul class="list-all-articles">
  29. <li>
  30. <a href="{{ project.url }}" title="{{ project.name }}">{{ project.name }}</a> <span class="proj_desc">{{ project.description }}</span>
  31. </li>
  32. </ul>
  33. {%endfor %}
  34. </div>
  35. {% endif %}
  36. </div>
  37. {% if articles %}
  38. <div class="row-fluid">
  39. <div class="span12">
  40. <header>
  41. <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/archives.html">all posts</a></h1>
  42. </header>
  43. {% for article in articles %}
  44. {% if not RECENT_ARTICLES_COUNT %}
  45. {% set RECENT_ARTICLES_COUNT = 10 %}
  46. {% endif %}
  47. {% if loop.index0 < RECENT_ARTICLES_COUNT %}
  48. <ul class="list-all-articles">
  49. <li>
  50. <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a>
  51. <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
  52. </li>
  53. </ul>
  54. {% endif %}
  55. {% endfor %}
  56. </div>
  57. </div>
  58. {% endif %}
  59. </div>
  60. {% endblock content %}