index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {% extends 'base.html' %}
  2. {% block title %}
  3. {{ super() }}
  4. {% endblock title %}
  5. {% block meta_tags_in_head %}
  6. {{ super() }}
  7. {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.details %}
  8. <meta property="og:title" content="{{ LANDING_PAGE_ABOUT.title }}"/>
  9. <meta name="twitter:title" content="{{ LANDING_PAGE_ABOUT.title }}">
  10. {% else %}
  11. <meta property="og:title" content="{{ SITENAME|striptags }}"/>
  12. <meta name="twitter:title" content="{{ SITENAME|striptags }}">
  13. {% endif %}
  14. <meta property="og:type" content="article" />
  15. <meta property="og:url" content="{{ SITEURL }}" />
  16. {% if SITE_DESCRIPTION %}
  17. <meta property="og:description" content="{{SITE_DESCRIPTION}}" />
  18. <meta name="twitter:description" content="{{SITE_DESCRIPTION}}">
  19. {% endif %}
  20. <meta property="og:site_name" content="{{ SITENAME|striptags }}" />
  21. <meta property="og:article:author" content="{{ AUTHOR }}" />
  22. <meta name="twitter:card" content="summary">
  23. {% from '_includes/_defaults.html' import TWITTER_USERNAME with context %}
  24. {%if TWITTER_USERNAME %}
  25. <meta name="twitter:creator" content="@{{TWITTER_USERNAME}}">
  26. {% endif %}
  27. {% endblock meta_tags_in_head %}
  28. {% block content %}
  29. <div class="row-fluid">
  30. {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.title %}
  31. {% set css_class = 'span10 offset2' %}
  32. {% if PROJECTS and LANDING_PAGE_ABOUT %}
  33. {% set css_class = 'span12' %}
  34. {% endif %}
  35. <header class="page-header {{css_class}}">
  36. <h1><a href="{{ SITEURL }}">{{ LANDING_PAGE_ABOUT.title }}</a></h1>
  37. </header>
  38. {% endif %}
  39. <div class="row-fluid">
  40. {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.details %}
  41. {% set css_class = 'span8 offset2' %}
  42. {% if PROJECTS and LANDING_PAGE_ABOUT %}
  43. {% set css_class = 'span8' %}
  44. {% endif %}
  45. <div class="{{css_class}}">
  46. <header>
  47. <h1 id="about-me">About me</h1>
  48. </header>
  49. <div class="article-content">
  50. {{ LANDING_PAGE_ABOUT.details }}
  51. </div>
  52. </div>
  53. {% endif %}
  54. {% if PROJECTS %}
  55. {% set css_class = 'span8 offset2' %}
  56. {% if PROJECTS and LANDING_PAGE_ABOUT %}
  57. {% set css_class = 'span4' %}
  58. {% endif %}
  59. <div class="{{css_class}}">
  60. <header>
  61. <h1 id="my-projects">My Projects</h1>
  62. </header>
  63. {% for project in PROJECTS %}
  64. <ul class="list-all-articles">
  65. <li>
  66. <a href="{{ project.url }}" title="{{ project.name }}">{{ project.name }}</a> <span class="proj-desc">{{ project.description }}</span>
  67. </li>
  68. </ul>
  69. {%endfor %}
  70. </div>
  71. {% endif %}
  72. </div>
  73. {% if articles %}
  74. {% set css_class = 'span8 offset2' %}
  75. {% if articles and PROJECTS and LANDING_PAGE_ABOUT %}
  76. {% set css_class = 'span12' %}
  77. {% endif %}
  78. <div class="row-fluid">
  79. <div class="{{css_class}}">
  80. <header>
  81. <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/archives.html">all posts</a></h1>
  82. </header>
  83. <div class="recent-posts">
  84. {% for article in articles %}
  85. {% from '_includes/_defaults.html' import RECENT_ARTICLES_COUNT with context %}
  86. {% if loop.index0 < RECENT_ARTICLES_COUNT %}
  87. <article>
  88. <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a>
  89. <section>
  90. posted in
  91. <a href="{{ SITEURL }}/categories.html#{{ article.category.slug }}-ref">{{ article.category }}</a>
  92. <div class="recent-posts-time">
  93. <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
  94. </div>
  95. </section>
  96. </article>
  97. {% endif %}
  98. {% endfor %}
  99. </div>
  100. </div>
  101. </div>
  102. {% endif %}
  103. </div>
  104. {% endblock content %}