{% extends "base.html" %}

{% block htmltitle %}
  {% if page and page.meta and page.meta.title %}
    <title>{{ page.meta.title }} - {{ config.site_name }}</title>
  {% elif page and page.title and not page.is_homepage %}
    <title>Vapor: {% 
      if page.parent.title 
    %} {{ page.parent.title}} &rarr; {% 
      endif 
    %} {{ page.title }}</title>
  {% else %}
    <title>{{ config.site_name }}</title>
  {% endif %}
{% endblock %}

{% block styles %}
  {{ super() }}
  <link rel="stylesheet" type="text/css" href="{{ base_url }}/styles/carbon.css">
{% endblock %}

{% block libs %}
  {{ super() }}
  <script src="{{ base_url }}/scripts/carbon.js"></script>
{% endblock %}