added a theme
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<script src="{{ root_url }}/javascripts/slash.js"></script>
|
||||
{% include fancybox.html %} <!-- Delete or comment this line to disable Fancybox -->
|
||||
{% include disqus.html %}
|
||||
{% include facebook_like.html %}
|
||||
{% include google_plus_one.html %}
|
||||
{% include twitter_sharing.html %}
|
||||
{% include custom/after_footer.html %}
|
||||
{% include google_analytics.html %}
|
||||
{% include custom/after_footer.html %}
|
||||
@ -1,8 +1,19 @@
|
||||
{% capture category %}{{ post.categories | size }}{% endcapture %}
|
||||
<h1><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1>
|
||||
<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time>
|
||||
{% if category != '0' %}
|
||||
<footer>
|
||||
<span class="categories">posted in {{ post.categories | category_links }}</span>
|
||||
</footer>
|
||||
{% endif %}
|
||||
{% capture date %}{{ post.date }}{% endcapture %}
|
||||
{% capture this_year %}{{ date | date: "%Y" }}{% endcapture %}
|
||||
{% unless year == this_year %}
|
||||
{% assign year = this_year %}
|
||||
{% unless forloop.first %}
|
||||
</section>
|
||||
{% endunless %}
|
||||
<section class="archives"><h1 class="year">{{ date | date: "%Y" }}</h1>
|
||||
{% endunless %}
|
||||
<article>
|
||||
<h1 class="title"><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1>
|
||||
<div class="meta">
|
||||
<span class="date">{{ date | date: "%b %e" }}</span>
|
||||
<span class="tags">{% include post/categories.html %}</span>
|
||||
{% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %}
|
||||
<span class="comments"><a href="{{ root_url }}{{ post.url }}#disqus_thread">Comments</a></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</article>
|
||||
@ -1,28 +1,19 @@
|
||||
{% unless page.no_header %}
|
||||
<header>
|
||||
{% if index %}
|
||||
<h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
|
||||
{% else %}
|
||||
<h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
|
||||
{% endif %}
|
||||
{% unless page.meta == false %}
|
||||
<p class="meta">
|
||||
{% include post/date.html %}{{ time }}
|
||||
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
|
||||
| <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">Comments</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endunless %}
|
||||
</header>
|
||||
{% endunless %}
|
||||
{% if index %}
|
||||
<div class="entry-content">{{ content | excerpt }}</div>
|
||||
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
|
||||
{% if excerpted == 'true' %}
|
||||
<footer>
|
||||
<a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
|
||||
</footer>
|
||||
{% endif %}
|
||||
<h1 class="title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
|
||||
<div class="entry-content">
|
||||
{{ content | excerpt }}
|
||||
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
|
||||
{% if excerpted == 'true' %}<a href="{{ root_url }}{{ post.url }}" class="more-link">{{ site.excerpt_link }}</a>{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="entry-content">{{ content }}</div>
|
||||
<h1 class="title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
|
||||
<div class="entry-content">{{ content }}</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="meta">
|
||||
<div class="date">{% include post/date.html %}{{ time }}</div>
|
||||
<div class="tags">{% include post/categories.html %}</div>
|
||||
{% if site.disqus_short_name and site.disqus_show_comment_count == true %}
|
||||
<span class="comments"><a href="{{ root_url }}{{ post.url }}{{ page.url }}#disqus_thread">Comments</a></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
15
source/_includes/banner.html
Normal file
15
source/_includes/banner.html
Normal file
@ -0,0 +1,15 @@
|
||||
{% if site.twitter_user and site.twitter_tweet_count > 0 %}
|
||||
<div id="banner" class="inner">
|
||||
<div class="container">
|
||||
<ul class="feed"></ul>
|
||||
</div>
|
||||
<small><a href="http://twitter.com/{{ site.twitter_user }}">{{ site.twitter_user }}</a> @ <a href="http://twitter.com">Twitter</a></small>
|
||||
<div class="loading">Loading...</div>
|
||||
</div>
|
||||
<script src="{{ root_url }}/javascripts/twitter.js"></script>
|
||||
<script type="text/javascript">
|
||||
(function($){
|
||||
$('#banner').getTwitterFeed('{{ site.twitter_user }}', {{ site.twitter_tweet_count }}, {{ site.twitter_show_replies }});
|
||||
})(jQuery);
|
||||
</script>
|
||||
{% endif %}
|
||||
@ -1,3 +0,0 @@
|
||||
{% comment %}
|
||||
Add content to be output at the bottom of each page. (You might use this for analytics scripts, for example)
|
||||
{% endcomment %}
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
<p>
|
||||
Copyright © {{ site.time | date: "%Y" }} - {{ site.author }} -
|
||||
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
|
||||
</p>
|
||||
Copyright © {{ site.time | date: "%Y" }}
|
||||
{% if site.author %}
|
||||
{{ site.author }}
|
||||
{% else %}
|
||||
{{ site.title }}
|
||||
{% endif %}
|
||||
Powered by Octopress
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
|
||||
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
|
||||
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
|
||||
|
||||
@ -1,6 +1 @@
|
||||
<hgroup>
|
||||
<h1><a href="{{ root_url }}/">{{ site.title }}</a></h1>
|
||||
{% if site.subtitle %}
|
||||
<h2>{{ site.subtitle }}</h2>
|
||||
{% endif %}
|
||||
</hgroup>
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<ul class="main-navigation">
|
||||
<li><a href="{{ root_url }}/">Blog</a></li>
|
||||
<li><a href="{{ root_url }}/blog/archives">Archives</a></li>
|
||||
<ul class="main">
|
||||
<li><a href="{{ root_url }}/">Blog</a></li>
|
||||
<li><a href="{{ root_url }}/blog/archives">Post Index</a></li>
|
||||
<li><a href="{{ root_url }}/blog/index">Magazine Archives</a></li>
|
||||
</ul>
|
||||
|
||||
6
source/_includes/fancybox.html
Normal file
6
source/_includes/fancybox.html
Normal file
@ -0,0 +1,6 @@
|
||||
<script src="{{ root_url }}/javascripts/jquery.fancybox.pack.js"></script>
|
||||
<script type="text/javascript">
|
||||
(function($){
|
||||
$('.fancybox').fancybox();
|
||||
})(jQuery);
|
||||
</script>
|
||||
@ -1,13 +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']);
|
||||
<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>
|
||||
(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 %}
|
||||
|
||||
@ -1,29 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if IEMobile 7 ]><html class="no-js iem7"><![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" lang="en"><!--<![endif]-->
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
|
||||
<meta name="author" content="{{ site.author }}">
|
||||
<meta charset="utf-8">
|
||||
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
|
||||
<meta name="author" content="{{ site.author }}">
|
||||
|
||||
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
|
||||
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
|
||||
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
|
||||
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
|
||||
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
|
||||
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
|
||||
<!-- http://t.co/dKP3o1e -->
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' }}{% endif %}{% endcapture %}
|
||||
<link rel="canonical" href="{{ canonical }}">
|
||||
<link href="{{ root_url }}/favicon.png" rel="icon">
|
||||
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
|
||||
<script src="{{ root_url }}/javascripts/modernizr-2.0.js"></script>
|
||||
<script src="{{ root_url }}/javascripts/ender.js"></script>
|
||||
<script src="{{ root_url }}/javascripts/octopress.js" type="text/javascript"></script>
|
||||
<link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
|
||||
{% include custom/head.html %}
|
||||
{% include google_analytics.html %}
|
||||
<link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
|
||||
<link rel="canonical" href="{{ canonical }}">
|
||||
<link href="{{ root_url }}/favicon.png" rel="shortcut icon">
|
||||
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
|
||||
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||||
{% include custom/head.html %}
|
||||
</head>
|
||||
|
||||
@ -1 +1,53 @@
|
||||
<h1><a href="{{ root_url }}/">{{ site.title }}</a></h1>
|
||||
<nav id="main-nav">{% include navigation.html %}</nav>
|
||||
<br/>
|
||||
<h3 class="alignleft">{{ site.subtitle }}</h3>
|
||||
<nav id="mobile-nav">
|
||||
<div class="alignleft menu">
|
||||
<a class="button">Menu</a>
|
||||
<div class="container">{% include navigation.html %}</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="alignright search">
|
||||
<a class="button"></a>
|
||||
<div class="container">
|
||||
<form action="{{ site.simple_search }}" method="get">
|
||||
<input type="text" name="q" results="0">
|
||||
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<nav id="sub-nav" class="alignright">
|
||||
<div class="social">
|
||||
{% if site.facebook_user %}
|
||||
<a class="facebook" href="http://www.facebook.com/{{ site.facebook_user }}" title="Facebook">Facebook</a>
|
||||
{% endif %}
|
||||
{% if site.googleplus_user and site.googleplus_hidden == false %}
|
||||
<a class="google" href="https://plus.google.com/{{ site.googleplus_user }}?rel=author" title="Google+">Google+</a>
|
||||
{% endif %}
|
||||
{% if site.twitter_user %}
|
||||
<a class="twitter" href="http://twitter.com/{{ site.twitter_user }}" title="Twitter">Twitter</a>
|
||||
{% endif %}
|
||||
{% if site.github_user %}
|
||||
<a class="github" href="https://github.com/{{ site.github_user }}" title="GitHub">GitHub</a>
|
||||
{% endif %}
|
||||
{% if site.linkedin_user %}
|
||||
<a class="linkedin" href="http://www.linkedin.com/in/{{ site.linkedin_user }}">LinkedIn</a>
|
||||
{% endif %}
|
||||
{% if site.pinterest_user %}
|
||||
<a class="pinterest" href="https://pinterest.com/{{ site.pinterest_user }}" title="Pinterest">Pinterest</a>
|
||||
{% endif %}
|
||||
{% if site.delicious_user %}
|
||||
<a class="delicious" href="http://delicious.com/{{ site.delicious_user }}" title="Delicious">Delicious</a>
|
||||
{% endif %}
|
||||
{% if site.subscribe_rss %}
|
||||
<a class="rss" href="{{ site.subscribe_rss }}" title="RSS">RSS</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<form class="search" action="{{ site.simple_search }}" method="get">
|
||||
<input class="alignright" type="text" name="q" results="0">
|
||||
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}">
|
||||
</form>
|
||||
</nav>
|
||||
{% include custom/header.html %}
|
||||
|
||||
@ -1,15 +1 @@
|
||||
<ul class="subscription" data-subscription="rss{% if site.subscribe_email %} email{% endif %}">
|
||||
<li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
|
||||
{% if site.subscribe_email %}
|
||||
<li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% if site.simple_search %}
|
||||
<form action="{{ site.simple_search }}" method="get">
|
||||
<fieldset role="search">
|
||||
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}" />
|
||||
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
|
||||
</fieldset>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% include custom/navigation.html %}
|
||||
{% include custom/navigation.html %}
|
||||
@ -1,10 +1,8 @@
|
||||
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
|
||||
{% unless category == '0' %}
|
||||
<span class="categories">
|
||||
{% if post %}
|
||||
{{ post.categories | category_links }}
|
||||
{% else %}
|
||||
{{ page.categories | category_links }}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% if post %}
|
||||
{{ post.categories | category_links }}
|
||||
{% else %}
|
||||
{{ page.categories | category_links }}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
|
||||
@ -1,11 +1,15 @@
|
||||
<div class="sharing">
|
||||
{% if site.twitter_tweet_button %}
|
||||
<a href="http://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a>
|
||||
{% endif %}
|
||||
{% if site.google_plus_one %}
|
||||
<div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
|
||||
{% endif %}
|
||||
{% if site.facebook_like %}
|
||||
<div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
|
||||
{% endif %}
|
||||
<div class="share">
|
||||
<div class="addthis_toolbox addthis_default_style ">
|
||||
{% if site.facebook_like %}
|
||||
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
|
||||
{% endif %}
|
||||
{% if site.twitter_tweet_button %}
|
||||
<a class="addthis_button_tweet"></a>
|
||||
{% endif %}
|
||||
{% if site.google_plus_one %}
|
||||
<a class="addthis_button_google_plusone" g:plusone:size="{{ site.google_plus_one_size }}"></a>
|
||||
{% endif %}
|
||||
<a class="addthis_counter addthis_pill_style"></a>
|
||||
</div>
|
||||
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid={{ site.addthis_profile_id }}"></script>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user