~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/mainpage.html

  • Committer: franku
  • Date: 2018-11-15 20:39:35 UTC
  • mfrom: (504.1.1 widelands)
  • Revision ID: somal@arcor.de-20181115203935-2j4ip880mi4b3mzv
redesign the website to show tabs for some pages and give an additional header section with important links

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
<link rel="alternate" type="application/rss+xml" title="Widelands News" href="news/feed/" />
16
16
 
17
17
{{ block.super}}{% endblock %}
18
 
{% block content %}
19
 
<h1>Welcome to Widelands.org</h1>
 
18
{% block content_header %}
 
19
        <h1>Welcome to Widelands.org</h1>
 
20
{% endblock %}
 
21
{% block content_main %}
20
22
<div class="blogEntry" style="min-height: 380px;">
21
23
        <img class="landing posRight" src="{{ MEDIA_URL }}img/welcome.jpg" alt="Welcome!" />
22
24
        <p>
53
55
 
54
56
{% get_latest_posts 3 as latest_posts_list %}
55
57
{% if latest_posts_list %}
56
 
        <h1>News</h1>
 
58
    <div id="content_header">
 
59
        <h1>News</h1>
 
60
    </div>
57
61
        {% for object in latest_posts_list %}
58
62
                {% include "news/inlines/post_detail.html" %}
59
63
        {% endfor %}