123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- {% extends 'base.html' %}
- {% block title %}
- {{ super() }}
- {% endblock title %}
- {% block meta_tags_in_head %}
- {{ super() }}
- {% from '_includes/_defaults.html' import LANDING_PAGE_ABOUT with context %}
- {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.title %}
- <meta property="og:title" content="{{ LANDING_PAGE_ABOUT.title|e }}"/>
- <meta name="twitter:title" content="{{ LANDING_PAGE_ABOUT.title|e }}">
- {% else %}
- <meta property="og:title" content="{{ SITENAME|striptags|e }}"/>
- <meta name="twitter:title" content="{{ SITENAME|striptags|e }}">
- {% endif %}
- <meta property="og:url" content="{{ SITEURL }}" />
- {% from '_includes/_defaults.html' import SITE_DESCRIPTION with context %}
- {% if SITE_DESCRIPTION %}
- <meta property="og:description" content="{{SITE_DESCRIPTION|e}}" />
- <meta name="twitter:description" content="{{SITE_DESCRIPTION|e}}">
- {% endif %}
- <meta property="og:site_name" content="{{ SITENAME|striptags|e }}" />
- <meta property="og:article:author" content="{{ AUTHOR }}" />
- {% from '_includes/_defaults.html' import FEATURED_IMAGE with context %}
- {% if FEATURED_IMAGE %}
- <meta property="og:image" content="{{FEATURED_IMAGE}}" />
- <meta name="twitter:image" content="{{FEATURED_IMAGE}}" >
- {% endif %}
- {% endblock meta_tags_in_head %}
- {% block content %}
- {% from '_includes/_defaults.html' import LANDING_PAGE_ABOUT with context %}
- {% from '_includes/_defaults.html' import PROJECTS with context %}
- <div class="row">
- {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.title %}
- {% set css_class = 'col-md-10 col-md-offset-2' %}
- {% if PROJECTS and LANDING_PAGE_ABOUT %}
- {% set css_class = 'col-md-12' %}
- {% endif %}
- <header class="page-header {{css_class}}">
- <h1><a href="{{ SITEURL }}">{{ LANDING_PAGE_ABOUT.title }}</a></h1>
- </header>
- {% endif %}
- <div class="row">
- {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.details %}
- {% set css_class = 'col-md-8 col-md-offset-2' %}
- {% if PROJECTS and LANDING_PAGE_ABOUT %}
- {% set css_class = 'col-md-8' %}
- {% endif %}
- <div class="{{css_class}}">
- <header>
- <h1 id="about-me">About me</h1>
- </header>
- <div class="article-content">
- {{ LANDING_PAGE_ABOUT.details }}
- </div>
- </div>
- {% endif %}
- {% if PROJECTS %}
- {% set css_class = 'col-md-8 col-md-offset-2' %}
- {% if PROJECTS and LANDING_PAGE_ABOUT %}
- {% set css_class = 'col-md-4' %}
- {% endif %}
- <div class="{{css_class}}">
- <header>
- <h1 id="my-projects">My Projects</h1>
- </header>
- {% for project in PROJECTS %}
- <ul class="list-all-articles">
- <li>
- <a href="{{ project.url }}" title="{{ project.name }}">{{ project.name }}</a> <span class="proj-desc">{{ project.description }}</span>
- </li>
- </ul>
- {%endfor %}
- </div>
- {% endif %}
- </div>
- {% if articles %}
- {% set css_class = 'col-md-8 col-md-offset-2' %}
- {% if articles and PROJECTS and LANDING_PAGE_ABOUT %}
- {% set css_class = 'col-md-12' %}
- {% endif %}
- <div class="row">
- <div class="{{css_class}}">
- <header>
- <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/archives.html">all posts</a></h1>
- </header>
- <div class="recent-posts">
- {% for article in articles %}
- {% from '_includes/_defaults.html' import RECENT_ARTICLES_COUNT with context %}
- {% if loop.index0 < RECENT_ARTICLES_COUNT %}
- <article>
- <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a>
- <section>
- posted in
- <a href="{{ SITEURL }}/categories.html#{{ article.category.slug }}-ref">{{ article.category }}</a>
- <div class="recent-posts-time">
- <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
- </div>
- </section>
- </article>
- {% endif %}
- {% endfor %}
- </div>
- </div>
- </div>
- {% endif %}
- </div>
- {% endblock content %}
|