Commits

David Chambers committed 8e0765a

Made it possible to specify an id for a document (for use in CSS selectors).

Comments (0)

Files changed (2)

templates/_document.html

 {% endblock %}
 
 {% block content %}
-        <article>
+        <article{% if document.meta.id %} id="{{ document.meta.id }}"{% endif %}>
           <header>
             <h1>{{ document.title }}</h1>
           {% if document.datetime %}

templates/excerpt.html

 {% load mango %}
 
-      <article>
+      <article{% if document.meta.id %} id="{{ document.meta.id }}"{% endif %}>
       {% if document.title or document.datetime %}
         <header>
         {% if document.title %}