Add theme
This commit is contained in:
parent
bf19350f7b
commit
038fe3bbe3
20 changed files with 11956 additions and 0 deletions
61
themes/oni/base.tmpl
Normal file
61
themes/oni/base.tmpl
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
{namespace coleslaw.theme.oni}
|
||||||
|
{template base}
|
||||||
|
<!DOCTYPE html>{\n}
|
||||||
|
<html lang="{$config.lang}">
|
||||||
|
<head>
|
||||||
|
<title>{$config.title}</title>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset={$config.charset}" />
|
||||||
|
<meta name="viewport" content="initial-scale=1" />
|
||||||
|
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet" type="text/css" />
|
||||||
|
<link rel="stylesheet" media="screen" href="{$config.domain}/css/fonts/fantasque-sans-mono/stylesheet.css" type="text/css"/>
|
||||||
|
<link href="{$config.domain}/css/style.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="{$config.domain}/css/org.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link rel="alternate" href="{$config.domain}/rss.xml" type="application/rss+xml" />
|
||||||
|
{if $injections.head}
|
||||||
|
{foreach $injection in $injections.head}
|
||||||
|
{$injection|noAutoescape}
|
||||||
|
{/foreach}
|
||||||
|
{/if}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header id="site-header">
|
||||||
|
<nav id="site-navigation">
|
||||||
|
<a href="{$config.domain}">{$config.title}</a>
|
||||||
|
<ul>
|
||||||
|
{foreach $link in $config.sitenav}
|
||||||
|
<li>
|
||||||
|
<a href="{if $link.relative}{$config.domain}/{/if}{$link.url}">{$link.name}</a>
|
||||||
|
</li>
|
||||||
|
{/foreach}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div id="content">
|
||||||
|
{$raw|noAutoescape}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{if $injections.body}
|
||||||
|
{foreach $injection in $injections.body}
|
||||||
|
{$injection|noAutoescape}
|
||||||
|
{/foreach}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<footer id="site-footer">
|
||||||
|
<hr />
|
||||||
|
This site was last updated on <time>{$pubdate}</time>.
|
||||||
|
<br />
|
||||||
|
Unless otherwise credited all material
|
||||||
|
{if $config.license}
|
||||||
|
{$config.license}
|
||||||
|
{else}
|
||||||
|
<a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" src="{$config.domain}/css/cc-by-sa.png" />
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
by {$config.author}. Powered
|
||||||
|
by <a href="https://github.com/redline6561/coleslaw">c0λ∈slaw</a>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
{/template}
|
BIN
themes/oni/css/cc-by-sa.png
Normal file
BIN
themes/oni/css/cc-by-sa.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 672 B |
Binary file not shown.
1980
themes/oni/css/fonts/fantasque-sans-mono/FantasqueSansMono-Bold.svg
Normal file
1980
themes/oni/css/fonts/fantasque-sans-mono/FantasqueSansMono-Bold.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 233 KiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 354 KiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 257 KiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 236 KiB |
Binary file not shown.
93
themes/oni/css/fonts/fantasque-sans-mono/OFL.txt
Normal file
93
themes/oni/css/fonts/fantasque-sans-mono/OFL.txt
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
Copyright (c) 2013-2014, Jany Belluz (jany.belluz@hotmail.fr)
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
40
themes/oni/css/fonts/fantasque-sans-mono/stylesheet.css
Normal file
40
themes/oni/css/fonts/fantasque-sans-mono/stylesheet.css
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
@font-face {
|
||||||
|
font-family: 'FantasqueSansMono-BoldItalic';
|
||||||
|
src: url('FantasqueSansMono-BoldItalic.eot'); /* IE 9 Compatibility Mode */
|
||||||
|
src: url('FantasqueSansMono-BoldItalic.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
|
||||||
|
url('FantasqueSansMono-BoldItalic.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
|
||||||
|
url('FantasqueSansMono-BoldItalic.ttf') format('truetype'), /* Safari, Android, iOS */
|
||||||
|
url('FantasqueSansMono-BoldItalic.svg#strippedname:/home/jany/Polices/Cosmic/Sources/FantasqueSansMono-BoldItalic.sfd') format('svg'); /* Chrome < 4, Legacy iOS */
|
||||||
|
font-weight: Fantasque Sans Mono Bold Italic;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'FantasqueSansMono-Bold';
|
||||||
|
src: url('FantasqueSansMono-Bold.eot'); /* IE 9 Compatibility Mode */
|
||||||
|
src: url('FantasqueSansMono-Bold.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
|
||||||
|
url('FantasqueSansMono-Bold.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
|
||||||
|
url('FantasqueSansMono-Bold.ttf') format('truetype'), /* Safari, Android, iOS */
|
||||||
|
url('FantasqueSansMono-Bold.svg#strippedname:/home/jany/Polices/Cosmic/Sources/FantasqueSansMono-Bold.sfd') format('svg'); /* Chrome < 4, Legacy iOS */
|
||||||
|
font-weight: Fantasque Sans Mono Bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'FantasqueSansMono-Italic';
|
||||||
|
src: url('FantasqueSansMono-RegItalic.eot'); /* IE 9 Compatibility Mode */
|
||||||
|
src: url('FantasqueSansMono-RegItalic.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
|
||||||
|
url('FantasqueSansMono-RegItalic.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
|
||||||
|
url('FantasqueSansMono-RegItalic.ttf') format('truetype'), /* Safari, Android, iOS */
|
||||||
|
url('FantasqueSansMono-RegItalic.svg#strippedname:/home/jany/Polices/Cosmic/Sources/FantasqueSansMono-RegItalic.sfd') format('svg'); /* Chrome < 4, Legacy iOS */
|
||||||
|
font-weight: SPLFirstVisitorFoundSoughtXY() 607.100000 841.000000 1036.000000;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'FantasqueSansMono-Regular';
|
||||||
|
src: url('FantasqueSansMono-Regular.eot'); /* IE 9 Compatibility Mode */
|
||||||
|
src: url('FantasqueSansMono-Regular.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
|
||||||
|
url('FantasqueSansMono-Regular.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
|
||||||
|
url('FantasqueSansMono-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
|
||||||
|
url('FantasqueSansMono-Regular.svg#strippedname:/home/jany/Polices/Cosmic/Sources/FantasqueSansMono-Regular.sfd') format('svg'); /* Chrome < 4, Legacy iOS */
|
||||||
|
font-weight: Fantasque Sans Mono Regular;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
3016
themes/oni/css/org.css
Normal file
3016
themes/oni/css/org.css
Normal file
File diff suppressed because it is too large
Load diff
100
themes/oni/css/style.css
Normal file
100
themes/oni/css/style.css
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
* { margin: 0; padding: 0; border: 0; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #111111;
|
||||||
|
font-family: 'Roboto', sans-serif;
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 1.2em;
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
margin: 20px 0 20px -2em;
|
||||||
|
background-color: #111111;
|
||||||
|
color: #bfbfbf;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 4px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
a { text-decoration: none; color: #0074d9; }
|
||||||
|
a:hover { text-decoration: underline; }
|
||||||
|
a:visited { color: #f012be; }
|
||||||
|
|
||||||
|
pre, code, tt { font-family: 'FantasqueSansMono-Regular'; }
|
||||||
|
|
||||||
|
h1 { font-size: 1.6em; font-family: 'Roboto'; font-weight: 700; text-align: center; }
|
||||||
|
h2 { font-size: 1.5em; }
|
||||||
|
h3 { font-size: 1.4em; }
|
||||||
|
h4 { font-size: 1.3em; }
|
||||||
|
h5 { font-size: 1.2em; }
|
||||||
|
h6 { font-size: 1.1em; }
|
||||||
|
|
||||||
|
header, p, footer { margin-bottom: 15px; }
|
||||||
|
h2 { margin-top: 15px; margin-bottom: 10px; }
|
||||||
|
hr { margin: 8px 0 15px 0; border: 1px solid #808080; }
|
||||||
|
|
||||||
|
article h1 { font-size: 1.5em; text-align: left; margin-bottom: 2px; }
|
||||||
|
article h2 { font-size: 1.4em; letter-spacing: 1px; }
|
||||||
|
article h3 { font-size: 1.3em; }
|
||||||
|
article h4 { font-size: 1.2em; }
|
||||||
|
article h5 { font-size: 1.1em; }
|
||||||
|
article h6 { font-size: 1.0em; }
|
||||||
|
article .article-content { margin-left: 2em; }
|
||||||
|
|
||||||
|
article h1 small {
|
||||||
|
display: block;
|
||||||
|
font-size: 0.6em;
|
||||||
|
font-family: 'Roboto', sans-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
article ul { margin-left: 1em; }
|
||||||
|
|
||||||
|
#content, #site-header, #site-footer { max-width: 725px; margin: 0 auto; }
|
||||||
|
#site-header, #site-footer, #page-navigation, ol, ul { margin-bottom: 15px !important; }
|
||||||
|
#site-navigation ul, ul.tags { float: right; list-style: none; }
|
||||||
|
#site-navigation li { display: inline-block; margin-left: 7px; }
|
||||||
|
|
||||||
|
ul.tags li {
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
padding: 3px 5px;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin-left: 5px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.tags li a {
|
||||||
|
color: #111111;
|
||||||
|
font-family: 'FantasqueSansMono-Regular';
|
||||||
|
}
|
||||||
|
|
||||||
|
#page-navigation ul { list-style: none; }
|
||||||
|
#page-navigation li.prev { float: left; }
|
||||||
|
#page-navigation li.next { float: right; }
|
||||||
|
|
||||||
|
.clear { clear: both; }
|
||||||
|
.center { text-align: center; }
|
||||||
|
|
||||||
|
pre.src {
|
||||||
|
position: relative;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
pre.src:before {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
background-color: white;
|
||||||
|
top: -10px;
|
||||||
|
right: 10px;
|
||||||
|
padding: 3px;
|
||||||
|
border: 1px solid black;
|
||||||
|
color: black;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
pre.src:hover:before { display: inline; }
|
||||||
|
|
||||||
|
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||||
|
pre.src-makefile:before { content: 'Makefile'; }
|
||||||
|
pre.src-makefile-gmake:before { content: 'GNUMakefile'; }
|
74
themes/oni/index.tmpl
Normal file
74
themes/oni/index.tmpl
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
{namespace coleslaw.theme.oni}
|
||||||
|
{template index}
|
||||||
|
<header>
|
||||||
|
<h1 class="title">{$index.title}</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{foreach $obj in $index.content}
|
||||||
|
<article>
|
||||||
|
<header>
|
||||||
|
<h1><a href="{$config.domain}/{$obj.url}">{$obj.title}</a></h1>
|
||||||
|
<small>Published on: <time>{$obj.date}</time></small>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="article-content">
|
||||||
|
{$obj.text|noAutoescape}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
{if $obj.tags}
|
||||||
|
This article is tagged as:
|
||||||
|
{foreach $tag in $obj.tags}
|
||||||
|
<a href="{$config.domain}/{$tag.url}">{$tag.name}</a>{nil}
|
||||||
|
{if not isLast($tag)},{sp}{/if}
|
||||||
|
{/foreach}
|
||||||
|
{/if}
|
||||||
|
</footer>
|
||||||
|
</article>
|
||||||
|
{if not isLast($obj)}
|
||||||
|
<hr />
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
|
||||||
|
<nav id="page-navigation">
|
||||||
|
<ul>
|
||||||
|
{if $prev}
|
||||||
|
<li class="prev">
|
||||||
|
<a href="{$config.domain}/{$prev.url}">Previous</a>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
|
{if $next}
|
||||||
|
<li class="next">
|
||||||
|
<a href="{$config.domain}/{$next.url}">Next</a>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
|
</ul>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
{if $tags}
|
||||||
|
<div id="tagsoup">
|
||||||
|
<p>
|
||||||
|
This blog covers
|
||||||
|
{foreach $tag in $tags}
|
||||||
|
<a href="{$config.domain}/{$tag.url}">{$tag.name}</a>{nil}
|
||||||
|
{if not isLast($tag)},{sp}{/if}
|
||||||
|
{/foreach}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{if $months}
|
||||||
|
<div id="monthsoup">
|
||||||
|
<p>
|
||||||
|
View content from
|
||||||
|
{foreach $month in $months}
|
||||||
|
<a href="{$config.domain}/{$month.url}">{$month.name}</a>{nil}
|
||||||
|
{if not isLast($month)},{sp}{/if}
|
||||||
|
{/foreach}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
{/template}
|
38
themes/oni/post.tmpl
Normal file
38
themes/oni/post.tmpl
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{namespace coleslaw.theme.oni}
|
||||||
|
|
||||||
|
{template post}
|
||||||
|
<article>
|
||||||
|
<header>
|
||||||
|
{if $post.tags}
|
||||||
|
<ul class="tags">
|
||||||
|
{foreach $tag in $post.tags}
|
||||||
|
<li><a href="{$config.domain}/{$tag.url}">{$tag.name}</a></li>
|
||||||
|
{/foreach}
|
||||||
|
</ul>
|
||||||
|
{/if}
|
||||||
|
<h1>{$post.title}</h1>
|
||||||
|
{if $post.date}
|
||||||
|
<small>Published on: <time>{$post.date}</time></small>
|
||||||
|
{/if}
|
||||||
|
</header>
|
||||||
|
<div class="article-content">
|
||||||
|
{$post.text|noAutoescape}
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<nav id="page-navigation">
|
||||||
|
<ul>
|
||||||
|
{if $prev}
|
||||||
|
<li class="prev">
|
||||||
|
<a href="{$config.domain}/{$prev.url}">Previous</a>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
|
{if $next}
|
||||||
|
<li class="next">
|
||||||
|
<a href="{$config.domain}/{$next.url}">Next</a>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
|
</ul>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</nav>
|
||||||
|
{/template}
|
Loading…
Reference in a new issue