diff options
Diffstat (limited to 'design/templates/details')
-rw-r--r-- | design/templates/details/book.html | 66 | ||||
-rw-r--r-- | design/templates/details/note.html | 22 | ||||
-rw-r--r-- | design/templates/details/page.html | 42 | ||||
-rw-r--r-- | design/templates/details/page.txt | 8 |
4 files changed, 21 insertions, 117 deletions
diff --git a/design/templates/details/book.html b/design/templates/details/book.html deleted file mode 100644 index 8a87ae5..0000000 --- a/design/templates/details/book.html +++ /dev/null @@ -1,66 +0,0 @@ -{% extends 'base.html' %} -{% load typogrify_tags %} -{%block bodyid%}class="detail"{%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="/book-notes/" title="books" itemprop="url"><span itemprop="title">books</span></a> → </li> - <li>{{object.title|smartypants|safe}}</li> - </ul> - <main itemprop="mainEntity" itemscope itemtype="http://schema.org/Book"> - <header class="tight"> - <h1 class="post-title book-title" itemprop="name">{{object.title|smartypants|widont|safe}}</h1> - <h2 class="post-subtitle" itemprop="author" itemscope itemtype="http://schema.org/Person"> - <meta itemprop="name" content="{{object.author_name}}"/>by {{object.author_name}}</h2> - - - </header> - <div class="book-cover-wrapper"> - <img src="{{object.get_image_url}}" alt="{{object.title}} cover" /> - </div> - <div class="meta-cover"> - <dl class="book-metadata"> - - {% if object.rating %}<dt>Rating</dt><dd class="book-stars"> - {% for i in object.ratings_range %}{% if i <= object.get_rating%}★{%else%}☆{%endif%}{%endfor%}</span></dd>{%endif%} - {% if object.read_in %}<dt>Read</dt> - <dd>{{object.read_in}}</dd>{%endif%} - {% if object.pages %}<dt>Pages</dt> - <dd itemprop="numberOfPages">{{object.pages}}</dd>{%endif%} - {% if object.publish_date %}<dt>Published</dt> - <dd>{%if object.publish_place%}{{object.publish_place}}, {%endif%}{{object.publish_date}}</dd>{%endif%} - {% if object.isbn %}<dt>ISBN</dt> - <dd>{{object.isbn}}</dd>{%endif%} - </dl> - <div class="buy-btn-wrapper"> - {% if object.isbn %}<a class="buy-btn" href="http://worldcat.org/isbn/{{object.isbn}}" title="find {{object.title}} in your local library">Borrow</a>{%endif%} - {% if object.afflink %}<a class="buy-btn" href="{{object.afflink}}" title="buy {{object.title}} at Amazon">Buy</a>{%endif%} - </div> - </div>{%if object.body_html%} - <div class="thoughts" itemprop="review" itemscope itemtype="http://schema.org/Review"> - <h5>Notes</h5> - <span class="hide" itemprop="reviewRating">{{object.rating}}</span> - <meta itemprop="author" content="Scott Gilbertson" /> - <meta itemprop="datePublished" content="{{object.read_date|date:"c"}}"> - <div itemprop="reviewBody">{{object.body_html|safe|smartypants|widont}}</div> - </div>{%endif%} - {% if object.bookhighlight_set.all %} - <div class="highlights"> - <h4>Highlights:</h4> - {% for object in object.bookhighlight_set.all %} - <div class="h-entry hentry post--article book"> - <a class="highlink" id="h{{forloop.counter}}-page-{{object.page}}" href="#h{{forloop.counter}}-page-{{object.page}}">¶</a> - <div class="book-highlight"> - {{object.body_html|safe|amp|smartypants}} - </div> - <p class="foot">– Page: {{object.page}} {% if object.location %}(Kindle location: {{object.location|cut:"["|cut:"]"}}){%endif%}</p> - </div> - {% endfor %} - </div> - {%endif%} - </main> -{% endblock %} -{% block disclaimer %} -<div class="highlights"> - <p class="dis"><em>When you buy a book using the link above, I may earn a small affiliate commission.</em></p> -</div> -{% endblock %} diff --git a/design/templates/details/note.html b/design/templates/details/note.html index 583d50b..4b52537 100644 --- a/design/templates/details/note.html +++ b/design/templates/details/note.html @@ -13,7 +13,27 @@ <meta name="geo.region" content="{{object.country.iso2}}{%if object.state.code != '' %}-{{object.state.code}}{%endif%}"> {%endblock%} {% block bodyid %}class="notes--permalin detail" id="archive-{% if month %}{{month|month_number_to_name}}{%endif%}{{year}}"{%endblock%} - +{% block breadcrumbs %}<ul class="bl" id="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList"> + <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> + <a href="/" title="luxagraf homepage" itemprop="item"> + <span itemprop="title">Home</span> + </a> → + <meta itemprop="position" content="1" /> + </li> + <li itemscope itemtype="http://schema.org/ListItem"> + <a href="/field-notes/" itemprop="item"> + <span itemprop="title">Field Notes</span> + </a> → + <meta itemprop="position" content="2" /> + </li> + <li itemscope itemtype="http://schema.org/ListItem"> + <a href="/field-notes/{{object.pub_date|date:"Y"}}/"> + <span itemprop="title">{{object.pub_date|date:"Y"}}</span> + </a> → + <meta itemprop="position" content="3" /> + </li> + <li itemprop="title">Walks</li> + </ul>{% endblock %} {% block primary %}<ul class="bl crumbs" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> → </li> diff --git a/design/templates/details/page.html b/design/templates/details/page.html deleted file mode 100644 index bb80a72..0000000 --- a/design/templates/details/page.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'base.html' %} -{% load typogrify_tags %} -{% load comments %} -{% block pagetitle %}Luxagraf | {{object.title}}{% endblock %} -{% block metadescription %}{{object.meta_description}}{% endblock %} -{%block htmlclass%}class="detail"{%endblock%} -{%block bodyid%}id="{{object.title|slugify}}"{%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 object.path%}<li><a href="/{{object.path|slugify}}/">{{object.path}}</a> → </li>{%endif%} - <li>{{object.title}}</li> - </ul> - <main> - <article> - <header class="post-header"> - <h1 class="post-title">{{object.title}}</h1> - {%if object.sub_title %}<h2 class="post-subtitle">{{object.sub_title}}</h2>{%endif%} - </header> - <div class="post-article"> - {{object.body_html|safe|smartypants|widont}} - </div> - </article> - {% if object.enable_comments %} -{% get_comment_count for object as comment_count %} -{%if comment_count > 0 %} -<p class="comments--header">{{comment_count}} Comment{{ comment_count|pluralize }}</p> -{% render_comment_list for object %} -{%endif%} -<div class="comment--form--wrapper {%if comment_count > 0%}comment-form-border{%endif%}"> -{% render_comment_form for object %} -</div> -{%endif%} - </main> -{% endblock %} -{% block js %} -<script src="/media/js/lightbox.js" type="text/javascript"></script> -<script>var opts={captions:true,onload:function(){var im=document.getElementById("jslghtbx-contentwrapper");var link=im.appendChild(document.createElement('a')) -link.href=im.firstChild.src;link.innerHTML="open ";link.target="_blank";link.setAttribute('class','p-link');im.appendChild(link);}};var lightbox=new Lightbox();lightbox.load(opts);</script> -{% endblock %} - - diff --git a/design/templates/details/page.txt b/design/templates/details/page.txt deleted file mode 100644 index 547ce79..0000000 --- a/design/templates/details/page.txt +++ /dev/null @@ -1,8 +0,0 @@ -{{object.title|safe}} -{% for letter in object.title %}={%endfor%} - - by Scott Gilbertson - <{{SITE_URL}}{{object.get_absolute_url}}> - {{object.pub_date|date:"l, d F Y"}} - -{{object.body_markdown|safe}} |