Skip to content

Instantly share code, notes, and snippets.

@moschlar
Created August 24, 2012 11:17
Show Gist options
  • Save moschlar/3449307 to your computer and use it in GitHub Desktop.
Save moschlar/3449307 to your computer and use it in GitHub Desktop.
<section id="extras" class="body">
% if 'blogroll' in conf:
<div class="blogroll">
<h2>blogroll</h2>
<ul>
% for name, link, tooltip in conf.blogroll:
% if not link:
<li><p>${ name or '&nbsp;' }</p></li>
% else:
<li><a href="${ link or '#' }" rel="external" title="${ tooltip or '' }">${ name or '&nbsp;' }</a></li>
% endif
% endfor
</ul>
</div><!-- /.blogroll -->
% endif
<div class="social">
<h2>social</h2>
<ul>
<li class="strong"><a href="${ env.path + '/atom/' }" rel="alternate" class="feed">atom</a></li>
<li class="strong"><a href="${ env.path + '/rss/' }" rel="alternate" class="feed">rss</a></li>
% if 'social' in conf:
% for name, link in conf.social:
% if not link:
<li><p>${ name or '&nbsp;' }</p></li>
% else:
<li><a href="${ link or '#'}" rel="me">${ name or '&nbsp;' }</a></li>
% endif
% endfor
% endif
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
# blogroll and social have two columns each in the extras section
# on bottom of each site. Therefore, the configuration variables
# represent the rows of each list.
# Tuples are (name, link, tooltip)
BLOGROLL = [
('Blogs', None, None), ('More Blogs', None, None),
('Die Welt ist gar nicht so.', 'http://blog.dieweltistgarnichtso.net/', ''), ('[three]Bean', 'http://threebean.org/blog/', ''),
('Abstract Nonsense', 'http://abstractnonsense.de/', ''), ('mecker. mecker. mecker.', 'http://blog.posativ.org/', ''),
('Metalabs', 'http://blog.metalabs.de/', ''), ('Matt Might', 'http://matt.might.net/', 'Assistant Professor in Computer Science'),
]
# Note that the first row of social always contains the feed links
SOCIAL = [
('GitHub', 'https://github.com/moschlar'), ('Twitter', 'https://twitter.com/moritz_schlarb'),
('Bitbucket', 'https://bitbucket.org/moschlar'), ('Facebook', 'https://www.facebook.com/moschlar'),
('Coderwall', 'http://coderwall.com/moschlar'), ('Google+', 'https://plus.google.com/115958945168431107199/'),
('Stackoverflow', 'https://stackoverflow.com/users/1175818/moschlar'), ('', ''),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment