added about pages, reorg nav, updated posts

This commit is contained in:
Vicky Steeves 2017-10-18 18:56:29 -04:00
parent bd36f5719d
commit 892c1f5a4a
18 changed files with 238 additions and 442 deletions

15
conf.py
View File

@ -115,8 +115,17 @@ TRANSLATIONS_PATTERN = "{path}.{lang}.{ext}"
NAVIGATION_LINKS = {
DEFAULT_LANG: (
("/", "Home"),
('/who-we-are', 'About'),
('/contact', 'Contact'),
(
(
('/about/', 'Mission'),
('/guidelines/', 'Submission Guidelines'),
# ('/faq/', 'FAQ'),
('/steering-committee/', 'Steering Committee'),
('/contact/', 'Contact'),
),
'About'
),
('/updates/', 'Updates'),
),
}
@ -450,7 +459,7 @@ HIDDEN_AUTHORS = ['Guest']
# Final location for the main blog page and sibling paginated pages is
# output / TRANSLATION[lang] / INDEX_PATH / index-*.html
INDEX_PATH = "public/pages/index/"
INDEX_PATH = "updates"
# Optional HTML that displayed on “main” blog index.html files.
# May be used for a greeting. (translatable)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1,63 +0,0 @@
#!/usr/bin/env python3
import dateutil.parser
import io
import feedparser
import re
import requests
from urllib.parse import urlparse
def main():
non_slug_chars = re.compile(r'[^a-zA-Z0-9-_]')
# Get feed
req = requests.get('https://share.osf.io/api/v2/atom/?elasticQuery=%7B%22bool%22%3A%7B%22must%22%3A%7B%22query_string%22%3A%7B%22query%22%3A%22*%22%7D%7D%2C%22filter%22%3A%5B%7B%22term%22%3A%7B%22sources%22%3A%22LIS%20Scholarship%20Archive%22%7D%7D%2C%7B%22term%22%3A%7B%22types%22%3A%22preprint%22%7D%7D%5D%7D%7D')
feed = feedparser.parse(req.content)
print("Downloaded feed, %d entries" % len(feed['entries']))
for d in feed['entries']:
print("Title: %s" % d['title'].strip())
# Generate file name
url = urlparse(d['link']).path
slug = url
while non_slug_chars.match(slug[0]):
slug = slug[1:]
slug = non_slug_chars.sub('_', slug)
print("Filename: %s" % slug)
file_name = 'scholarship/%s.html' % slug
# Parse date
date = dateutil.parser.parse(d['published'])
print("Date: %s" % date.strftime('%Y-%m-%d %H:%M:%S'))
# Open output file
with io.open(file_name, 'w', encoding='utf-8') as fp:
fp.write(u"""\
<!--
.. title: {title}
.. slug: {slug}
.. date: {date}
.. link: {link}
.. description:
-->
<!DOCTYPE html>
<html lang="en">
<body>
<p>{text}</p>
""".format(title=d['title'].strip(), slug=slug,
date=date.strftime('%Y-%m-%dT%H:%M:%S+00:00'),
link=d['link'].strip(),
text=d['summary'].strip()))
print()
if __name__ == '__main__':
main()

20
pages/about.html Normal file
View File

@ -0,0 +1,20 @@
<!--
.. title: About LISSA
.. slug: about
.. date: 2017-07-19 14:24:09 UTC-05:00
.. tags:
.. category:
.. link:
.. description:
.. type: text
-->
<!DOCTYPE html>
<html lang="en">
<body>
<p>Librarians, archivists, and other information professionals engage in a broad range of scholarship, from creating metadata to writing manuscripts. We acknowledge that much of this scholarship happens outside the traditional realms of academia, including work that goes beyond the standard article or book chapter to oral histories, community works, code, data, and more. Through LISSA, library and information science scholars can showcase, share, and preserve materials and solicit feedback on the full spectrum of work we do. We conceive scholars as inclusive of all workers in library and information science, including students and trainees.</p>
<p>LISSA is a place where anyone can have access to library and information science scholarship, in all its forms. As librarians and archivists, we are committed to service permanence, sustainability, discoverability, and ease of access and use. The materials and associated metadata on LISSA are publicly available and readily indexable.</p>
</body>
</html>

View File

@ -1,7 +1,7 @@
<!--
.. title: Contact
.. slug: contact
.. date: 2017-01-06 14:24:09 UTC-05:00
.. date: 2017-07-20 14:24:09 UTC-05:00
.. tags:
.. category:
.. link:

63
pages/guidelines.html Normal file
View File

@ -0,0 +1,63 @@
<!--
.. title: Submission Guidelines
.. slug: guidelines
.. date: 2017-10-18 14:24:09 UTC-05:00
.. tags:
.. category:
.. link:
.. description:
.. type: text
-->
<!DOCTYPE html>
<html lang="en">
<body>
<p>We welcome content from the library and information science (LIS) community and allied fields, including but not limited to:</p>
<div class="row">
<div class="col-xs-12">
<div class="row">
<div class="col-xs-3">
<ul>
<li>Articles</li>
<li>Reports</li>
<li>Metadata</li>
<li>Oral histories</li>
</ul>
</div>
<div class="col-xs-3">
<ul>
<li>Manuscripts</li>
<li>Pre-/post-prints</li>
<li>Data</li>
<li>Code</li>
</ul>
</div>
<div class="col-xs-3">
<ul>
<li>Promotion packets</li>
<li>Student work</li>
<li>Posters</li>
<li>Book Chapters</li>
</ul>
</div>
</div>
</div>
</div>
<p>Please only submit material to which you have the rights, either by ownership or by a license. For pre-prints or post-prints, we recommend authors use the <a href="http://www.sherpa.ac.uk/romeo/index.php">SHERPA/RoMEO</a> service to check journal policies. Please exercise the same judgment you would use for any research output when it comes to the citation and re-use of works on LISSA.</p>
<p>All material on LISSA is automatically associated with a Project (submission content) on the Open Science Framework. If your materials are already on the <a href = "https://osf.io">Open Science Framework</a>, you can submit to LISSA specifically in the submission process (submit here: <a href="https://osf.io/preprints/lissa/submit">https://osf.io/preprints/lissa/submit</a>). Submitters can attach additional materials to their work by including them in the associated project. Materials submitted are covered by the COSs <a href="https://github.com/CenterForOpenScience/cos.io/blob/master/TERMS_OF_USE.md"> terms of use</a> except when covered by one's own license (see specifically Section 6, Privacy Settings Restricting Access to Content).</p>
<p>A primary goal of LISSA is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, our online content community is governed by the following:</p>
<ul>
<li>We reserve the right to remove any content that could reasonably be construed as offensive or harassing to people or groups, particularly based on age, body size, disability, ethnicity, gender identity and expression, language, level of experience, nationality, personal appearance, race, religion, socioeconomic status, or sexual identity and orientation.</li>
<li>Submissions will be reviewed periodically to check for conformation with these guidelines. Submissions that do not meet these guidelines will be removed, and the authors notified. </li>
<ul><li>If you wish to appeal any decisions regarding these guidelines, you should notify the LISSA board at <a href="mailto:lissarchive@gmail.com">lissarchive@gmail.com</a> with a concise description of your grievance.</li></ul>
</ul>
<h3>Attribution</h3>
<p>Parts of these guidelines were adapted from the <a href="http://fossilsandshit.com/paleorxiv/submission-guidelines-authors/">paleorxiv submission guidelines</a>, the <a href="https://socopen.org/frequently-asked-questions/">SocArXiv FAQ</a>, and from the <a href="http://todogroup.org/opencodeofconduct/">open code of conduct</a>.
</body>
</html>

65
pages/steering-comm.html Normal file
View File

@ -0,0 +1,65 @@
<!--
.. title: LISSA Steering Committee
.. slug: steering-committee
.. date: 2017-10-18 14:24:09 UTC-05:00
.. tags:
.. category:
.. link:
.. description:
.. type: text
..template:
-->
<!DOCTYPE html>
<html lang="en">
<body>
<div class="row">
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/vicky.jpg" alt="">
<h3><a href="https://vickysteeves.com">Vicky Steeves</a></h3>
<p>New York University</p>
</div>
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/april.jpg" alt="">
<h3><a href="https://aprilhathcock.wordpress.com/">April Hathcock</a></h3>
<p>New York University</p>
</div>
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/cecily.jpg" alt="">
<h3><a href="http://cecily.info/">Cecily Walker</a></h3>
<p>Vancouver Public Library</p>
</div>
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/lisa.jpg" alt="">
<h3><a href="https://lisahinchliffe.com/">Lisa Janicke Hinchliffe</a></h3>
<p>University of Illinois at Urbana-Champaign</p>
</div>
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/micah.jpg" alt="">
<h3><a href="https://micahvandegrift.github.io/">Micah Vandegrift</a></h3>
<p>Florida State University</p>
</div>
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/chealsye.png" alt="">
<h3><a href="https://twitter.com/chealsye">Chealsye Bowley</a></h3>
<p>Ubiquity Press</p>
</div>
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/kevin.jpg" alt="">
<h3><a href="https://lib.ku.edu/kevin-l-smith">Kevin Smith</a></h3>
<p>University of Kansas</p>
</div>
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/megan.png" alt="">
<h3><a href="http://www.meganwacha.info/">Megan Wacha</a></h3>
<p>City University of NY</p>
</div>
<div class="col-lg-4 col-sm-6 text-center mb-4">
<img class="rounded-circle img-fluid d-block mx-auto" src="/images/people/charlotte.jpg" alt="">
<h3><a href="https://www.linkedin.com/in/charlotteroh">Charlotte Roh</a></h3>
<p>University of San Francisco </p>
</div>
</div>
</body>
</html>

View File

@ -1,42 +0,0 @@
<!--
.. title: About LISSA
.. slug: who-we-are
.. date: 2017-07-19 14:24:09 UTC-05:00
.. tags:
.. category:
.. link:
.. description:
.. type: text
-->
<!DOCTYPE html>
<html lang="en">
<body>
<p>Librarians, archivists, and other information professionals engage in a broad range of scholarship, from creating metadata to writing manuscripts. We acknowledge that much of this scholarship happens outside the traditional realms of academia, including work that goes beyond the standard article or book chapter to oral histories, community works, code, data, and more. Through LISSA, library and information science scholars can showcase, share, and preserve materials and solicit feedback on the full spectrum of work we do. We conceive scholars as inclusive of all workers in library and information science, including students and trainees.</p>
<p>LISSA is a place where anyone can have access to library and information science scholarship, in all its forms. As librarians and archivists, we are committed to service permanence, sustainability, discoverability, and ease of access and use. The materials and associated metadata on LISSA are publicly available and readily indexable.</p>
<p>The steering committee of LISSA includes:
<table style="height: 100%; width:100%;">
<tbody>
<tr>
<td><img src="/images/people/vicky.jpg" alt="Vicky Steeves"/><p><a href="https://vickysteeves.com">Vicky Steeves</a></p></td>
<td><img src="/images/people/april.jpg" alt="April Hathcock"/><p><a href="https://aprilhathcock.wordpress.com/">April Hathcock</a></p></td>
<td><img src="/images/people/cecily.jpg" alt="Cecily Walker"/><p><a href="http://cecily.info/">Cecily Walker</a></p></td>
<td><img src="/images/people/lisa.jpg" alt="Lisa Hinchliffe"/><p><a href="https://lisahinchliffe.com/">Lisa Hinchliffe</a></p></td>
</tr>
<tr>
<td><img src="/images/people/micah.jpg" alt="Micah Vandergrift"/><p><a href="https://micahvandegrift.github.io/">Micah Vandegrift</a></p></td>
<td><img src="/images/people/chealsye.png" alt="Chealsye Bowley"/><p><a href="https://twitter.com/chealsye">Chealsye Bowley</a></p></td>
<td><img src="/images/people/kevin.jpg" alt="Keving Smith"/><p><a href="https://lib.ku.edu/kevin-l-smith">Kevin Smith</a></p></td>
<td><img src="/images/people/megan.png" alt="Megan Wacha"/><p><a href="http://www.meganwacha.info/">Megan Wacha</a></p></td>
<td><img src="/images/people/charlotte.jpg" alt="Charlottet Roh"/><p><a href="https://www.linkedin.com/in/charlotteroh">Charlotte Roh</a></p></td>
</tr>
</tbody>
</table>
</body>
</html>

View File

@ -22,18 +22,5 @@
<p>The LISSA Steering Committee is composed of a variety of information professionals across different institutions and represents the diversity of scholarship that makes up our field. You can get updates from LISSA on <a href="https://lissarchive.org/">lissarchive.org</a> or Twitter (<a href="https://twitter.com/lissarchive">@LISSArchive</a>). You may also reach LISSA via email (<a href="lissarchive@gmail.com">lissarchive@gmail.com</a>).</p>
<p>We hope to see you and your work on LISSA soon!</p>
<p>Best,<br/> the LISSA steering committee:</p>
<p><a href="https://vickysteeves.com">Vicky Steeves</a>, co-director, Librarian for Research Data Management and Reproducibility, New York University</p>
<p><a href="https://aprilhathcock.wordpress.com/">April Hathcock</a>, co-director, Librarian for Scholarly Communications, New York University</p>
<p><a href="https://twitter.com/chealsye">Chealsye Bowley</a>, Community Manager, Ubiquity Press</p>
<p><a href="https://lisahinchliffe.com/">Lisa Janicke Hinchliffe</a>, Professor/Coordinator for Information Literacy Services and Instruction, University of Illinois at Urbana-Champaign</p>
<p><a href="https://www.linkedin.com/in/charlotteroh">Charlotte Roh</a>, Scholarly Communications Librarian, University of San Francisco</p>
<p><a href="https://lib.ku.edu/kevin-l-smith">Kevin Smith</a>, Dean of Libraries, University of Kansas</p>
<p><a href="https://micahvandegrift.github.io/">Micah Vandegrift</a>, Director of Digital Scholarship, Florida State University</p>
<p><a href="http://www.meganwacha.info/">Megan Wacha</a>, Scholarly Communications Librarian, City University of NY</p>
<p><a href="http://cecily.info/">Cecily Walker</a>, Assistant Manager, Community Digital Initiatives, Vancouver Public Library</p>
</body>
</html>

View File

@ -13,24 +13,10 @@
<html lang="en">
<body>
<p>We are happy to announce that the LIS Scholarship Archive (<a href="https://osf.io/preprints/lissa">osf.io/preprints/lissa</a>) is open for submissions! We are in a 'soft launch period, so we welcome all comments and feedback from the community on the submission process and our submission guidelines (available via an <a href="https://docs.google.com/document/d/1zINOnYprbDOGKQclZo9l4XTdBRAuJMaFPzEa4s9H8kE/edit">open Google doc!</a>).</p>
<p>We are happy to announce that <a <a href="https://osf.io/preprints/lissa" the LIS Scholarship Archive</a> (<a href="https://osf.io/preprints/lissa">osf.io/preprints/lissa</a>) is open for submissions! We are in a 'soft launch period, so we welcome all comments and feedback from the community on the submission process and our submission guidelines (available via an <a href="https://docs.google.com/document/d/1zINOnYprbDOGKQclZo9l4XTdBRAuJMaFPzEa4s9H8kE/edit">open Google doc!</a>).</p>
<p>On LISSA, members of the LIS community can showcase the full spectrum of work they do. Our conception of scholars is inclusive of all workers in library and information science, including students and trainees. We hope to see you and your work on LISSA soon!</p>
<p>You can always get updates from LISSA on <a href="https://lissarchive.org/">lissarchive.org</a> or Twitter (<a href="https://twitter.com/lissarchive">@LISSArchive</a>) or via email (<a href="lissarchive@gmail.com">lissarchive@gmail.com</a>). Feel free to reach out to us!
</p>
<p>Best,<br/> the LISSA steering committee:</p>
<p><a href="https://vickysteeves.com">Vicky Steeves</a>, co-director, Librarian for Research Data Management and Reproducibility, New York University</p>
<p><a href="https://aprilhathcock.wordpress.com/">April Hathcock</a>, co-director, Librarian for Scholarly Communications, New York University</p>
<p><a href="https://twitter.com/chealsye">Chealsye Bowley</a>, Community Manager, Ubiquity Press</p>
<p><a href="https://lisahinchliffe.com/">Lisa Janicke Hinchliffe</a>, Professor/Coordinator for Information Literacy Services and Instruction, University of Illinois at Urbana-Champaign</p>
<p><a href="https://www.linkedin.com/in/charlotteroh">Charlotte Roh</a>, Scholarly Communications Librarian, University of San Francisco</p>
<p><a href="https://lib.ku.edu/kevin-l-smith">Kevin Smith</a>, Dean of Libraries, University of Kansas</p>
<p><a href="https://micahvandegrift.github.io/">Micah Vandegrift</a>, Director of Digital Scholarship, Florida State University</p>
<p><a href="http://www.meganwacha.info/">Megan Wacha</a>, Scholarly Communications Librarian, City University of NY</p>
<p><a href="http://cecily.info/">Cecily Walker</a>, Assistant Manager, Community Digital Initiatives, Vancouver Public Library</p>
</body>
</html>

View File

@ -12,21 +12,20 @@ a {
text-decoration: underline;
}
h3 > a {
text-decoration: none;
}
.u-url {
text-decoration: none;
}
body {
-webkit-animation-delay: 0.1s;
-webkit-animation-name: fontfix;
-webkit-animation-duration: 0.1s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: linear;
body p{
font-size: 1.1em;
}
@-webkit-keyframes fontfix {
from { opacity: 1; }
to { opacity: 1; }
ul > li{
font-size: 1.1em;
}
/* -------------------- NAVBAR -------------------- */
@ -57,18 +56,58 @@ body {
#logo {
padding-left: 1em;
padding-right: 1em;
display: block;
}
/* ------DROP DOWN NAV BAR------ */
.dropdown-menu > li > a {
text-decoration: none;
color: #000000;
}
.dropdown-menu > li > a:hover{
background-color:#dc7e4a;
text-decoration: none;
}
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus {
background-color: #7da066;
color: #ffffff;
}
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
background-color:#dc7e4a;
text-decoration: none;
}
/* ------MOBILE NAV------ */
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
background-color: #dc7e4a;
}
.navbar-inverse .navbar-toggle {
border-color: #dc7e4a;
}
@media (max-width: 767px) {
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #dc7e4a;
}
}
/* -------------------- BANNER ABOVE NAVBAR -------------------- */
#banner {
background-color: #8966a0;
background-color: #ffffff;
}
#banner h1 {
font-family: 'Arvo', serif;
font-weight:700;
color: #FFF;
color: #8966a0;
text-align:center;
margin-top:0;
}
@ -76,7 +115,7 @@ body {
#banner h2 {
font-family: 'Quicksand', sans-serif;
font-weight:700;
color: #FFF;
color: #dc7e4a;
text-align:center;
margin-top:0;
margin-bottom:1em;
@ -259,3 +298,23 @@ fieldset[disabled] .btn-default.focus {
.blog-title h1 a {
text-decoration: none;
}
/* --------------------IMGS STEERING COMMITEE--------------------------*/
.rounded-circle {
border-radius: 50%;
}
.img-fluid {
max-width: 100%;
height: auto;
}
.d-block {
display: block!important;
}
.mx-auto {
margin-right: auto!important;
margin-left: auto!important;
}

View File

@ -37,8 +37,8 @@ ${template_hooks['extra_head']()}
<div class="collapse navbar-collapse" id="bs-navbar" aria-expanded="false">
<ul class="nav navbar-nav">
${base.html_navigation_links()}
<li><a href="https://osf.io/preprints/lissa/discover">Scholarship</a></li>
<li><a href="https://osf.io/preprints/lissa/submit">Submit</a></li>
<li><a href="https://osf.io/preprints/lissa/discover">Discover Works <span class="glyphicon glyphicon-new-window"></span></a></li>
<li><a href="https://osf.io/preprints/lissa/submit">Submit <span class="glyphicon glyphicon-new-window"></span></a></li>
${template_hooks['menu']()}
</ul>
%if search_form:

View File

@ -15,7 +15,6 @@
% if 'main_index' in pagekind:
${front_index_header}
% endif
<h1 class="blog-title">What's in the LIS Scholarship Archive</h1>
<div class="postindex">
% for post in posts:
<article class="h-entry post-${post.meta('type')}">

View File

@ -1,40 +0,0 @@
## -*- coding: utf-8 -*-
<%def name="html_pager()">
%if prevlink or nextlink:
<nav class="postindexpager">
<ul class="pager">
%if prevlink:
<li class="previous">
<a href="${prevlink}" rel="prev">${messages("Newer posts")}</a>
</li>
%endif
%if nextlink:
<li class="next">
<a href="${nextlink}" rel="next">${messages("Older posts")}</a>
</li>
%endif
</ul>
</nav>
%endif
</%def>
<%def name="mathjax_script(posts)">
%if any(post.is_mathjax for post in posts):
%if use_katex:
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>
<script>
renderMathInElement(document.body);
</script>
%else:
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
% if mathjax_config:
${mathjax_config}
% else:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$latex ','$'], ['\\(','\\)']]}});
</script>
% endif
%endif
%endif
</%def>

View File

@ -1,59 +0,0 @@
## -*- coding: utf-8 -*-
<%namespace name="helper" file="post_helper.tmpl"/>
<%namespace name="pheader" file="post_header.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%inherit file="base.tmpl"/>
<%block name="extra_head">
${parent.extra_head()}
% if post.meta('keywords'):
<meta name="keywords" content="${post.meta('keywords')|h}">
% endif
%if post.description():
<meta name="description" itemprop="description" content="${post.description()|h}">
%endif
<meta name="author" content="${post.author()|h}">
%if post.prev_post:
<link rel="prev" href="${post.prev_post.permalink()}" title="${post.prev_post.title()|h}" type="text/html">
%endif
%if post.next_post:
<link rel="next" href="${post.next_post.permalink()}" title="${post.next_post.title()|h}" type="text/html">
%endif
% if post.is_draft:
<meta name="robots" content="noindex">
% endif
${helper.open_graph_metadata(post)}
${helper.twitter_card_information(post)}
${helper.meta_translations(post)}
</%block>
<%block name="content">
<article class="post-${post.meta('type')} h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">
${pheader.html_post_header()}
<div class="e-content entry-content" itemprop="articleBody text">
${post.text()}
</div>
<aside class="postpromonav">
<nav>
${helper.html_tags(post)}
${helper.html_pager(post)}
</nav>
</aside>
% if not post.meta('nocomments') and site_has_comments:
<section class="comments hidden-print">
<h2>${messages("Comments")}</h2>
${comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path)}
</section>
% endif
${helper.mathjax_script(post)}
</article>
${comments.comment_link_script()}
</%block>
<%block name="sourcelink">
% if show_sourcelink:
<li>
<a href="${post.source_link()}" id="sourcelink">${messages("Source")}</a>
</li>
% endif
</%block>

View File

@ -1,52 +0,0 @@
## -*- coding: utf-8 -*-
<%namespace name="helper" file="post_helper.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%def name="html_title()">
%if title and not post.meta('hidetitle'):
<h1 class="p-name entry-title" itemprop="headline name"><a href="${post.meta('link')}" class="u-url">${post.title()|h}</a></h1>
%endif
</%def>
<%def name="html_translations(post)">
% if len(post.translated_to) > 1:
<div class="metadata posttranslations translations">
<h3 class="posttranslations-intro">${messages("Also available in:")}</h3>
% for langname in sorted(translations):
% if langname != lang and post.is_translation_available(langname):
<p><a href="${post.permalink(langname)}" rel="alternate" hreflang="${langname}">${messages("LANGUAGE", langname)}</a></p>
% endif
% endfor
</div>
% endif
</%def>
<%def name="html_sourcelink()">
% if show_sourcelink:
<p class="sourceline"><a href="${post.source_link()}" id="sourcelink">${messages("Source")}</a></p>
% endif
</%def>
<%def name="html_post_header()">
<header>
${html_title()}
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">
% if author_pages_generated:
<a href="${_link('author', post.author())}">${post.author()|h}</a>
% else:
<a href="../../who-we-are">${post.author()|h}</a>
% endif
</span></p>
<p class="dateline"><a href="${post.permalink()}" rel="bookmark"><time class="published dt-published" datetime="${post.formatted_date('webiso')}" itemprop="datePublished" title="${post.formatted_date(date_format)|h}">${post.formatted_date(date_format)|h}</time></a></p>
% if not post.meta('nocomments') and site_has_comments:
<p class="commentline">${comments.comment_link(post.permalink(), post._base_path)}
% endif
${html_sourcelink()}
%if post.description():
<meta name="description" itemprop="description" content="${post.description()|h}">
%endif
</div>
${html_translations(post)}
</header>
</%def>

View File

@ -1,116 +0,0 @@
## -*- coding: utf-8 -*-
<%def name="meta_translations(post)">
%if len(translations) > 1:
%for langname in sorted(translations):
%if langname != lang and ((not post.skip_untranslated) or post.is_translation_available(langname)):
<link rel="alternate" hreflang="${langname}" href="${post.permalink(langname)}">
%endif
%endfor
%endif
</%def>
<%def name="html_tags(post)">
%if post.tags:
<ul itemprop="keywords" class="tags">
%for tag in post.tags:
% if tag not in hidden_tags:
<li><a class="tag p-category" href="${_link('tag', tag)}" rel="tag">${tag|h}</a></li>
% endif
%endfor
</ul>
%endif
</%def>
<%def name="html_pager(post)">
%if post.prev_post or post.next_post:
<ul class="pager hidden-print">
%if post.prev_post:
<li class="previous">
<a href="${post.prev_post.permalink()}" rel="prev" title="${post.prev_post.title()|h}">${messages("Previous post")}</a>
</li>
%endif
%if post.next_post:
<li class="next">
<a href="${post.next_post.permalink()}" rel="next" title="${post.next_post.title()|h}">${messages("Next post")}</a>
</li>
%endif
</ul>
%endif
</%def>
<%def name="open_graph_metadata(post)">
%if use_open_graph:
<meta property="og:site_name" content="${blog_title|h}">
<meta property="og:title" content="${post.title()[:70]|h}">
<meta property="og:url" content="${abs_link(permalink)}">
%if post.description():
<meta property="og:description" content="${post.description()[:200]|h}">
%else:
<meta property="og:description" content="${post.text(strip_html=True)[:200]|h}">
%endif
%if post.previewimage:
<meta property="og:image" content="${url_replacer(permalink, post.previewimage, lang, 'absolute')}">
%endif
<meta property="og:type" content="article">
### Will only work with Pintrest and breaks everywhere else who expect a [Facebook] URI.
### %if post.author():
### <meta property="article:author" content="${post.author()|h}">
### %endif
%if post.date.isoformat():
<meta property="article:published_time" content="${post.formatted_date('webiso')}">
%endif
%if post.tags:
%for tag in post.tags:
<meta property="article:tag" content="${tag|h}">
%endfor
%endif
%endif
</%def>
<%def name="twitter_card_information(post)">
%if twitter_card and twitter_card['use_twitter_cards']:
<meta name="twitter:card" content="${twitter_card.get('card', 'summary')|h}">
%if 'site:id' in twitter_card:
<meta name="twitter:site:id" content="${twitter_card['site:id']}">
%elif 'site' in twitter_card:
<meta name="twitter:site" content="${twitter_card['site']}">
%endif
%if 'creator:id' in twitter_card:
<meta name="twitter:creator:id" content="${twitter_card['creator:id']}">
%elif 'creator' in twitter_card:
<meta name="twitter:creator" content="${twitter_card['creator']}">
%endif
%endif
</%def>
<%def name="mathjax_script(post)">
%if post.is_mathjax:
%if use_katex:
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/contrib/auto-render.min.js"></script>
% if katex_auto_render:
<script>
renderMathInElement(document.body,
{
${katex_auto_render}
}
);
</script>
% else:
<script>
renderMathInElement(document.body);
</script>
% endif
%else:
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
% if mathjax_config:
${mathjax_config}
% else:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$latex ','$'], ['\\(','\\)']]}});
</script>
% endif
%endif
%endif
</%def>

View File

@ -1,20 +0,0 @@
## -*- coding: utf-8 -*-
<%inherit file="index.tmpl"/>
<%block name="extra_head">
${parent.extra_head()}
% if generate_atom:
<link rel="alternate" type="application/atom+xml" title="Atom for the ${posts[0].section_name()|h} section" href="${_link('section_index_atom', posts[0].section_slug())}">
% endif
</%block>
<%block name="content">
<div class="sectionindex">
<header>
% if generate_atom:
<p class="feedlink"><a href="${_link('section_index_atom', posts[0].section_slug())}" type="application/atom+xml">${messages('Updates')}</a></p>
% endif
</header>
${parent.content()}
</div>
</%block>