mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-02-10 23:40:54 +00:00
Added themes directory, improved javascript load and minification.
This commit is contained in:
19
themes/classic/source/_layouts/archive_monthly.html
Normal file
19
themes/classic/source/_layouts/archive_monthly.html
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<div id="content">
|
||||
<div class="post">
|
||||
<h1 class="post-title">{{ page.month | date_to_month }} {{ page.year }}</h1>
|
||||
<p class="lead">Posts from {{ page.month | date_to_month }}, {{ page.year }}</p>
|
||||
<ul>
|
||||
{% for d in (1..31) reversed %}
|
||||
{% if page.collated_posts[page.year][page.month][d] %}
|
||||
{% for p in page.collated_posts[page.year][page.month][d] reversed %}
|
||||
<li><a href='{{ p.url }}'>{{ p.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
25
themes/classic/source/_layouts/archive_yearly.html
Normal file
25
themes/classic/source/_layouts/archive_yearly.html
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<div id="content">
|
||||
<div class="post">
|
||||
<h1 class="post-title">{{ page.year }}</h1>
|
||||
<p class="lead">Posts from the year {{ page.year }}</p>
|
||||
{% for m in (1..12) reversed %}
|
||||
{% if page.collated_posts[page.year][m] %}
|
||||
<h3>{{ m | date_to_month }}</h3>
|
||||
{% for d in (1..31) reversed %}
|
||||
{% if page.collated_posts[page.year][m][d] %}
|
||||
{% for p in page.collated_posts[page.year][m][d] reversed %}
|
||||
<div>
|
||||
<strong>{{ p.date | date: "%d" }}</strong>
|
||||
<a href='{{ p.url }}'>{{ p.title }}</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
26
themes/classic/source/_layouts/default.html
Normal file
26
themes/classic/source/_layouts/default.html
Normal file
@ -0,0 +1,26 @@
|
||||
{% include head.html %}
|
||||
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == 'none' %} class="no-sidebar" {% endif %}>
|
||||
<header>{% include header.html %}</header>
|
||||
<nav>{% include navigation.html %}</nav>
|
||||
<div>
|
||||
<div>
|
||||
<div id="articles">{{ content }}</div>
|
||||
{% unless page.sidebar == 'none' %}
|
||||
<aside>{% include sidebar.html %}</aside>
|
||||
{% endunless %}
|
||||
</div>
|
||||
</div>
|
||||
<footer>{% include footer.html %}</footer>
|
||||
{% if site.twitter_follow_button or site.twitter_tweet_button %}
|
||||
<script type="text/javascript">
|
||||
(function(){
|
||||
var twitterWidgets = document.createElement('script');
|
||||
twitterWidgets.type = 'text/javascript';
|
||||
twitterWidgets.async = true;
|
||||
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
|
||||
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
|
||||
})();
|
||||
</script>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
13
themes/classic/source/_layouts/page.html
Normal file
13
themes/classic/source/_layouts/page.html
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
layout: default
|
||||
no_title_link: true
|
||||
permalink: pretty
|
||||
single: true
|
||||
---
|
||||
|
||||
<article>
|
||||
{% include article.html %}
|
||||
{% if site.disqus_short_name %}
|
||||
<div id="disqus_thread">{% include disqus_thread.html %}</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
16
themes/classic/source/_layouts/post.html
Normal file
16
themes/classic/source/_layouts/post.html
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
layout: default
|
||||
single: true
|
||||
---
|
||||
|
||||
<article class="hentry">
|
||||
{% include article.html %}
|
||||
<footer>
|
||||
<p>
|
||||
<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>
|
||||
</p>
|
||||
</footer>
|
||||
{% if site.disqus_short_name %}
|
||||
<div id="disqus_thread">{% include disqus_thread.html %}</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
Reference in New Issue
Block a user