Skip to content

Instantly share code, notes, and snippets.

@technolize
Forked from niw/tumblr-blog.niw.at.html
Created October 2, 2011 02:59
Show Gist options
  • Save technolize/1256967 to your computer and use it in GitHub Desktop.
Save technolize/1256967 to your computer and use it in GitHub Desktop.
Tumbler Theme for blog.niw.at
<!DOCTYPE html>
<!--
Copyright (c) 2011 Yoshimasa Niwa
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<html lang="ja">
<head>
<meta charset="utf-8">
<title>{Title}{block:PostSummary} - {PostSummary}{/block:PostSummary}</title>
<meta name="description" content="{MetaDescription}">
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}">
<meta name="viewport" content="width=950">
<meta property="og:title" content="{block:PostSummary}{PostSummary}{/block:PostSummary}">
<meta property="og:type" content="article">
<meta property="og:url" content="{Permalink}">
<meta property="og:image" content="">
<meta property="og:site_name" content="{Title}">
<meta property="fb:admins" content="{text:Facebook Admin}">
<!-- {{{ Tumber Customize -->
<meta name="color:Link" content="#39c">
<meta name="color:Text" content="#141414">
<meta name="text:Anchor" content="*">
<meta name="text:Google Analytics ID" content="">
<meta name="text:Google Analytics Domain Name" content="">
<meta name="text:Disqus Shortname" content="">
<meta name="text:Copyright" content="">
<meta name="text:Facebook Admin" content="">
<!-- }}} -->
<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
<script type="text/javascript">
{block:IfDisqusShortname}
disqus_shortname = "{text:Disqus Shortname}";
disqus_iframe_css = "http://static.tumblr.com/pvdmavg/OGLl0q9ii/iframe.css";
{/block:IfDisqusShortname}
hide_zero = true
</script>
<!-- {{{ Styles -->
<style type="text/css">
html, body{
border: 0;
margin: 0;
padding: 0;
height: 100%;
}
body {
font-size: 14px;
font-family: georgia, serif;
background: #fff;
color: {color:Text};
}
a img {
border: 0;
vertical-align: text-bottom;
}
a, a:visited {
color: {color:Link};
text-decoration: none;
}
a:hover {
color: #333;
background: #fff;
}
p {
margin: 1em 0;
}
iframe {
border: none;
}
ul, ol {
margin: 0;
padding: 0;
list-style: none;
}
li {
margin: 0;
padding: 0;
}
em, cite {
font-style: normal;
font-weight: bold;
}
code {
font-family: Menlo, Monaco, monospace;
font-size: 90%;
}
pre {
border-left: 2px solid #ddd;
padding: 0 20px;
line-height: 120%;
}
form {
display: inline;
}
v\\:* {
behavior: url(#default#VML);
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {display: inline-table;}
/* \*/
* html .clearfix {height: 1%;}
.clearfix {display: block; zoom: 1;}
/* */
.meta {
color: #ccc;
}
#wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -80px auto;
width: 930px;
}
#footer_push {
height: 80px;
}
#footer {
clear: both;
height: 40px;
width: 590px;
padding: 20px 240px 20px 100px;
margin: 0 auto;
overflow: hidden;
font-size: 80%;
}
#header {
height: 180px;
padding: 0 240px 0 140px;
position: relative;
}
#header h1 {
margin: 0;
position: absolute;
bottom: 40px;
font-size: 60px;
font-family: "Helvetica Neue", Arial, sans-serif;
font-weight: 100;
}
#header h1 a {
color: {color:Text};
}
#content {
clear: both;
margin: 10px 0;
}
#page {
width: 590px;
padding: 0 0 0 100px;
float: left;
position: relative;
}
#sidebar {
width: 200px;
float: right;
position: relative;
line-height: 200%;
font-size: 80%;
}
.post {
padding: 20px 40px;
margin: 0 0 20px 0;
background: #fafafa;
line-height: 200%;
position: relative;
}
.post h1, .post h2, .post h3, .post h4 {
font-family: "Helvetica Neue", Arial, sans-serif;
margin: 0.5em 0;
font-size: 100%;
font-weight: bold;
}
.post .title {
font-size: 180% !important;
font-weight: 200 !important;
margin-bottom: 2em;
}
.post .subtitle {
margin: 0 0 10px 0;
text-align: center;
}
.post ol {
margin-left: 20px;
list-style: decimal;
}
.post ul {
margin-left: 20px;
list-style: square;
}
.post img {
border: 1px solid #ddd;
padding: 3px;
background: #fff;
margin: 1px;
-webkit-border-radius: 3px;
-webkit-box-shadow: 0 0 1px #e0e0e0;
}
.post a:hover img {
border: 1px solid {color:Link};
}
.post .share {
margin: 20px 0;
}
.post hr {
border: none;
display: block;
height: 1px;
width: 50%;
background: #ddd;
margin: 1em auto;
}
.heading {
position: absolute;
left: -100px;
top: 20px;
width: 58px;
font-family: "Helvetica Neue", Arial, sans-serif;
font-weight: 200;
}
.date {
text-align: right;
font-size: 80%;
}
.anchor {
text-align: right;
font-size: 200%;
}
.additional {
clear: both;
padding: 10px 0;
text-align: center;
}
.quote .text {
margin: 10px 0 10px 40px;
font-size: 120%;
position: relative;
}
.quote .text big {
font-size: 60px;
vertical-align: -25px;
opacity: 0.4;
-moz-opacity: 0.4;
filter: alpha(opacity=40);
display: block;
position: absolute;
left: -40px;
top: 10px;
}
.media {
text-align: center;
}
ol.notes {
margin: 0;
list-style-type: none;
}
{CustomCSS}
</style>
<!-- }}} -->
</head>
<body>
<div id="wrapper">
<div id="header">
<h1><a href="/">{Title}</a></h1>
</div>
<div id="content" class="clearfix">
<div id="page">
{block:SearchPage}
{block:SearchResults}
<h2>{lang:Found SearchResultCount results for SearchQuery 2}</h2>
{/block:SearchResults}
{block:NoSearchResults}
<h2>{lang:No search results for SearchQuery 2}</h2>
{/block:NoSearchResults}
{/block:SearchPage}
{block:Posts}
<div class="post clearfix">
<div class="heading">
{block:IfAnchor}
<div class="anchor"><a href="{PermaLink}">{text:Anchor}</a></div>
{/block:IfAnchor}
{block:Date}
<div class="date">{MonthNumber}/{DayOfMonth}, {Year}</div>
{/block:Date}
{block:PermalinkPage}
<div class="share">
<a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="{TwitterUsername}" data-lang="en">Tweet</a>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#appId=224510417605449&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false" data-font="lucida grande"></div>
</div>
{/block:PermalinkPage}
</div>
{block:Regular}
<div class="regular">
{block:Title}<h2 class="title">{Title}</h2>{/block:Title}
{Body}
</div>
{/block:Regular}
{block:Photo}
<div class="photo">
<div class="media">{LinkOpenTag}<img src="{PhotoURL-400}" alt="{PhotoAlt}">{LinkCloseTag}</div>
{block:Caption}
<div class="subtitle meta">
<span class="caption">{Caption}</span>
</div>
{/block:Caption}
</div>
{/block:Photo}
{block:Quote}
<div class="quote">
<div class="text"><big>&#147;</big> {Quote}</div>
{block:Source}
<div class="subtitle meta">
by <span class="source">{Source}</span>
</div>
{/block:Source}
</div>
{/block:Quote}
{block:Link}
<div class="link">
<div class="text"><a href="{URL}" class="link" {Target}>{Name}</a></div>
{block:Description}
<span class="description">{Description}</span>
{/block:Description}
</div>
{/block:Link}
{block:Conversation}
<div class="conversation">
{block:Title}<h2 class="title">{Title}</h2>{/block:Title}
<ul>
{block:Lines}
<li>{block:Label}<span class="label">{Label}</span>{/block:Label} {Line}</li>
{/block:Lines}
</ul>
</div>
{/block:Conversation}
{block:Audio}
<div class="audio">
<div class="media">{AudioPlayerGrey}</div>
{block:Caption}
<div class="subtitle meta">
<span class="caption">{Caption}</span>
</div>
{/block:Caption}
</div>
{/block:Audio}
{block:Video}
<div class="video">
<div class="media">{Video-400}</div>
{block:Caption}
<div class="subtitle meta">
<span class="caption">{Caption}</span>
</div>
{/block:Caption}
</div>
{/block:Video}
{block:Permalink}
{block:Date}
{block:IfDisqusShortname}
<div class="post commented">
<div id="disqus_thread"></div>
<link rel="stylesheet" href="http://static.tumblr.com/pvdmavg/3Egl0q9t8/disqus.css" type="text/css" media="screen">
<script type="text/javascript" src="http://disqus.com/forums/{text:Disqus Shortname}/embed.js"></script>
<noscript><a href="http://{text:Disqus Shortname}.disqus.com/?url=ref">{lang:View the discussion thread}</a></noscript>
<p class="attribution">{lang:Comments powered by Disqus}</p>
</div>
{/block:IfDisqusShortname}
{/block:Date}
{/block:Permalink}
{block:PostNotes}
<div class="post noted">
<div class="info">
{block:NoteCount}<a class="notes">{NoteCount} {lang:Notes}</a>{/block:NoteCount}
</div>
<div class="content">
{PostNotes}
</div>
</div>
{/block:PostNotes}
</div>
{/block:Posts}
<div class="additional">
{block:PreviousPage}
<a href="{PreviousPage}">&#171; {lang:Previous page}</a> &nbsp;&nbsp;
{/block:PreviousPage}
{block:NextPage}
<a href="{NextPage}">{lang:Next page} &#187;</a>
{/block:NextPage}
</div>
</div>
<div id="sidebar">
{Description}
<p><a href="/archive" id="archive_link">{lang:Archive}</a></p>
</div>
</div>
<div id="footer_push"></div>
</div>
<div id="footer">
&copy; {CopyrightYears}{block:IfCopyright} {Text:Copyright}{/block:IfCopyright}.
</div>
{block:IfGoogleAnalyticsID}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{text:Google Analytics ID}']);
{block:IfGoogleAnalyticsDomainName}
_gaq.push(['_setDomainName', '{text:Google Analytics Domain Name}']);
{/block:IfGoogleAnalyticsDomainName}
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{/block:IfGoogleAnalyticsID}
</body>
</html>
<!-- vim:set ts=2 sw=2 expandtab foldmethod=marker: -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment