{% import 'macros.html' as m %}
{% if (page in hidden_articles) or (page in drafts) or (page in hidden_pages) or (page in draft_pages) %}
{% else %}
{% endif %}
{% block title %} Home {% endblock title %} | {{ SITENAME|e }}
{% assets filters="libsass,postcss,cssmin", output="css/main.min.css", "css/mglass.scss", "css/main.scss", "css/pygments/" + CODE_STYLE + ".css", "css/code.scss" %}
{% endassets %} {% include "analytics.html" %} {% assets filters="closure_js", output="js/main.min.js", "js/jquery.mglass.js", "js/application.js" %} {% endassets %} {% block extra_js %}{% endblock %}
{% set all_feeds = [] %} {% if FEED_ALL_ATOM %} {% if all_feeds.append({'kind': 'Atom', 'url': FEED_ALL_ATOM, 'name': 'All posts'}) %} {% endif %} {% endif %} {% if FEED_ALL_RSS %} {% if all_feeds.append({'kind': 'RSS', 'url': FEED_ALL_RSS, 'name': 'All posts'}) %} {% endif %} {% endif %} {% if FEED_ATOM %} {% if all_feeds.append({'kind': 'Atom', 'url': FEED_ATOM, 'name': 'Latest posts'}) %} {% endif %} {% endif %} {% if FEED_RSS %} {% if all_feeds.append({'kind': 'RSS', 'url': FEED_RSS, 'name': 'Latest posts'}) %} {% endif %} {% endif %} {% if CATEGORY_FEED_ATOM and category is defined %} {% if all_feeds.append({'kind': 'Atom', 'url': CATEGORY_FEED_ATOM.format(slug=category.slug), 'name': 'Category: ' + category.name}) %} {% endif %} {% endif %} {% if CATEGORY_FEED_RSS and category is defined %} {% if all_feeds.append({'kind': 'RSS', 'url': CATEGORY_FEED_RSS.format(slug=category.slug), 'name': 'Category: ' + category.name}) %} {% endif %} {% endif %} {% if TAG_FEED_ATOM and tag is defined %} {% if all_feeds.append({'kind': 'Atom', 'url': TAG_FEED_ATOM.format(slug=tag.slug), 'name': 'Tag: ' + tag.name}) %} {% endif %} {% endif %} {% if TAG_FEED_RSS and tag is defined %} {% if all_feeds.append({'kind': 'RSS', 'url': TAG_FEED_RSS.format(slug=tag.slug), 'name': 'Tag: ' + tag.name}) %} {% endif %} {% endif %} {% for feed in all_feeds %}
{% endfor %} {% block head %}{% endblock %}
{% if SITE_THUMBNAIL %}
{% if SITE_THUMBNAIL_TEXT %}
{{ SITE_THUMBNAIL_TEXT }}
{% endif %}
{% endif %}
{{ SITENAME }}
{{ SITESUBTITLE }}
{{ SITENAME }}
{% for title, link in MENUITEMS %} {% set active_page = link == ("/%s"|format(output_file)).strip('index.html') -%}
{{ title }} {% if active_page %}
(current)
{% endif %}
{% endfor %} {% if DISPLAY_PAGES_ON_MENU %} {% for p in pages %} {% set active_page = (p == page) -%}
{{ p.title }} {% if active_page %}
(current)
{% endif %}
{% endfor %} {% endif %} {% if DISPLAY_CATEGORIES_ON_MENU %} {% for c, null in categories %} {% set active_category = (c == category) -%}
{{ c.name }} {% if active_category %}
(current)
{% endif %}
{% endfor %} {% endif %}
{% if TIPUE_SEARCH %}
{% endif %}
{% set has_left_content = has_left or LEFT_SIDEBAR is defined %} {% set has_right_content = has_right or RIGHT_SIDEBAR is defined %}
{% block top_center %}{% endblock %}
{% if LAYOUT != 'full-width' and has_left_content %}
{% block left_sidebar %}{% endblock %} {{ LEFT_SIDEBAR }}
{% endif %}
{% block content %}{% endblock %}
{% if LAYOUT != 'full-width' and has_right_content %}
{% block right_sidebar %}{% endblock %} {{ RIGHT_SIDEBAR }}
{% endif %}
{# TODO: make footer sticky #}