Skip to content

Instantly share code, notes, and snippets.

@kitroed
Created September 28, 2011 03:24
Show Gist options
  • Save kitroed/1246916 to your computer and use it in GitHub Desktop.
Save kitroed/1246916 to your computer and use it in GitHub Desktop.
Rival Rockets Tumblr theme source
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
<meta name="if:Show Title in Topbar" content="1" />
<meta name="if:Show Title in Header" content="1" />
<meta name="if:Show Home Link" content="1" />
<meta name="if:Show Description in Header" content="1" />
<meta name="text:Copyright" content="" />
<meta name="if:Show Copyright Years" content="1" />
<meta name="text:Disqus Shortname" content="" />
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}" />
<link rel="alternate" type="application/rss+xml" href="{RSS}" />
<link href="http://static.tumblr.com/drqjizb/7qnlrrcpj/bootstrap.css" rel="stylesheet" />
<link href="http://static.tumblr.com/drqjizb/9nclrursx/custom.css" rel="stylesheet" />
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
{block:IfDisqusShortname}
<script>
var disqus_shortname = "{text:Disqus Shortname}";
{block:IndexPage}
(function () {
var s = document.createElement('script'); s.async = true;
s.src = 'http://zxlu.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
{/block:IndexPage}
{block:PermalinkPage}
var disqus_identifier = "{PostID}";
var disqus_url = "{Permalink}";
var disqus_title = "{block:PostTitle}{PostTitle}{/block:PostTitle}";
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://zxlu.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
{/block:PermalinkPage}
</script>
{/block:IfDisqusShortname}
<style>{CustomCSS}</style>
</head>
<body>
<div class="topbar">
<div class="topbar-inner">
<div class="container">
{block:IfShowTitleinTopbar}
<a class="brand" href="/">{Title}</a>
{/block:IfShowTitleinTopbar}
<ul class="nav">
{block:IfShowHomeLink}<li><a href="/">{lang:Home}</a></li>{/block:IfShowHomeLink}
{block:Pages}<li><a href="{URL}">{Label}</a></li>{/block:Pages}
</ul>
<ul class="nav secondary-nav">
{block:AskEnabled}<li><a href="/ask/">{AskLabel}</a></li>{/block:AskEnabled}
{block:SubmissionsEnabled} <li><a href="/submit/">{SubmitLabel}</a></li>{/block:SubmissionsEnabled}
<li><a href="/random">{lang:Random}</a></li>
<li><a href="{RSS}">{lang:Feed}</a></li>
<li><a href="/archive">{lang:Archive}</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="page-header">
<h1>{block:IfShowTitleinHeader}{Title}{/block:IfShowTitleinHeader}{block:Description}{block:IfShowDescriptioninHeader} <small>{Description}</small>{/block:Description}{/block:IfShowDescriptioninHeader}</h1>
</div>
{block:Posts}
<div class="row post">
<!-- on the index page leave room for the info to the side -->
{block:IndexPage}<div class="span11">{/block:IndexPage}
<!-- on perma pages take up the whole width -->
{block:PermalinkPage}<div class="span14">{/block:PermalinkPage}
{block:Text}
{block:Title}<h3><a href="{Permalink}">{Title}</a></h3>{/block:Title}
{Body}
{/block:Text}
{block:Photo}
{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}"/>{LinkCloseTag}
{block:Caption}<p class="caption">{Caption}</p>{/block:Caption}
{/block:Photo}
{block:Photoset}
{Photoset-500}
{block:Caption}<p class="caption">{Caption}</p>{/block:Caption}
{/block:Photoset}
{block:Quote}
<blockquote>
<p>"{Quote}"</p>
{block:Source}<small>{Source}</small>{/block:Source}
{/block:Quote}
{block:Link}
<h3><a href="{URL}" class="link" {Target}>{Name}</a></h3>
{block:Description}<p class="description">{Description}</p>{/block:Description}
{/block:Link}
{block:Chat}
{block:Title}<h3><a href="{Permalink}">{Title}</a></h3>{/block:Title}
<table>
{block:Lines}
<tr>
<td>{block:Label}{Label}{/block:Label}</td>
<td>{Line}</td>
</tr>
{/block:Lines}
</table>
{/block:Chat}
{block:Answer}
<h3>{Asker}: <small>{Question}</small></h3>
<p>{Answer}</p>
{/block:Answer}
{block:Video}
{Video-500}
{block:Caption}<p class="caption">{Caption}</p>{/block:Caption}
{/block:Video}
{block:Audio}
{AudioPlayerBlack}
{block:Caption}<p class="caption">{Caption}</p>{/block:Caption}
{/block:Audio}
</div>
<!-- Render additional info to the side on the index page -->
{block:IndexPage}
<div class="span3 info">
<p><a href="{Permalink}">{lang:Permalink}</a></p>
<p>{PostAuthorTitle}</p>
<p><img src="{PostAuthorPortraitURL-96}" alt="{PostAuthorTitle}" /></p>
{block:IfDisqusShortname}<p><a class="dsq-comment-count" href="{Permalink}#disqus_thread"></a></p>{/block:IfDisqusShortname}
{block:NoteCount}<p>{NoteCountWithLabel}</p>{/block:NoteCount}
{block:Date}<p>{Month} {DayOfMonthWithZero}, {Year}</p>{/block:Date}
{block:HasTags}<ul class="tags">{block:Tags}<li><a href="{TagURL}">{Tag}</a></li>{/block:Tags}</ul>{/block:HasTags}
</div>
{/block:IndexPage}
</div>
{/block:Posts}
{block:PostNotes}
<div class="row">
<div class="span14">
{PostNotes}
</div>
</div>
{/block:PostNotes}
{block:IfDisqusShortname}
{block:PermalinkPage}
<div class="row">
<div class="span14" id="disqus_thread"></div>
</div>
{/block:PermalinkPage}
{/block:IfDisqusShortname}
{block:Pagination}
<div class="row">
<div class="span14">
<div class="pagination">
<ul>
{block:PreviousPage}<li class="prev"><a href="{PreviousPage}">&larr; {lang:Previous}</a></li>{/block:PreviousPage}
{block:JumpPagination length="7"}
{block:CurrentPage}
<li class="active"><a href="{URL}">{PageNumber}</a></li>
{/block:CurrentPage}
{block:JumpPage}
<li><a href="{URL}">{PageNumber}</a></li>
{/block:JumpPage}
{/block:JumpPagination}
{block:NextPage}<li class="next"><a href="{NextPage}">{lang:Next} &rarr;</a></li>{/block:NextPage}
</ul>
</div>
</div>
</div>
{/block:Pagination}
</div>
<footer>
{block:IfCopyright}<p>{text:Copyright}{block:IfShowCopyrightYears}, {CopyrightYears}{/block:IfShowCopyrightYears}.</p>{/block:IfCopyright}
</footer>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment