Misc updates, blech

This commit is contained in:
R. Tyler Croy 2011-05-15 17:04:43 -07:00
parent a6ee6ecad9
commit 619b1cad71
4 changed files with 68 additions and 71 deletions

View File

@ -1,3 +1,4 @@
tag_page_layout: tag_page
tag_page_dir: tag
paginate: 20
lsi: false

View File

@ -7,9 +7,9 @@
{% if page.title %}
{{ page.title }} //
{% endif %}
R. Tyler Croy
unethical blogger
</title>
<meta name="author" content="Elijah Miller" />
<meta name="author" content="R. Tyler Croy" />
{% if page.summary %}
<meta namne="description" content="{{ page.summary }}" />
{% endif %}
@ -31,11 +31,11 @@
<img src="http://www.famfamfam.com/lab/icons/silk/icons/cancel.png" alt="X"/>
<input id="search" />
</div>
<h1><a href="/">R. Tyler Croy</a></h1>
<h1><a href="/">unethical blogger</a></h1>
<div class="clear"></div>
<div id="sidebar" class="vcard">
<h3>Me</h3>
<dl id="contact">
@ -58,7 +58,7 @@
</ul>
<div class="adr">
<span class="locality">Berkeley</span>
<span class="locality">San Francisco</span>
<span class="region">CA</span>
<span class="postal-code"></span>
<span class="country-name">USA</span>
@ -68,37 +68,30 @@
<div id="tag-cloud">
{{ site | tag_cloud }}
</div>
<div>
<a href="http://feedproxy.google.com/UnethicalBlogger"><img
src="http://feedproxy.google.com/~fc/UnethicalBlogger?bg=99CCFF&amp;fg=444444&amp;anim=0"
alt="Subscribe to the feed" title="Subscribe to the feed" width="88" height="26" /></a>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6/prototype.js"></script>
<div id="content">
{{ content }}
</div>
<div class="clear"></div>
</div>
{% for js in page.javascript %}
<script type="text/javascript" src="{{ js }}"></script>
{% endfor %}
<script type="text/javascript">
//<![CDATA[
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
}
}
document.write('<script type="text/javascript" src="http://disqus.com/forums/unethicalblogger/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>
{% include analytics.html %}
{% include apture.html %}
</body>
</html>

View File

@ -4,54 +4,39 @@ javascript:
- /javascripts/json_search.0.9.0.js
- /javascripts/home.js
---
<div id="search_results_area">
<h2>Posts <span id="result_count"></span></h2>
<ul id="search_results" class="posts">
</ul>
<h2>Posts <span id="result_count"></span></h2>
<ul id="search_results" class="posts">
</ul>
</div>
<div id="home">
<h2>Posts</h2>
<ul class="posts">
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
<p>{{ post.summary }}</p>
</li>
{% endfor %}
</ul>
<h2>Tweets</h2>
<div id="tweets">
Loading...
</ul>
<script type="text/javascript" charset="utf-8">
var posts = [
{% for post in site.posts %}
{
title: unescape('{{ post.title | strip_html | cgi_escape }}').gsub(/\+/, ' '),
summary: unescape('{{ post.summary | strip_html | cgi_escape }}').gsub(/\+/, ' '),
content: unescape('{{ post.content | strip_html | cgi_escape }}').gsub(/\+/, ' '),
url: unescape('{{ post.url | strip_html | cgi_escape }}').gsub(/\+/, ' '),
},
{% endfor %}
0];
posts.pop();
</script>
<h2>Recent Posts</h2>
<ul class="posts">
{% for post in paginator.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
<!--<p>{{ page.summary }}</p>-->
<div class="posttags">Tags: {{ post | tags }}</div>
</li>
{% endfor %}
</ul>
<script type="text/javascript" src="/javascripts/twitter-1.11.2.js"></script>
<script type="text/javascript">
getTwitters('tweets', {
id: 'agentdero',
count: 5,
enableLinks: true,
clearContents: true,
template: '%text%'
});
</script>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/" class="previous">Previous</a>
{% else %}
<a href="/page{{paginator.previous_page}}" class="previous">Previous</a>
{% endif %}
{% endif %}
<span class="page_number ">Page: {{paginator.page}} of {{paginator.total_pages}}</span>
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}" class="next ">Next</a>
{% endif %}
</div>
</div>

View File

@ -15,7 +15,7 @@ body {
}
a:hover, a:active, #sidebar a:active, #sidebar a:hover, #content a {
color: #b40 !important;
color: #b40;
}
#site {
width: 850px;
@ -75,6 +75,7 @@ h1 a, h1 a:link, h1 a:visited {
padding: 0 20px 20px 20px;
}
#content ul {
list-style-type: none;
padding: 0;
margin: 0;
}
@ -169,3 +170,20 @@ h3 {
.searching #home {
display: none;
}
.posttags {
color: #666;
font-size: 11px !important;
background: url(/images/tag-icon.gif) no-repeat left top;
padding-left: 20px;
}
.posttags a, .posttags a:link, .posttags a:active {
color: #333 !important;
font-style: italic;
}
.pagination {
padding-top: 10px;
border-top: 2px dashed #cecece;
}