solarized-emacs

a fork of Bozhidar Batsov's solarized-emacs
git clone https://git.trogloxene.org/solarized-emacs.git
Log | Files | Refs | README

django-template.html (794B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <head>
      4     <link rel="stylesheet" href="style.css" />
      5     <title>{% block title %}My amazing site{% endblock %}</title>
      6 </head>
      7 
      8 <body>
      9     <div id="sidebar">
     10         {% block sidebar %}
     11         <ul>
     12             <li><a href="/">Home</a></li>
     13             <li><a href="/blog/">Blog</a></li>
     14         </ul>
     15         {% endblock %}
     16     </div>
     17 
     18     <div id="content">
     19         {% block content %}{% endblock %}
     20     </div>
     21 </body>
     22 </html>
     23 
     24 {% extends "base_generic.html" %}
     25 
     26 {% block title %}{{ section.title }}{% endblock %}
     27 
     28 {% block content %}
     29 <h1>{{ section.title }}</h1>
     30 
     31 {% for story in story_list %}
     32 <h2>
     33   <a href="{{ story.get_absolute_url }}">
     34     {{ story.headline|upper }}
     35   </a>
     36 </h2>
     37 <p>{{ story.tease|truncatewords:"100" }}</p>
     38 {% endfor %}
     39 {% endblock %}