Browse Source
2. Added a page layout and improved html on post layout. 3. Improved flexibility of stylesheets for different layout types. 4. Collapsing sidebar now moves it to the bottom of the page and floats content into columns. 5. Improved sharing settings, added Google plus one.unreleased_contents
Brandon Mathis
13 years ago
20 changed files with 195 additions and 102 deletions
@ -0,0 +1,7 @@ |
|||
footer .sharing { |
|||
display: inline-block; |
|||
position: relative; |
|||
top: .3em; |
|||
padding-left: .5em; |
|||
&:first-child { padding-left: 0; } |
|||
} |
@ -0,0 +1,9 @@ |
|||
{% if site.google_plus_one %} |
|||
<script type="text/javascript"> |
|||
(function() { |
|||
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true; |
|||
script.src = 'https://apis.google.com/js/plusone.js'; |
|||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s); |
|||
})(); |
|||
</script> |
|||
{% endif %} |
@ -1 +1,8 @@ |
|||
<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> |
|||
<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 %} |
|||
<g:plusone size="{{ site.google_plus_one_size }}"></g:plusone> |
|||
{% endif %} |
|||
</div> |
|||
|
@ -0,0 +1,11 @@ |
|||
{% 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 %} |
@ -1,5 +1,31 @@ |
|||
--- |
|||
layout: post |
|||
layout: default |
|||
--- |
|||
|
|||
<!-- if you want a page layout --> |
|||
<div> |
|||
<article> |
|||
<header> |
|||
<h1 class="entry-title">{{ page.title | titlecase }}</h1> |
|||
{% unless page.no_meta or !index %}<p class="meta">{% include post_date.html %}</p>{% endunless %} |
|||
</header> |
|||
{{ content | smart_quotes }} |
|||
{% unless page.no_footer %} |
|||
<footer> |
|||
{% if page.date %} |
|||
<p class="meta"> |
|||
{% include post_date.html %} |
|||
</p> |
|||
{% endif %} |
|||
{% unless page.no_sharing %} |
|||
{% include sharing.html %} |
|||
{% endunless %} |
|||
</footer> |
|||
{% endunless %} |
|||
</article> |
|||
{% if site.disqus_short_name and page.comments == true %} |
|||
<section> |
|||
<h1>Comments</h1> |
|||
<div id="disqus_thread">{% include disqus_thread.html %}</div> |
|||
</section> |
|||
{% endif %} |
|||
</div> |
|||
|
Loading…
Reference in new issue