Skip to content
Snippets Groups Projects
Commit 41b1981d authored by William Light's avatar William Light
Browse files

initial commit

parents
Branches
No related tags found
No related merge requests found
# mockingbird for pelican
this is a port of [Nevan Scott]'s [Mockingbird] theme, originally developed for
Chyrp.
this thing is still hella in progress you guys, you probably shouldn't use it yet.
## Authors
* [Nevan Scott] (original author)
* [wrl] (port to pelican)
## License
none specified in the original project, none specified here?????
[Nevan Scott]: http://nevanscott.com/
[Mockingbird]: https://github.com/nevanscott/Mockingbird
[wrl]: http://github.com/wrl
* { background: #fff; }
body { font-family: georgia, times, serif; color: black; }
blockquote { font-style: italic; color: black; }
a:link, a:visited { border-bottom-width: 1px; border-bottom-style: solid; }
#sidebar { display: none; }
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* Mockingbird Theme by Nevan Scott nevanscott.com */
body {
font-family: Georgia, serif;
font-size: 16px;
line-height: 1.5em;
color: #444;
}
#header, #wrapper, #controls ul {
width: 700px;
margin: 0 0 0 185px;
padding: 0 20px;
}
#controls{overflow:hidden; *overflow:visible;*zoom:1;}
#controls {
background: #EEE;
-webkit-box-shadow: inset 0 -2px 3px rgba(0,0,0,.1);
-moz-box-shadow: inset 0 -2px 3px rgba(0,0,0,.1);
box-shadow: inset 0 -2px 3px rgba(0,0,0,.1);
}
#controls li { float: left; }
#controls li a { display: block; margin-right: 20px; line-height: 2em; }
a {
text-decoration: none;
color: #000;
}
p a {
text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
font-family: sans-serif;
font-weight: bold;
}
h1, h2, h3 {
font-size: 1.5em;
line-height: 1em;
margin: 1em 0;
}
p, h4, h5, h6 {
margin: 1.5em 0;
}
blockquote {
margin: 1.5em 1.5em 1.5em .75em;
padding-left: .75em;
border-left: 1px solid #EEE;
}
.date {
color: #DDD;
float: left;
clear: both;
width: 160px;
font-size: 1.5em;
line-height: 1em;
margin: 0 20px 1em 0;
}
.post {
margin: 0 0 4.5em 180px;
}
.post.archives {
margin-bottom: 1.5em;
}
.post.pinned {
clear: both;
margin-left: 0;
margin-bottom: 3em;
background-color: #EEE;
color: #000;
padding: 1px 20px 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
}
.info {
font-family: sans-serif;
text-align: right;
color: #CCC;
}
.info a {
color: inherit;
}
.info .tags a {
background: #CCC;
color: #FFF;
display: inline-block;
padding: 0 .3em;
border: 1px transparent solid;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
}
.info .tags a:hover {
background: inherit;
color: inherit;
}
.info .tags a.selected {
border: 1px #999 solid;
}
.post .controls {
float: left;
visibility: hidden;
}
.post:hover .controls {
visibility: visible;
}
.page {
margin: 0 90px;
}
form.inline_edit {
clear: both;
margin: 4.5em 0;
background-color: #DDD;
color: #000;
padding: 20px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.inline_edit .sub {
color: #888;
white-space: nowrap;
}
.inline_edit label {
float: left;
clear: both;
width: 140px;
margin-right: 20px;
}
.inline_edit .buttons {
display: block;
text-align: right;
}
#nav {
float: right;
list-style: none;
margin: 0 0 0 3em;
padding: 0;
}
#nav li {
float: left;
}
#nav a {
display: block;
padding: 4.5em 10px 10px 10px;
}
#nav a:hover {
background-color: #DDD;
}
#nav li.selected a {
background-color: #000;
color: #FFF;
}
#nav li.ephemeral.selected a {
background-color: #FFF;
border: 0 #000 solid;
border-width: 0 1px 1px 1px;
color: #444;
}
#header .header_box {
padding-top: 4.5em;
}
#header h1 {
font-size: 1.5em;
line-height: 1em;
margin: 0;
}
#header h2 {
font-size: 1em;
margin: .3em 0;
color: #DDD;
}
#content {
margin-top: 3em;
}
.pages {
font-family: sans-serif;
line-height: 2.5em;
margin: 4.5em 0 3em;
background-color: #EEE;
color: #444;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.pages a.next_page {
float: right;
width: 140px;
text-align: center;
-moz-border-radius-topright: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.pages a.prev_page {
float: left;
width: 140px;
text-align: center;
-moz-border-radius-topleft: 5px;
-moz-border-radius-bottomleft: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.pages a {
color: inherit;
border: none;
}
.pages a:hover {
background-color: #DDD;
}
.pages span {
display: block;
margin: 0 160px;
text-align: center;
}
#footer {
font-family: sans-serif;
line-height: 2.5em;
text-align: center;
color: #CCC;
margin: 3em 0;
border: 1px solid #EEE;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
#footer a { color: inherit; }
#footer p { margin: 0; }
.notice {
text-align: center;
margin: 1.5em 0;
background-color: #DDD;
color: #000;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.right { float: right; }
.clear { clear: both; }
{% extends "base.html" %}
{% block content %}
{%- if dates %}
<h1>Archives</h1>
{#- hold on to your butts! #}
{% set month = None -%}
{%- for article in dates -%}
{% set cmonth = article.date.date().replace(day=1) %}
{%- if not month -%}
{% set month = cmonth %}
<h4 class="date">{{ article.date.strftime("%b %Y") }}</h4>
<div class="post archives">
<ul>
{%- elif cmonth < month -%}
{% set month = cmonth %}
</ul>
<br />
</div>
<h4 class="date">{{ article.date.strftime("%b %Y") }}</h4>
<div class="post archives">
<ul>
{%- endif %}
<li>{{ article.date.strftime("%d") }}: <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title | truncate(70) }}</a></li>
{%- endfor %}
</ul>
<br />
</div>
{% else %}
<div class="post text pinned">
<h2>No Posts</h2>
<p>There aren't any posts in the timeframe specified.</p>
</div>
{% endif %}
{% endblock %}
{% extends "base.html" %}
{% block content %}
{% include "article_stub.html" %}
{% endblock %}
{%- if not articles_page or first_article_of_day %}
<h4 class="date">{{ article.date.strftime("%b %e, %G") }}</h4>
{%- endif %}
<div class="post{% if article.pinned %} pinned{% endif %}">
{% if article['title'] -%}
<h2 class="title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permanent Link to &quot;{{ article.title }}&quot;">{{ article.title }}</a>
</h2>
{% endif %}
{{ article.content }}
<div class="clear"></div>
<div class="info">
{% if article.pinned -%}
<a href="{{ SITEURL }}/{{ article.url }}">posted {{ article.date.strftime("%B %e, %l:%M %P") }}</a>
{%- else -%}
<a href="{{ SITEURL }}/{{ article.url }}">posted at {{ article.date.strftime("%l:%M %P") }}</a>
{%- if article.category.name != "Uncategorized" -%}
&middot; in <a href="{{ SITEURL }}/{{ article.category.url }}" rel="tag">{{ article.category }}</a>
{%- endif %}
{% if article.tags %}
<div class="tags">{% for t in article.tags %}
<a href="{{ SITEURL }}/{{ t.url }}" {%- if tag and tag.name == t.name %} class="selected"{% endif -%}>{{ t }}</a>
{%- endfor %}
</div>
{%- endif %}
{% endif %}
</div>
<div class="clear"></div>
</div>
{% macro ephemeral_nav_link(what, where, selected=False) -%}
<li class="ephemeral{%- if selected %} selected{% endif %}"><a href="{{ SITEURL }}/{{ where }}">{{what}}</a></li>
{%- endmacro -%}
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>{% block title %}{{ SITENAME }}{% if title %} &middot; ${ title | escape }{% endif %}{% endblock %}</title>
<link rel="shortcut icon" href="{{ SITEURL }}/favicon.ico" />
{% if FEED_ALL_ATOM -%}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
{% endif %}
{% if FEED_ALL_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
{% endif %}
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/screen.css" type="text/css" />
</head>
<body>
{% if SITENAME -%}
<div id="header">
<ul id="nav">
{%- block ephemeral_nav %}{%- endblock %}
<li {%- if output_file == "index.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}">Home</a></li>
{% for page in PAGES -%}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor -%}
<li {%- if output_file == "archives.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
</ul>
<div class="header_box">
<h1><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
{%- if SITESUBTITLE %}
<h2>{{ SITESUBTITLE }}</h2>
{%- endif %}
</div>
</div>
{%- endif %}
<div id="wrapper">
<div id="content">
{%- block content -%}{%- endblock %}
<div class="clear"></div>
<div id="footer">
<p>
Mockingbird theme by <a href="http://nevanscott.com/">Nevan Scott</a>
&middot;
<a class="atom" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">Feed</a>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>
{% extends "index.html" %}
{% block title %}{{ SITENAME }} &middot; articles in the "{{ category }}" category{% endblock %}
{% block ephemeral_nav %}
{{ ephemeral_nav_link(category, output_file, True) }}
{%- endblock %}
{% extends "base.html" %}
{% block content %}
{% set date = None %}
{% for article in articles_page.object_list -%}
{% if date != article.date.date() %}
{% set first_article_of_day = True %}
{% else %}
{% set first_article_of_day = False %}
{% endif %}
{% set date = article.date.date() %}
{% include "article_stub.html" %}
{%- else %}
<div class="post text pinned">
<h1>No Posts</h1>
<p>Nothing here yet!</p>
</div>
{% endfor %}
{% include "pagination.html" %}
{% endblock %}
{% if DEFAULT_PAGINATION and (articles_page.has_previous() or articles_page.has_next()) %}
<div class="clear"></div>
<div class="pages">
{%- if articles_page.has_previous() %}
{% if articles_page.previous_page_number() == 1 %}
<a href="{{ SITEURL }}/{{ page_name }}.html" class="prev_page">&larr;&nbsp;Previous</a>
{%- else %}
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html" class="prev_page">&larr;&nbsp;Previous</a>
{%- endif %}
{%- endif %}
{%- if articles_page.has_next() %}
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html" class="next_page">Next&nbsp;&rarr;</a>
{%- endif %}
<span>Page {{ articles_page.number }} of {{ articles_paginator.num_pages }}</span>
</div>
{% endif %}
{% extends "index.html" %}
{% block title %}{{ SITENAME }} &middot; articles tagged "{{ tag }}"{% endblock %}
{% block ephemeral_nav %}
{{ ephemeral_nav_link(tag, output_file, True) }}
{%- endblock %}
{# XXX: make this configurable? #}
{%- set TAG_MIN_EM = 0.75 -%}
{%- set TAG_MAX_EM = 2.5 -%}
{%- macro tag_url(t) -%}{{ SITE_URL }}/tag/{{ t.0 }}.html{%- endmacro -%}
{%- macro tagprio_to_fontsz(p) -%}
{{ ((TAG_MAX_EM - TAG_MIN_EM) / (TAG_CLOUD_STEPS - 1) * (TAG_CLOUD_STEPS - p)) + TAG_MIN_EM }}em
{%- endmacro -%}
{% extends "base.html" %}
{% block ephemeral_nav %}
{{ ephemeral_nav_link("tags", output_file, True) }}
{%- endblock %}
{% block content %}
{% for tag in tag_cloud -%}
<a class="tag" href="{{ tag_url(tag) }}" style="font-size: {{ tagprio_to_fontsz(tag.1) }};" title="{{ tag.0 }}">{{ tag.0 }}</a>
{% else %}
<h1>No tags!</h1>
There aren't any tags yet. Such a shame.
{% endfor %}
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment