index.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. </header>
  28. {% for project in PROJECTS %}
  29. <ul class="list-all-articles">
  30. <li>
  31. <a href="{{ project.url }}" title="{{ project.name }}">{{ project.name }}</a> <span class="proj-desc">{{ project.description }}</span>
  32. </li>
  33. </ul>
  34. {%endfor %}
  35. </div>
  36. {% endif %}
  37. </div>
  38. {% if articles %}
  39. <div class="row-fluid">
  40. <div class="span12">
  41. <header>
  42. <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/archives.html">all posts</a></h1>
  43. </header>
  44. <div class="recent-posts">
  45. {% for article in articles %}
  46. {% if not RECENT_ARTICLES_COUNT %}
  47. {% set RECENT_ARTICLES_COUNT = 10 %}
  48. {% endif %}
  49. {% if loop.index0 < RECENT_ARTICLES_COUNT %}
  50. <article>
  51. <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a>
  52. <section>
  53. posted in
  54. <a href="{{ SITEURL }}/categories.html#{{ article.category.slug }}-ref">{{ article.category }}</a>
  55. <div class="recent-posts-time">
  56. <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
  57. </div>
  58. </section>
  59. </article>
  60. {% endif %}
  61. {% endfor %}
  62. </div>
  63. </div>
  64. </div>
  65. {% endif %}
  66. </div>
  67. {% endblock content %}