diff options
Diffstat (limited to 'design')
-rw-r--r-- | design/sass/_inbox.scss | 11 | ||||
-rw-r--r-- | design/templates/archives/links.html | 23 | ||||
-rw-r--r-- | design/templates/details/link.html | 19 |
3 files changed, 53 insertions, 0 deletions
diff --git a/design/sass/_inbox.scss b/design/sass/_inbox.scss index e69de29..d58c539 100644 --- a/design/sass/_inbox.scss +++ b/design/sass/_inbox.scss @@ -0,0 +1,11 @@ +.links main { + @include constrain_narrow; + .link-title a { + color: $body_font; + font-weight: 400; + text-decoration: none; + } + @include breakpoint(beta) { + text-align: left; + } +} 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> → </li> + {% if tag %}<li><a href="/links/" title="all links" itemprop="url"><span itemprop="title">Links</span></a> → </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}}">→</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> → </li> + <li><a href="/links/" title="links" itemprop="url"><span itemprop="title">links</span></a> → </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 %} + |