diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-06-07 16:12:46 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-06-07 16:12:46 -0400 |
commit | aa230616241321ca9c4b8f4202d045c829527618 (patch) | |
tree | a3421f7253257f8644ff9adb956af3575a4eec9d /themes/classic/source/_includes | |
parent | 6cba2145136309d2ac5202853b554f0471a67bf0 (diff) | |
download | my_new_personal_website-aa230616241321ca9c4b8f4202d045c829527618.tar.xz my_new_personal_website-aa230616241321ca9c4b8f4202d045c829527618.zip |
Added themes directory, improved javascript load and minification.
Diffstat (limited to 'themes/classic/source/_includes')
-rw-r--r-- | themes/classic/source/_includes/article.html | 28 | ||||
-rw-r--r-- | themes/classic/source/_includes/asides/delicious.html | 7 | ||||
-rw-r--r-- | themes/classic/source/_includes/asides/pinboard.html | 19 | ||||
-rw-r--r-- | themes/classic/source/_includes/asides/recent_posts.html | 12 | ||||
-rw-r--r-- | themes/classic/source/_includes/asides/twitter.html | 19 | ||||
-rw-r--r-- | themes/classic/source/_includes/disqus_thread.html | 7 | ||||
-rw-r--r-- | themes/classic/source/_includes/footer.html | 4 | ||||
-rw-r--r-- | themes/classic/source/_includes/google_analytics.html | 13 | ||||
-rw-r--r-- | themes/classic/source/_includes/head.html | 32 | ||||
-rw-r--r-- | themes/classic/source/_includes/header.html | 1 | ||||
-rw-r--r-- | themes/classic/source/_includes/navigation.html | 16 | ||||
-rw-r--r-- | themes/classic/source/_includes/sidebar.html | 8 |
12 files changed, 166 insertions, 0 deletions
diff --git a/themes/classic/source/_includes/article.html b/themes/classic/source/_includes/article.html new file mode 100644 index 00000000..1be65526 --- /dev/null +++ b/themes/classic/source/_includes/article.html @@ -0,0 +1,28 @@ +{% if page.author %} + {% assign author = page.author %} +{% else %} + {% assign author = site.author %} +{% endif %} +<header> + {% if index %} + <h1 class="entry-title"><a href="{{ page.url }}">{{ page.title }}</a></h1> + {% else %} + <h1 class="entry-title">{{ page.title }}</h1> + {% endif %} + {% unless page.nometa %} + <p> + {% if page.date %} + <time datetime="{{ page.date | datetime }}" pubdate {% if page.updated %} updated {% endif %}>{{ page.date | ordinalize }}</time> + {% endif %} + {% if page.updated %} + <time class="updated" datetime="{{ page.updated | datetime }}"></time> + {% endif %} + {% if author %}<span class="byline author vcard">By <span class="fn">{{ author }}</span></span>{% endif %} + </p> + {% endunless %} +</header> +{% if index %} +<div class="entry-content">{{ content | exerpt(content, page.url, 'Continue reading »') | smart_quotes }}</div> +{% else %} +<div class="entry-content">{{ content | smart_quotes }}</div> +{% endif %} diff --git a/themes/classic/source/_includes/asides/delicious.html b/themes/classic/source/_includes/asides/delicious.html new file mode 100644 index 00000000..307a2e94 --- /dev/null +++ b/themes/classic/source/_includes/asides/delicious.html @@ -0,0 +1,7 @@ +{% if site.delicious_user %} +<section> + <h1>On Delicious</h1> + <script type="text/javascript" src="http://feeds.delicious.com/v2/js/{{ site.delicious_user }}?title=&count={{ site.delicious_count }}&sort=date&extended"></script> + <p><a href="http://delicious.com/{{ site.delicious_user }}">My Delicious Bookmarks »</a></p> +</section> +{% endif %} diff --git a/themes/classic/source/_includes/asides/pinboard.html b/themes/classic/source/_includes/asides/pinboard.html new file mode 100644 index 00000000..1cbb1379 --- /dev/null +++ b/themes/classic/source/_includes/asides/pinboard.html @@ -0,0 +1,19 @@ +{% if site.pinboard_user %} +<section> + <h1>My Pinboard</h1> + <ul id="pinboard_linkroll">Fetching linkroll...</ul> + <p><a href="http://pinboard.in/u:{{ site.pinboard_user }}">My Pinboard Bookmarks »</a></p> +</section> +<script type="text/javascript"> + var linkroll = 'pinboard_linkroll'; //id target for pinboard list + var pinboard_user = "{{ site.pinboard_user }}"; //id target for pinboard list + var pinboard_count = {{ site.pinboard_count }}; //id target for pinboard list + (function(){ + var pinboardInit = document.createElement('script'); + pinboardInit.type = 'text/javascript'; + pinboardInit.async = true; + pinboardInit.src = '/javascripts/pinboard.js'; + document.getElementsByTagName('head')[0].appendChild(pinboardInit); + })(); +</script> +{% endif %} diff --git a/themes/classic/source/_includes/asides/recent_posts.html b/themes/classic/source/_includes/asides/recent_posts.html new file mode 100644 index 00000000..7b40b76e --- /dev/null +++ b/themes/classic/source/_includes/asides/recent_posts.html @@ -0,0 +1,12 @@ +{% 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> + </li> + {% endfor %} + </ul> + </section> +{% endif %} diff --git a/themes/classic/source/_includes/asides/twitter.html b/themes/classic/source/_includes/asides/twitter.html new file mode 100644 index 00000000..15cab8bc --- /dev/null +++ b/themes/classic/source/_includes/asides/twitter.html @@ -0,0 +1,19 @@ +{% if site.twitter_user %} +<section> + <h1>Latest Tweets</h1> + <ul id="tweets"> + <li class="loading">Status updating...</li> + </ul> + <script type="text/javascript"> + $.domReady(function(){ + getTwitterFeed("{{site.twitter_user}}", {{site.twitter_tweet_count}}, {{site.twitter_show_replies}}); + }); + </script> + <script src="/javascripts/twitter.js" type="text/javascript"> </script> + {% if site.twitter_follow_button %} + <a href="http://twitter.com/{{ site.twitter_user }}" class="twitter-follow-button" data-width="208px" data-show-count="{{ site.twitter_show_follower_count }}">Follow @{{ site.twitter_user }}</a> + {% else %} + <p>Follow <a href="http://twitter.com/{{site.twitter_user}}">@{{ site.twitter_user }}</a></p> + {% endif %} +</section> +{% endif %} diff --git a/themes/classic/source/_includes/disqus_thread.html b/themes/classic/source/_includes/disqus_thread.html new file mode 100644 index 00000000..036b9d7b --- /dev/null +++ b/themes/classic/source/_includes/disqus_thread.html @@ -0,0 +1,7 @@ +<script type="text/javascript"> + var disqus_url = "{{ site.url }}{{ page.url }}"; +</script> +<noscript> + <a href="http://{{ site.disqus_short_name }}.disqus.com/?url=ref">View the discussion thread</a> +</noscript> +<script type="text/javascript" src="http://disqus.com/forums/{{ site.disqus_short_name }}/embed.js"></script> diff --git a/themes/classic/source/_includes/footer.html b/themes/classic/source/_includes/footer.html new file mode 100644 index 00000000..e12f0678 --- /dev/null +++ b/themes/classic/source/_includes/footer.html @@ -0,0 +1,4 @@ +<p> + Copyright © {{ site.time | date: "%Y" }} - {{ site.author }} - + <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span> +</p> diff --git a/themes/classic/source/_includes/google_analytics.html b/themes/classic/source/_includes/google_analytics.html new file mode 100644 index 00000000..4d4d5969 --- /dev/null +++ b/themes/classic/source/_includes/google_analytics.html @@ -0,0 +1,13 @@ +{% if site.google_analytics_tracking_id %} + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> +{% endif %} diff --git a/themes/classic/source/_includes/head.html b/themes/classic/source/_includes/head.html new file mode 100644 index 00000000..bf93b7b6 --- /dev/null +++ b/themes/classic/source/_includes/head.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<!--[if IEMobile 7 ]><html class="no-js iem7" manifest="default.appcache?v=1"><![endif]--> +<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]--> +<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" manifest="default.appcache?v=1" lang="en"><!--<![endif]--> +<head> + <meta charset="utf-8"> + {% 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}}"/> + {% endif %} + + <!-- http://t.co/dKP3o1e --> + <meta name="HandheldFriendly" content="True"> + <meta name="MobileOptimized" content="320"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + {% if page.keywords %} + <meta name="keywords" content="{{page.keywords}}"/> + {% endif %} + + <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css"> + <script src="/javascripts/modernizr-2.0.js"></script> + <script src="/javascripts/ender.js"></script> + <script src="/javascripts/octopress.js" type="text/javascript"></script> + {% include google_analytics.html %} + <link href="/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml"/> +</head> diff --git a/themes/classic/source/_includes/header.html b/themes/classic/source/_includes/header.html new file mode 100644 index 00000000..4e0519e6 --- /dev/null +++ b/themes/classic/source/_includes/header.html @@ -0,0 +1 @@ +<h1><a href="/">{{ site.title }}</a></h1> diff --git a/themes/classic/source/_includes/navigation.html b/themes/classic/source/_includes/navigation.html new file mode 100644 index 00000000..766c220f --- /dev/null +++ b/themes/classic/source/_includes/navigation.html @@ -0,0 +1,16 @@ +<ul role="subscription"> + <li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss">RSS</a></li> + {% if site.subscribe_emai %} + <li><a href="{{ site.subscribe_email }}" rel="subscribe-email">Email</a></li> + {% endif %} +</ul> +<form action="{{ site.simple_search }}" method="get"> + <fieldset role="site-search"> + <input type="hidden" name="q" value="site:{{ site.url | search_url }}" /> + <input class="search" type="text" name="q" results="0" placeholder="Search"/> + </fieldset> +</form> +<ul role="main-nav"> + <li><a href="/">Home</a></li> + <li><a href="/archive.html">Archive</a></li> +</ul> diff --git a/themes/classic/source/_includes/sidebar.html b/themes/classic/source/_includes/sidebar.html new file mode 100644 index 00000000..0bce3c77 --- /dev/null +++ b/themes/classic/source/_includes/sidebar.html @@ -0,0 +1,8 @@ +<section> + <h1>About Me</h1> + <p>Hi, I'm Octopress!</p> +</section> +{% include asides/recent_posts.html %} +{% include asides/twitter.html %} +{% include asides/delicious.html %} +{% include asides/pinboard.html %} |