index.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {% extends "base.html" %}
  2. {% block title %}
  3. {{ super() }}
  4. {% endblock title %}
  5. {% block head_description %}
  6. Home page of the {{ SITENAME|striptags }} blog.
  7. {% endblock head_description %}
  8. {% block content %}
  9. <div class="row-fluid">
  10. {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.title %}
  11. <header class="page_header span12">
  12. <h1><a href="{{ SITEURL }}">{{ LANDING_PAGE_ABOUT.title }}</a></h1>
  13. </header>
  14. {% endif %}
  15. <div class="row-fluid">
  16. {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.details %}
  17. <div class="span8">
  18. <header>
  19. <h1 id="about-me">About me</h1>
  20. </header>
  21. <div class="article-content">
  22. {{ LANDING_PAGE_ABOUT.details }}
  23. </div>
  24. </div>
  25. {% endif %}
  26. {% if PROJECTS %}
  27. <div class="span4">
  28. <header>
  29. <h1 id="my-projects">My Projects</h1>
  30. {% for project in PROJECTS %}
  31. <ul class="list-all-articles">
  32. <li>
  33. <a href="{{ project.url }}" title="{{ project.name }}">{{ project.name }}</a> <span class="proj_desc">{{ project.description }}</span>
  34. </li>
  35. </ul>
  36. {%endfor %}
  37. </div>
  38. {% endif %}
  39. </div>
  40. {% if articles %}
  41. <div class="row-fluid">
  42. <div class="span12">
  43. <header>
  44. <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/archives.html">all posts</a></h1>
  45. </header>
  46. {% for article in articles %}
  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 %}