diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/404.html | 3 | ||||
-rw-r--r-- | theme/templates/500.html | 3 | ||||
-rw-r--r-- | theme/templates/archives.html | 11 | ||||
-rw-r--r-- | theme/templates/article.html | 48 | ||||
-rw-r--r-- | theme/templates/author.html | 7 | ||||
-rw-r--r-- | theme/templates/authors.html | 13 | ||||
-rw-r--r-- | theme/templates/base.html | 91 | ||||
-rw-r--r-- | theme/templates/categories.html | 8 | ||||
-rw-r--r-- | theme/templates/category.html | 5 | ||||
-rw-r--r-- | theme/templates/index.html | 94 | ||||
-rw-r--r-- | theme/templates/page.html | 15 | ||||
-rw-r--r-- | theme/templates/pagination.html | 11 | ||||
-rw-r--r-- | theme/templates/period_archives.html | 11 | ||||
-rw-r--r-- | theme/templates/simple_base.html | 63 | ||||
-rw-r--r-- | theme/templates/simple_index.html | 28 | ||||
-rw-r--r-- | theme/templates/tag.html | 0 | ||||
-rw-r--r-- | theme/templates/tags.html | 10 | ||||
-rw-r--r-- | theme/templates/translations.html | 9 |
18 files changed, 430 insertions, 0 deletions
diff --git a/theme/templates/404.html b/theme/templates/404.html new file mode 100644 index 0000000..e1f116e --- /dev/null +++ b/theme/templates/404.html @@ -0,0 +1,3 @@ +{% extends "base.html"%} +{% block title %}For oh four{% endblock %} +{% block content %}Whoopsie!{% endblock %} diff --git a/theme/templates/500.html b/theme/templates/500.html new file mode 100644 index 0000000..78786b7 --- /dev/null +++ b/theme/templates/500.html @@ -0,0 +1,3 @@ +{% extends "base.html"%} +{% block title %}Server Error{% endblock %} +{% block content %}Sorry...{% endblock %} diff --git a/theme/templates/archives.html b/theme/templates/archives.html new file mode 100644 index 0000000..050f268 --- /dev/null +++ b/theme/templates/archives.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block content %} +<h1>Archives for {{ SITENAME }}</h1> + +<dl> +{% for article in dates %} + <dt>{{ article.locale_date }}</dt> + <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd> +{% endfor %} +</dl> +{% endblock %} diff --git a/theme/templates/article.html b/theme/templates/article.html new file mode 100644 index 0000000..d558183 --- /dev/null +++ b/theme/templates/article.html @@ -0,0 +1,48 @@ +{% extends "base.html" %} +{% block head %} + {{ super() }} + {% for keyword in article.keywords %} + <meta name="keywords" content="{{keyword}}" /> + {% endfor %} + + {% for description in article.description %} + <meta name="description" content="{{description}}" /> + {% endfor %} + + {% for tag in article.tags %} + <meta name="tags" content="{{tag}}" /> + {% endfor %} + +{% endblock %} + +{% block content %} +<section id="content" class="body"> + <header> + <h2 class="entry-title"> + <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" + title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} + </header> + <footer class="post-info"> + <abbr class="published" title="{{ article.date.isoformat() }}"> + {{ article.locale_date }} + </abbr> + {% if article.modified %} + <abbr class="modified" title="{{ article.modified.isoformat() }}"> + {{ article.locale_modified }} + </abbr> + {% endif %} + {% if article.authors %} + <address class="vcard author"> + By {% for author in article.authors %} + <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> + {% endfor %} + </address> + {% endif %} + </footer><!-- /.post-info --> + <div class="entry-content"> + {{ article.content }} + </div><!-- /.entry-content --> +</section> +{% endblock %} diff --git a/theme/templates/author.html b/theme/templates/author.html new file mode 100644 index 0000000..e9f7870 --- /dev/null +++ b/theme/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} +{% block content_title %} +<h2>Articles by {{ author }}</h2> +{% endblock %} + diff --git a/theme/templates/authors.html b/theme/templates/authors.html new file mode 100644 index 0000000..4914904 --- /dev/null +++ b/theme/templates/authors.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Authors{% endblock %} + +{% block content %} + <h1>Authors on {{ SITENAME }}</h1> + + <ul> + {%- for author, articles in authors|sort %} + <li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> +{% endblock %} diff --git a/theme/templates/base.html b/theme/templates/base.html new file mode 100644 index 0000000..5c9fb0e --- /dev/null +++ b/theme/templates/base.html @@ -0,0 +1,91 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +{% block head %} +<title>{% block title %}{{ SITENAME }}{% endblock title %}</title> +<meta charset="utf-8" /> +{% if FEED_ALL_ATOM %} +<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" /> +{% endif %} +{% if FEED_ALL_RSS %} +<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" /> +{% endif %} +{% if FEED_ATOM %} +<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" /> +{% endif %} +{% if FEED_RSS %} +<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> +{% endif %} +{% if CATEGORY_FEED_ATOM and category %} +<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" /> +{% endif %} +{% if CATEGORY_FEED_RSS and category %} +<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" /> +{% endif %} +{% if TAG_FEED_ATOM and tag %} +<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" /> +{% endif %} +{% if TAG_FEED_RSS and tag %} +<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" /> +{% endif %} +{% block stylesheets %} +<link rel="stylesheet" type="text/css" href="/static/style/reset.css" /> +<link rel="stylesheet" type="text/css" href="/static/style/default.css" /> +<link rel="stylesheet" type="text/css" href="/static/style/commentary.css" /> +<link rel="icon" href="http://static.bnewbold.net/img/nudie_favicon.png" /> +{% endblock %} +{% block externaljs %} {% endblock %} {% block otherhead %} {% endblock %} +{% endblock head %} +</head> +<body> +<div id="top_bar"> + <div id="top_bar_content"> + <span class="righty"> + <a href="http://journal.bnewbold.net">journal</a> + <a href="/photos/">photos</a> + <a href="http://git.bnewbold.net/">code</a> + <a href="http://know.bnewbold.net/">knowledge</a></span> + <span class="lefty"><a href="/">bnewbold.net</a></span> + </div> +</div> +<div class="content" id="main_title"> +<div class="right_stuff"> +<form name="search" method="get" action="https://www.google.com/search"> +<br/> +<input class="search_box" type="text" size="21" value=" search!" + name="q" id="search_text" + onfocus="var box=document.forms['search'].elements['q']; if(box.value == ' search!') box.value=''; return;" /> +<input type="hidden" name="domains" value="bnewbold.net" /> +<input type="hidden" name="sitesearch" value="bnewbold.net" /> +</form> +<span class="righty"></span> +</div> +<span class="path"> +{% block path %}{% endblock %} +</span> +<h1 class="content_title">{% block pagetitle %}Hey Hey Hey!{% endblock %}</h1> +<h2 class="content_subtitle">{% block pagesubtitle %}{% endblock %}</h2> +<div class="right_stuff"> +{% block right_stuff %} +{% endblock %} +</div> +</div> + + +<div class="content" id="main_content"> +{% block content %} +Here lies content! +{% endblock %} +</div> +{% block commentary %} {% endblock %} +<div class="content_footer" id="footer"> + +<a href="/">home</a> +<a href="/about/">about</a> +<a href="/credits/">credits</a> +<a href="mailto:webmeisterATbnewbold.net">email the webmaster</a> +produced 2007-2015 by bryan newbold, <a href="/copyright/">all rights ignored</a> +</div> +</body> +</html> diff --git a/theme/templates/categories.html b/theme/templates/categories.html new file mode 100644 index 0000000..e29be0c --- /dev/null +++ b/theme/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} +<ul> +{% for category, articles in categories %} + <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li> +{% endfor %} +</ul> +{% endblock %} diff --git a/theme/templates/category.html b/theme/templates/category.html new file mode 100644 index 0000000..4e6fd24 --- /dev/null +++ b/theme/templates/category.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} +{% block content_title %} +<h2>Articles in the {{ category }} category</h2> +{% endblock %} + diff --git a/theme/templates/index.html b/theme/templates/index.html new file mode 100644 index 0000000..33f1a6a --- /dev/null +++ b/theme/templates/index.html @@ -0,0 +1,94 @@ +{% extends "base.html" %} + +{% block overhead %} +<link rel="openid.server" href="http://www.myopenid.com/server" /> +<link rel="openid.delegate" href="http://bnewbold.myopenid.com" /> +<meta http-equiv="X-XRDS-Location" content="http://bnewbold.myopenid.com/xrds" /> +<link rel="stylesheet" type="text/css" href="/static/style/git_wiki.css" /> +{% endblock %} + +{% block path %}{% endblock %} + +{% block pagetitle %}{% endblock %} + +{% block right_stuff %} +<br /> +<br /> +<br /> +<br /> +RSS feeds: <br /> + - <a href="/journal/rss/latest_links/"> web links</a><br /> + - <a href="http://git.bnewbold.net/?p=bnewnet.git;a=rss;opt=--no-merges"> site code changes</a><br /> +<br /><br /> +Other sites: <br /> + - <a href="https://github.com/bnewbold"> github</a><br /> + - <a href="https://keybase.io/bnewbold"> keybase</a><br /> + - <a href="http://equator.memeschemes.com"> equator</a><br /> +{% endblock %} + +{% block content %} +<br /> +<center><img style="border: none;" src="/static/img/iceland_beach.jpg"></center> +<br /> +<br /> + <h3>Where am I?</h3> +As of Fall 2015 I am living in Seattle (WA) working as a freelance embedded +engineer. I spent the last year working remotely, building digital control +systems for optical atomic magnetometers at +<a href="http://www.twinleaf.com">Twinleaf </a>, a small company headquartered +in Princeton, NJ. + +<!-- +As of Summer 2014 i'm living in Princeton (NJ) building digital control systems +for optical atomic magnetometers for a <a href="http://www.twinleaf.com">small +company</a>. I spent the last year living in a co-op in Cambridge (MA) working +on various embedded engineering projects. In the fall I will be moving to West +to Seattle. +--> +<!-- +As of Fall 2012 i'm living in Berlin designing an open wireless router called +<a href="http://rooter.is">rooter</a>. I spent the past year living in New York +City working at <a href="http://octopart.com">Octopart</a> (an electronic parts +search engine), building <a href="http://thefnf.org">Free Networks</a>, +watching <a href="http://toorcamp.org">blinkenlights</a> on far shores, and +tramping around Iceland and the UK. +--> +<!-- + As of Spring 2011 I am living in New York City working at <a + href="http://octopart.com">Octopart</a>. I spent the past year working with + friends at <a href="http://leaflabs.com">LeafLabs</a> (an open source hardware + startup in Cambridge) and the <a href="http://www.cfa.harvard.edu/">Harvard + Center for Astrophysics</a>, as well as traveling to Newfoundland/Labrador and + <a href="http://s3.amazonaws.com/data.tumblr.com/tumblr_lf6yjdx8mB1qae4w7o1_1280.jpg?AWSAccessKeyId=AKIAJ6IHWSU3BX3X7X3Q&Expires=1305862294&Signature=eHzThxstLcQh5FE%2FJlmfX8YMyjs%3D">Iceland</a>. +--> + +<i><a href="/whatsup/"> More...</a></i> +<br /> + +<br /> + +<!-- +<h2 class="ruled">Photos!</h2> +{% if latest_galleries %} + Most recently I have shots from: + {% for gallery in latest_galleries %} + <a href="{{gallery.get_absolute_url}}">{{gallery.title}}</a> + {% endfor %} +{% endif %} +{% if latest_photos %} +<br /> +<table class="thumbs" width="100%"><tbody><tr> +{% for photo in latest_photos %} +<td class="photo_thumb"> +<a href="{{ photo.get_absolute_url }}"><img src="{{ photo.thumburl }}" + alt="{{ photo.title }}" /></a> </td> +{% endfor %} +</tbody></table> +{% else %} +<br/><br />None yet! +{% endif %} +<br /> +<br /><br /> +--> +{% endblock %} + diff --git a/theme/templates/page.html b/theme/templates/page.html new file mode 100644 index 0000000..5ceb779 --- /dev/null +++ b/theme/templates/page.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{%endblock%} +{% block content %} + <h1>{{ page.title }}</h1> + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + + {{ page.content }} + + {% if page.modified %} + <p> + Last updated: {{ page.locale_modified }} + </p> + {% endif %} +{% endblock %} diff --git a/theme/templates/pagination.html b/theme/templates/pagination.html new file mode 100644 index 0000000..4219a5c --- /dev/null +++ b/theme/templates/pagination.html @@ -0,0 +1,11 @@ +{% if DEFAULT_PAGINATION %} +<p class="paginator"> + {% if articles_page.has_previous() %} + <a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a> + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + <a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a> + {% endif %} +</p> +{% endif %} diff --git a/theme/templates/period_archives.html b/theme/templates/period_archives.html new file mode 100644 index 0000000..d930dbb --- /dev/null +++ b/theme/templates/period_archives.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block content %} +<h1>Archives for {{ period | reverse | join(' ') }}</h1> + +<dl> +{% for article in dates %} + <dt>{{ article.locale_date }}</dt> + <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd> +{% endfor %} +</dl> +{% endblock %} diff --git a/theme/templates/simple_base.html b/theme/templates/simple_base.html new file mode 100644 index 0000000..bde7983 --- /dev/null +++ b/theme/templates/simple_base.html @@ -0,0 +1,63 @@ +<!DOCTYPE html> +<html lang="{{ DEFAULT_LANG }}"> +<head> + {% block head %} + <title>{% block title %}{{ SITENAME }}{% endblock title %}</title> + <meta charset="utf-8" /> + {% if FEED_ALL_ATOM %} + <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" /> + {% endif %} + {% if FEED_ALL_RSS %} + <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" /> + {% endif %} + {% if FEED_ATOM %} + <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" /> + {% endif %} + {% if FEED_RSS %} + <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> + {% endif %} + {% if CATEGORY_FEED_ATOM and category %} + <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" /> + {% endif %} + {% if CATEGORY_FEED_RSS and category %} + <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" /> + {% endif %} + {% if TAG_FEED_ATOM and tag %} + <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" /> + {% endif %} + {% if TAG_FEED_RSS and tag %} + <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" /> + {% endif %} + {% endblock head %} +</head> + +<body id="index" class="home"> + <header id="banner" class="body"> + <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1> + </header><!-- /#banner --> + <nav id="menu"><ul> + {% for title, link in MENUITEMS %} + <li><a href="{{ link }}">{{ title }}</a></li> + {% endfor %} + {% if DISPLAY_PAGES_ON_MENU %} + {% for p in PAGES %} + <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> + {% endfor %} + {% else %} + {% if DISPLAY_CATEGORIES_ON_MENU %} + {% for cat, null in categories %} + <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> + {% endfor %} + {% endif %} + {% endif %} + </ul></nav><!-- /#menu --> + {% block content %} + {% endblock %} + <footer id="contentinfo" class="body"> + <address id="about" class="vcard body"> + Proudly powered by <a href="http://getpelican.com/">Pelican</a>, + which takes great advantage of <a href="http://python.org">Python</a>. + </address><!-- /#about --> + </footer><!-- /#contentinfo --> +</body> +</html> diff --git a/theme/templates/simple_index.html b/theme/templates/simple_index.html new file mode 100644 index 0000000..4bd8198 --- /dev/null +++ b/theme/templates/simple_index.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block content %} +<section id="content"> +{% block content_title %} +<h2>All articles</h2> +{% endblock %} + +<ol id="post-list"> +{% for article in articles_page.object_list %} + <li><article class="hentry"> + <header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header> + <footer class="post-info"> + <abbr class="published" title="{{ article.date.isoformat() }}"> {{ article.locale_date }} </abbr> + <address class="vcard author">By + {% for author in article.authors %} + <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> + {% endfor %} + </address> + </footer><!-- /.post-info --> + <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content --> + </article></li> +{% endfor %} +</ol><!-- /#posts-list --> +{% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} +{% endif %} +</section><!-- /#content --> +{% endblock content %} diff --git a/theme/templates/tag.html b/theme/templates/tag.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/theme/templates/tag.html diff --git a/theme/templates/tags.html b/theme/templates/tags.html new file mode 100644 index 0000000..b5d1482 --- /dev/null +++ b/theme/templates/tags.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Tags{% endblock %} + +{% block content %} + <h1>Tags for {{ SITENAME }}</h1> + {%- for tag, articles in tags|sort %} + <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> + {% endfor %} +{% endblock %} diff --git a/theme/templates/translations.html b/theme/templates/translations.html new file mode 100644 index 0000000..db8c372 --- /dev/null +++ b/theme/templates/translations.html @@ -0,0 +1,9 @@ +{% macro translations_for(article) %} +{% if article.translations %} +Translations: +{% for translation in article.translations %} +<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a> +{% endfor %} +{% endif %} +{% endmacro %} + |