Source

zine-main / zine / plugins / myrtle_theme / templates / layout.html

<!doctype html>
<html lang="{{ cfg.language|e }}">
<head>
  <title>{% block title %}{% endblock %} &mdash; {{ cfg.blog_title|e }}</title>
  <meta name="DC.title" content="{{ self.title() }} &mdash; {{ cfg.blog_title|e }}">
  <link rel="stylesheet" type="text/css" href="{{ shared_url('myrtle_theme::style.css') }}">
  {{ get_page_metadata() }}
</head>
<body>
  <div class="pagewrapper">
    <div class="page">
      <div class="header">
        <h1><a href="{{ url_for('blog/index')|e }}">{{ cfg.blog_title|e }}</a></h1>
        <p class="description">{{ cfg.blog_tagline }}</p>
      </div>
      <div class="contents">
        {{ emit_event('before-contents-rendered') }}
        {% block contents %}{% endblock %}
        {{ emit_event('after-contents-rendered') }}
      </div>
      <div class="sidebar">
        {{ render_widgets() }}
      </div>
    </div>
    <div class="footer">
      {#- be kind and don't remove that message. but of course we can't hinder you :) #}
      <p>{% trans zine='<a href="http://zine.pocoo.org/">Zine</a>',
        theme='<a href="http://zine.pocoo.org/plugins/myrtle_theme/">Myrtle theme</a>',
        author='<a href="http://lucumr.pocoo.org/">Armin Ronacher</a>'
        %}Proudly powered by {{ zine }}, {{ theme }} designed by {{ author }}.{% endtrans %}
        {%- if request.user.is_manager %}
          | <a href="{{ url_for('admin/index')|e }}">{{ _('Admin Panel') }}</a>
          | <a href="{{ url_for('admin/logout')|e }}">{{ _('Logout') }}</a>
        {%- endif %}
      </p>
    </div>
  </div>
</body>
</html>