summaryrefslogtreecommitdiff
path: root/design/templates
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates')
-rw-r--r--design/templates/archives/links.html23
-rw-r--r--design/templates/details/link.html19
2 files changed, 42 insertions, 0 deletions
diff --git a/design/templates/archives/links.html b/design/templates/archives/links.html
new file mode 100644
index 0000000..646385c
--- /dev/null
+++ b/design/templates/archives/links.html
@@ -0,0 +1,23 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+{% load pagination_tags %}
+{% block pagetitle %} Links | luxagraf {% endblock %}
+{% block metadescription %} {% endblock %}
+{%block bodyid%}class="links" id="links-archive"{%endblock%}
+
+{% block primary %}
+ <ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
+ <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> &rarr; </li>
+ {% if tag %}<li><a href="/links/" title="all links" itemprop="url"><span itemprop="title">Links</span></a> &rarr; </li><li>{{tag}}</li>{%else%}<li>Links</li>{% endif%}
+ </ul>
+ <main role="main">{% autopaginate object_list 100 %} {% for object in object_list %}
+ <article>
+ <h3 class="link-title"><a href="{{object.get_absolute_url}}">{{object.title|smartypants|safe}}</a> <span><a href="{{object.url}}">&rarr;</a></h3>
+
+ </article>
+ {% endfor %}
+ </main>
+ <nav class="pagination">
+ {% paginate %}
+ </nav>
+{% endblock %}
diff --git a/design/templates/details/link.html b/design/templates/details/link.html
new file mode 100644
index 0000000..6ba0619
--- /dev/null
+++ b/design/templates/details/link.html
@@ -0,0 +1,19 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+{%block bodyid%}class="links"{%endblock%}
+{% block primary %}<ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
+ <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> &rarr; </li>
+ <li><a href="/links/" title="links" itemprop="url"><span itemprop="title">links</span></a> &rarr; </li>
+ </ul>
+ <main>
+ <h2 title="link-title">{{object.title|smartypants|widont|safe}}</h2>
+ <h3>{{object.url|urlize}}</h3>
+ <article class="h-entry hentry post--article book" itemscope itemType="http://schema.org/Article">
+ {{object.render_description|amp|smartypants|safe}}
+ <ul>{% for tag in object.tags.all %}
+ <li><a href="/links/tag/{{tag.slug}}/">{{tag}}</a></li>
+ {%endfor%}</ul>
+ </article>
+</main>
+{% endblock %}
+