index.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. {% set css_class = 'span10 offset2' %}
  9. {% if PROJECTS and LANDING_PAGE_ABOUT %}
  10. {% set css_class = 'span12' %}
  11. {% endif %}
  12. <header class="page-header {{css_class}}">
  13. <h1><a href="{{ SITEURL }}">{{ LANDING_PAGE_ABOUT.title }}</a></h1>
  14. </header>
  15. {% endif %}
  16. <div class="row-fluid">
  17. {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.details %}
  18. {% set css_class = 'span8 offset2' %}
  19. {% if PROJECTS and LANDING_PAGE_ABOUT %}
  20. {% set css_class = 'span8' %}
  21. {% endif %}
  22. <div class="{{css_class}}">
  23. <header>
  24. <h1 id="about-me">About me</h1>
  25. </header>
  26. <div class="article-content">
  27. {{ LANDING_PAGE_ABOUT.details }}
  28. </div>
  29. </div>
  30. {% endif %}
  31. {% if PROJECTS %}
  32. {% set css_class = 'span8 offset2' %}
  33. {% if PROJECTS and LANDING_PAGE_ABOUT %}
  34. {% set css_class = 'span4' %}
  35. {% endif %}
  36. <div class="{{css_class}}">
  37. <header>
  38. <h1 id="my-projects">My Projects</h1>
  39. </header>
  40. {% for project in PROJECTS %}
  41. <ul class="list-all-articles">
  42. <li>
  43. <a href="{{ project.url }}" title="{{ project.name }}">{{ project.name }}</a> <span class="proj-desc">{{ project.description }}</span>
  44. </li>
  45. </ul>
  46. {%endfor %}
  47. </div>
  48. {% endif %}
  49. </div>
  50. {% if articles %}
  51. {% set css_class = 'span8 offset2' %}
  52. {% if articles and PROJECTS and LANDING_PAGE_ABOUT %}
  53. {% set css_class = 'span12' %}
  54. {% endif %}
  55. <div class="row-fluid">
  56. <div class="{{css_class}}">
  57. <header>
  58. <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/archives.html">all posts</a></h1>
  59. </header>
  60. <div class="recent-posts">
  61. {% for article in articles %}
  62. {% from '_includes/_defaults.html' import RECENT_ARTICLES_COUNT with context %}
  63. {% if loop.index0 < RECENT_ARTICLES_COUNT %}
  64. <article>
  65. <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a>
  66. <section>
  67. posted in
  68. <a href="{{ SITEURL }}/categories.html#{{ article.category.slug }}-ref">{{ article.category }}</a>
  69. <div class="recent-posts-time">
  70. <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
  71. </div>
  72. </section>
  73. </article>
  74. {% endif %}
  75. {% endfor %}
  76. </div>
  77. </div>
  78. </div>
  79. {% endif %}
  80. </div>
  81. {% endblock content %}