diff options
author | luxagraf <sng@luxagraf.net> | 2024-12-27 09:47:42 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-12-27 09:47:42 -0600 |
commit | 8c7b0e1abe1983fac38322c3bc01165c4c693d7e (patch) | |
tree | 2f91e32f0dae419fe46f773fe9a11817b809fcf0 /app/posts/templates | |
parent | 05b386315c09c735201566cf8945fc8ff78d2741 (diff) |
jrnl: added a photo essay post type and new url/template/views. also cleared out some old unneeded files
Diffstat (limited to 'app/posts/templates')
-rw-r--r-- | app/posts/templates/photo_essay_detail.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/posts/templates/photo_essay_detail.html b/app/posts/templates/photo_essay_detail.html new file mode 100644 index 0000000..8195ae7 --- /dev/null +++ b/app/posts/templates/photo_essay_detail.html @@ -0,0 +1,34 @@ +{% extends 'base.html' %} +{%block htmlclass%}class="detail single"{% endblock %} +{% load typogrify_tags %} +{% load html5_datetime %} +{% load pagination_tags %} +{% block pagetitle %} Photos | luxagraf {% endblock %} +{% block metadescription %} Recent Images {% endblock %} +{%block bodyid%}class="photos" id="notes-archive"{%endblock%} +{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %} +{% block primary %} + <main role="main"> + <figure class="large-top-image">{%with object=object_list%} + <a href="{{object.get_absolute_url}}" title="{{object.title}}">{%with image=object.featured_image%} + <img style="margin:0;" sizes="(max-width: 960px) 100vw" + srcset="{{image.get_srcset}}" + src="{{image.get_src}}" + alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}"> + </a> + </figure>{%endwith%} + <div class="folio-wrapper"> + <article class="h-entry hentry content" itemscope itemType="http://schema.org/BlogPosting"> + <header id="header" class="post-header"> + <h1 class="p-name post-title" itemprop="headline">{{object.title|smartypants|safe}}</h1> + <div class="post-dateline"> + <time class="hide dt-published published dt-updated post-date lttr-box" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished"><span>{{object.pub_date|date:"F j, Y"}}</span></time> + <span class="hide" itemprop="author" itemscope itemtype="http://schema.org/Person">by <a class="p-author h-card" href="/about"><span itemprop="name">Scott Gilbertson</span></a></span> + </div> + </header> + <div id="article" class="e-content entry-content post-body" itemprop="articleBody"> + {{object.body_html|safe|smartypants}} + </div> + </div> + </main>{%endwith%} +{% endblock%} |