mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Added themes directory, improved javascript load and minification.
This commit is contained in:
28
themes/classic/source/_includes/article.html
Normal file
28
themes/classic/source/_includes/article.html
Normal file
@ -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 %}
|
||||
7
themes/classic/source/_includes/asides/delicious.html
Normal file
7
themes/classic/source/_includes/asides/delicious.html
Normal file
@ -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 %}
|
||||
19
themes/classic/source/_includes/asides/pinboard.html
Normal file
19
themes/classic/source/_includes/asides/pinboard.html
Normal file
@ -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 %}
|
||||
12
themes/classic/source/_includes/asides/recent_posts.html
Normal file
12
themes/classic/source/_includes/asides/recent_posts.html
Normal file
@ -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 %}
|
||||
19
themes/classic/source/_includes/asides/twitter.html
Normal file
19
themes/classic/source/_includes/asides/twitter.html
Normal file
@ -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 %}
|
||||
7
themes/classic/source/_includes/disqus_thread.html
Normal file
7
themes/classic/source/_includes/disqus_thread.html
Normal file
@ -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>
|
||||
4
themes/classic/source/_includes/footer.html
Normal file
4
themes/classic/source/_includes/footer.html
Normal file
@ -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>
|
||||
13
themes/classic/source/_includes/google_analytics.html
Normal file
13
themes/classic/source/_includes/google_analytics.html
Normal file
@ -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 %}
|
||||
32
themes/classic/source/_includes/head.html
Normal file
32
themes/classic/source/_includes/head.html
Normal file
@ -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>
|
||||
1
themes/classic/source/_includes/header.html
Normal file
1
themes/classic/source/_includes/header.html
Normal file
@ -0,0 +1 @@
|
||||
<h1><a href="/">{{ site.title }}</a></h1>
|
||||
16
themes/classic/source/_includes/navigation.html
Normal file
16
themes/classic/source/_includes/navigation.html
Normal file
@ -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>
|
||||
8
themes/classic/source/_includes/sidebar.html
Normal file
8
themes/classic/source/_includes/sidebar.html
Normal file
@ -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 %}
|
||||
Reference in New Issue
Block a user