-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port "readable" theme from Coleslaw.
- Loading branch information
1 parent
3a0eff9
commit 78c109c
Showing
16 changed files
with
213 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{namespace coleslaw.theme.readable} | ||
|
||
{template base} | ||
<!DOCTYPE html>{\n} | ||
<html lang="{$site.lang}"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset={$site.charset}"> | ||
<title>{$site.title}</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link href="/css/bootstrap.min.css" rel="stylesheet" media="screen"> | ||
<link href="/css/custom.css" rel="stylesheet" media="screen"> | ||
<link rel="alternate" href="/rss.xml" type="application/rss+xml" /> | ||
{if $injections.head} | ||
{foreach $injection in $injections.head} | ||
{$injection |noAutoescape} | ||
{/foreach} | ||
{/if} | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row-fluid"> | ||
<div class="offset2 span8"> | ||
<div class="row-fluid"> | ||
<div class="navbar navbar-inverse"> | ||
<div class="navbar-inner"> | ||
<a class="brand" href="/">{$site.title}</a> | ||
<ul class="nav"> | ||
{foreach $link in $site.navigation.items} | ||
<li> | ||
<a href="{$link.url}">{$link.title}</a> | ||
</li> | ||
{/foreach} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row-fluid"> | ||
{$raw |noAutoescape} | ||
</div> | ||
|
||
{if $injections.body} | ||
{foreach $injection in $injections.body} | ||
<div class="row-fluid"> | ||
{$injection |noAutoescape} | ||
</div> | ||
{/foreach} | ||
{/if} | ||
|
||
<div class="row-fluid"> | ||
<hr> | ||
<p class="fineprint">Unless otherwise credited all material | ||
{if $site.license} | ||
{$site.license} | ||
{else} | ||
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US"> | ||
<img alt="Creative Commons License" style="border-width:0" src="/img/cc-by-sa.png" /> | ||
</a> | ||
{/if} | ||
by {$site.author} | ||
<a id="staticl-logo" href="https://github.com/40ants/staticl"> | ||
<img src="/img/logo_small.jpg" alt="Coleslaw logo" /></p> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="/js/bootstrap.min.js"></script> | ||
</body> | ||
</html> | ||
{/template} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,42 @@ | ||
#coleslaw-logo { float: right; } | ||
hr { | ||
border: 0; | ||
height: 1px; | ||
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); | ||
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); | ||
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); | ||
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); | ||
} | ||
pre { overflow: auto; } | ||
p.date-posted { font-style: italic; } | ||
p.fineprint { font-size: smaller; } | ||
|
||
/* Stolen from lisppaste for the colorize output of 3bmd */ | ||
.paste { background-color: #F4F4F4; color: black; } | ||
.paste:hover { background-color: #F4F4F4; color: black; } | ||
.symbol { color : #770055; background-color : transparent; border: 0px; margin: 0px;} | ||
.special { color : #FF5000; background-color : inherit; } | ||
.keyword { color : #770000; background-color : inherit; } | ||
.comment { color : #007777; background-color : inherit; } | ||
.string { color : #777777; background-color : inherit; } | ||
.atom { color : #314F4F; background-color : inherit; } | ||
.macro { color : #FF5000; background-color : inherit; } | ||
.variable { color : #36648B; background-color : inherit; } | ||
.function { color : #8B4789; background-color : inherit; } | ||
.attribute { color : #FF5000; background-color : inherit; } | ||
.character { color : #0055AA; background-color : inherit; } | ||
.syntaxerror { color : #FF0000; background-color : inherit; } | ||
.diff-deleted { color : #5F2121; background-color : inherit; } | ||
.diff-added { color : #215F21; background-color : inherit; } | ||
span.paren1 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } | ||
span.paren1:hover { color : inherit; background-color : #BAFFFF; } | ||
span.paren2 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } | ||
span.paren2:hover { color : inherit; background-color : #FFCACA; } | ||
span.paren3 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } | ||
span.paren3:hover { color : inherit; background-color : #FFFFBA; } | ||
span.paren4 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } | ||
span.paren4:hover { color : inherit; background-color : #CACAFF; } | ||
span.paren5 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } | ||
span.paren5:hover { color : inherit; background-color : #CAFFCA; } | ||
span.paren6 { background-color : inherit; -webkit-transition: background-color 0.2s linear; } | ||
span.paren6:hover { color : inherit; background-color : #FFBAFF; } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,40 @@ | ||
{namespace coleslaw.theme.readable} | ||
|
||
{template index} | ||
<h1 class="page-header">{$content.title}</h1> | ||
{foreach $obj in $content.items} | ||
<div class="row-fluid"> | ||
<h1><a href="{$obj.url}">{$obj.title}</a></h1> | ||
<p class="date-posted">posted on {$obj.created_at | date}</p> | ||
{$obj.excerpt |noAutoescape} | ||
|
||
{if $obj.has_more}<p><a href="{$obj.url}">Read more...</a></p>{/if} | ||
</div> | ||
{/foreach} | ||
<div id="relative-nav"> | ||
<ul class="pager"> | ||
{if $content.prev} <li class="previous"><a href="{$content.prev.url}">Previous</a></li> {/if} | ||
{if $content.next} <li class="next"><a href="{$content.next.url}">Next</a></li> {/if} | ||
</ul> | ||
</div> | ||
{if $content.tags} | ||
<div class="row-fluid"> | ||
<p>This blog covers | ||
{foreach $tag in $content.tags} | ||
<a href="{$tag.url}">{$tag.name}</a>{nil} | ||
{if not isLast($tag)},{sp}{/if} | ||
{/foreach} | ||
</p> | ||
</div> | ||
{/if} | ||
{if $months} | ||
<div class="row-fluid"> | ||
<p>View content from | ||
{foreach $month in $content.months} | ||
<a href="{$month.url}">{$month.name}</a>{nil} | ||
{if not isLast($month)},{sp}{/if} | ||
{/foreach} | ||
</p> | ||
</div> | ||
{/if} | ||
{/template} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,27 @@ | ||
{namespace coleslaw.theme.readable} | ||
|
||
{template post} | ||
<div class="row-fluid">{\n} | ||
<h1 class="page-header">{$content.title}</h1>{\n} | ||
<p> | ||
{if $content.tags} | ||
Tagged as {foreach $tag in $content.tags} | ||
{if $tag.url}<a href="{$tag.url}">{$tag.name}</a>{else}<b>{$tag.name}</b>{/if}{nil} | ||
{if not isLast($tag)},{sp}{/if} | ||
{/foreach} | ||
{/if} | ||
</p> | ||
<p class="date-posted"> | ||
{if $content.date} | ||
Written on {$content.date} | ||
{/if} | ||
</p> | ||
|
||
{$content.html |noAutoescape} | ||
|
||
<ul class="pager"> | ||
{if $content.prev}<li class="previous"><a href="{$content.prev.url}">← Previous</a></li>{/if}{\n} | ||
{if $content.next}<li class="next"><a href="{$content.next.url}">Next →</a></li>{/if}{\n} | ||
</ul> | ||
</div>{\n} | ||
{/template} |
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,2 @@ | ||
(:class "closure-template" | ||
:namespace "coleslaw.theme.readable") |