Cleaned out public from repository, updated gitignore, added syntax

highlighting tests, improved syntax highlighting and styling of pre
blocks.
Overriding dynamic gist styling.
Added a plugin for pygments caching which should speed things up
terrifically.
added ender.js as a lightweight way of scripting the DOM, events, etc.
Some general typography and semantic html improvements.
This commit is contained in:
Brandon Mathis 2011-05-30 00:30:16 -04:00
parent c7d5365f81
commit 8698a276f9
74 changed files with 6018 additions and 1992 deletions

View file

@ -1,18 +1,27 @@
<header>
<h1><a href="{{ page.url }}">{{ page.title }}</a></h1>
<p>
{% if site.author or site.author == page.author %}
<span class="byline author vcard">By <span class="fn">{{ site.author }}</span></span>
{% elsif page.author %}
<span class="byline author vcard">By <span class="fn">{{ page.author }}</span></span>
{% if index %}
<h1><a href="{{ page.url }}">{{ page.title }}</a></h1>
{% else %}
<h1>{{ page.title }}</h1>
{% endif %}
{% unless page.nometa %}
{% if page.author %}
{% assign author = page.author %}
{% else %}
{% assign author = site.author %}
{% endif %}
{% if page.date %}
<time datetime="{{ page.date | datetime }}" pubdate>{{ page.date | ordinalize }}</time>
{% endif %}
{% if page.updated %}
<time class="updated" datetime="{{ page.updated | datetime }}" pubdate>Updated {{ page.updated | ordinalize }}</time>
{% endif %}
</p>
<p>
{% if author %}
<span class="byline author vcard">By <span class="fn">{{ author }}</span></span>
{% endif %}
{% if page.date %}
<time datetime="{{ page.date | datetime }}" pubdate>{{ page.date | ordinalize }}</time>
{% endif %}
{% if page.updated %}
<time class="updated" datetime="{{ page.updated | datetime }}" pubdate>Updated {{ page.updated | ordinalize }}</time>
{% endif %}
</p>
{% endunless %}
</header>
{% if index %}
<div class="entry">{{ content | exerpt(content, page.url, 'Continue reading &raquo;') | smart_quotes }}</div>

View file

@ -3,9 +3,9 @@
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
{% if site.pinboard_user %}
<script language="javascript">
var pinboard_user = "{{ site.pinboard_user }}";
var pinboard_count = "{{ site.pinboard_count }}";
</script>
<script language="javascript" src="/javascripts/pinboard.js"></script>
<script language="javascript">
var linkroll = 'pinboard_linkroll'; //id target for pinboard list
pinboardNS_fetch_script("http://feeds.pinboard.in/json/v1/u:{{ site.pinboard_user }}/?cb=pinboardNS_show_bmarks\&count={{ site.pinboard_count }}");
</script>
{% endif %}

View file

@ -1,7 +1,16 @@
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7" manifest="default.appcache?v=1"><![endif]-->
<!--[if lt IE 7 ]><html class="no-js ie6" lang="en"><![endif]-->
<!--[if IE 7 ]><html class="no-js ie7" lang="en"><![endif]-->
<!--[if IE 8 ]><html class="no-js ie8" lang="en"><![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" manifest="default.appcache?v=1" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>{{page.title}} - {{site.title}}</title>
{% if page.title %}
<title>{{site.title}}: {{page.title}}{% if site.author %} - {{ site.author }}{% endif %}</title>
{% else %}
<title>{{site.title}}{% if site.author %} - {{ site.author }}{% endif %}</title>
{% endif %}
<meta name="author" content="{{site.author}}">
{% if page.description %}
<meta name="description" content="{{page.description}}"/>
@ -10,7 +19,7 @@
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if page.keywords %}
<meta name="keywords" content="{{page.keywords}}"/>
@ -18,8 +27,12 @@
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<!--<script src="/javascripts/octopress.js" type="text/javascript"></script>-->
<script src="javascripts/libs/modernizr-1.7.min.js"></script>
<script src="javascripts/libs/ios-viewport-scaling-bug-fix.js"></script>
<script src="/javascripts/libs/modernizr-1.7.js"></script>
<script src="/javascripts/libs/ios-viewport-scaling-bug-fix.js"></script>
<script src="/javascripts/libs/json2.js"></script>
<script src="/javascripts/libs/jXHR.js"></script>
<script src="/javascripts/libs/ender.js"></script>
<script src="/javascripts/syntax-helper.js"></script>
{% if site.google_analytics_tracking_id %}
{% include google_analytics.html %}
{% endif %}

View file

@ -2,14 +2,13 @@
<h1>About Me</h1>
<p>Hi, I'm Octopress!</p>
</section>
{% if site.recent_posts %}
{% if page.single and site.recent_posts %}
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
{% for post in site.posts limit: site.recent_posts %}
<li class="post">
<a href="{{ post.url }}">{{ post.title }}</a>
<time>{{ post.date | date: "%B %d, %Y" }}</time>
</li>
{% endfor %}
</ul>
@ -24,3 +23,4 @@
{% if site.pinboard_user %}
<section>{% include pinboard.html %}</section>
{% endif %}