Anfänglicher Commit: Producion Version Stand: Oktober 2014
This commit is contained in:
36
templates/content/page.html
Normal file
36
templates/content/page.html
Normal file
@@ -0,0 +1,36 @@
|
||||
{% extends "base.html" %}
|
||||
{% load comments i18n %}
|
||||
|
||||
{% block meta_title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block title %}{{page.title}}{% endblock %}
|
||||
|
||||
{% block opengraph %}
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="{{page.title}}" />
|
||||
<meta property="og:url" content="http://www.kasu.at{{ page.get_absolute_url }}" />
|
||||
<meta property="og:image" content="http://www.kasu.at/static/img/logo.png" />
|
||||
<meta property="og:description" content="{{ page.content|striptags|truncatewords:25 }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{{ page.title }}</h2>
|
||||
{{ page.content }}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% if current_top_page.subpages %}
|
||||
<h2>{% trans "Subpages" %}</h2>
|
||||
{% for subpage in current_top_page.subpages.all %}
|
||||
<h3><a href="{{ subpage.get_absolute_url }}">{{subpage.menu_name}}</a></h3>
|
||||
<ul class="list">
|
||||
{% for subpage in subpage.subpages.all %}<li class="{{subpage.css_class}}"><a href="{{ subpage.get_absolute_url }}">{{ subpage.menu_name }}</a></li>{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block comments %}{% if page.enable_comments %}
|
||||
{% render_comment_list for page %}
|
||||
{% render_comment_form for page %}
|
||||
{% endif %}{% endblock %}
|
||||
Reference in New Issue
Block a user