Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated blog front page template to provide the 10 most recent post t…
…easers, updated the front page teaser view as well. Both teaser views show the blog post title, date, author,some of the text and the image defined in each post's front matter variable teaser_image: added pikwi include code.
- Loading branch information
Chris Ritzo
committed
Feb 24, 2014
1 parent
ee6e715
commit 690277c
Showing
113 changed files
with
4,553 additions
and
2,737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<h2>Recent Blog Posts</h2> | ||
{% for post in site.posts limit: 10 %} | ||
<div class="blog-container"> | ||
<h3><a href="{{ post.url }}" class="blog-teaser-title">{{ post.title }}</a></h3> | ||
<img src="/files/{{ post.teaser_image }}" style="width:15%; height: auto; float: right;" /> | ||
<p class="blog-pubdata">{{ post.date | date: "%B %d, %Y" }} {{ post.post_author }}</p> | ||
<p class="blog-excerpt">{{ post.content | split:'<!--more-->' | first | strip_html }}</p> | ||
<a href="{{ post.url }}">Read More</a> | ||
<hr> | ||
</div> | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Piwik --> | ||
<script type="text/javascript"> | ||
var _paq = _paq || []; | ||
_paq.push(["trackPageView"]); | ||
_paq.push(["enableLinkTracking"]); | ||
|
||
(function() { | ||
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.opentechinstitute.org/"; | ||
_paq.push(["setTrackerUrl", u+"piwik.php"]); | ||
_paq.push(["setSiteId", "1"]); | ||
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; | ||
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); | ||
})(); | ||
</script> | ||
<!-- End Piwik Code --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.