diff options
Diffstat (limited to 'themes/lv2/templates/page.html')
-rw-r--r-- | themes/lv2/templates/page.html | 72 |
1 files changed, 12 insertions, 60 deletions
diff --git a/themes/lv2/templates/page.html b/themes/lv2/templates/page.html index f8757fa..33f6aca 100644 --- a/themes/lv2/templates/page.html +++ b/themes/lv2/templates/page.html @@ -1,64 +1,16 @@ {% extends "base.html" %} -{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %} -{% block html_lang %}{{ page.lang }}{% endblock %} -{% block meta %} - {% if page.author %} - <meta name="author" content="{{ page.author }}" /> - {% else %} - <meta name="author" content="{{ AUTHOR }}" /> - {% endif %} - {% if page.summary %} - <meta name="description" content="{{ page.summary|striptags|escape }}" /> - {% endif %} +{% block title %} + {% if page.title %} + {{ page.title }} + {% else %} + {{ SITENAME }} + {% endif %} {% endblock %} -{% block opengraph %} - {% if OPEN_GRAPH_FB_APP_ID %} - <meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/> +{% block content %} + <header> + {% if page.title %} + <h1><a href="{{ SITEURL }}/{{ page.slug }}" id="page-title">{{ page.title }}</a></h1> {% endif %} - <meta property="og:site_name" content="{{ SITENAME }}" /> - <meta property="og:type" content="article"/> - <meta property="og:title" content="{{ page.title|striptags|escape }}"/> - <meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/> - <meta property="og:description" content="{{ page.summary|striptags|escape }}" /> - {% if page.og_image %} - <meta property="og:image" - content="{{ SITEURL }}/{{ page.og_image }}"/> - {% elif OPEN_GRAPH_IMAGE %} - <meta property="og:image" - content="{{ SITEURL }}/{{ OPEN_GRAPH_IMAGE }}"/> - {% endif %} -{% endblock %} - -{% block canonical_rel %} -<link rel="canonical" href="{{ SITEURL }}/{{ page.url }}"> -{% endblock %} - -{% block breadcrumbs %} - {% if DISPLAY_BREADCRUMBS %} - <ol class="breadcrumb"> - <li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li> - {% if page.url %} - <li class="active">{{ page.title }}</li> - {% endif %} - </ol> - {% endif %} -{% endblock %} - -{% block content %} - <section id="content" class="body"> - <h1 class="entry-title">{{ page.title }}</h1> - {% import 'includes/translations.html' as translations with context %} - {{ translations.translations_for(page) }} - {% if PDF_PROCESSOR %} - <a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf"> - get the pdf - </a> - {% endif %} - <div class="entry-content"> - {{ page.content }} - {% if page.comments == 'enabled' %} - {% include 'includes/comments.html' %} - {% endif %} - </div> - </section> + </header> + {{ page.content }} {% endblock %} |