Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,199 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,113 @@ | ||
## -*- coding: utf-8 -*- | ||
<%namespace name="helper" file="post_helper.tmpl"/> | ||
<%namespace name="pheader" file="post_header.tmpl"/> | ||
<%namespace name="comments" file="comments_helper.tmpl"/> | ||
<%inherit file="post.tmpl"/> | ||
|
||
<%block name="extra_head"> | ||
${parent.extra_head()} | ||
<script src="/assets/js/jquery.min.js"></script> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/Flowtype.js/1.1.0/flowtype.min.js"></script> | ||
<link href='https://fonts.googleapis.com/css?family=Gentium+Book+Basic' rel='stylesheet' type='text/css'> | ||
<style> | ||
.smallcaps { | ||
font-variant: small-caps; | ||
} | ||
.chapter { | ||
width: 100%; | ||
padding: 10px; | ||
-webkit-column-gap: 40px; | ||
-webkit-column-width: 400px; | ||
-webkit-column-count: 2; | ||
-webkit-column-rule: 1px solid #ddd; | ||
height: 90vh; | ||
font-family: 'Gentium Book Basic', serif; | ||
font-color: #2d2e2e; | ||
font-weight: 500; | ||
} | ||
div.frame { | ||
overflow: hidden; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
div.scrolling-cont { | ||
overflow-x: scroll; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4 { | ||
text-align: center; | ||
width: 100%; | ||
font-family: 'Gentium Book Basic', serif; | ||
font-size: 120%; | ||
font-weight: 900; | ||
} | ||
h1 { | ||
font-size: 150%; | ||
} | ||
.subtitle { | ||
text-align: center; | ||
width: 100%; | ||
} | ||
.figure { | ||
height: 88vh; | ||
margin: 0; | ||
} | ||
.illus1, | ||
.front { | ||
margin-left: auto; | ||
margin-right: auto; | ||
max-width: 100%; | ||
max-height: 100%; | ||
height: auto; | ||
} | ||
div.topic { | ||
margin: 0; | ||
} | ||
div.section>p { | ||
text-indent: 1em; | ||
margin-bottom: 0; | ||
text-align: justify; | ||
} | ||
</style> | ||
</%block> | ||
|
||
<%block name="content"> | ||
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div class="frame"> | ||
<div class="scrolling-cont" id="scrolling-cont" name="scrolling-cont"> | ||
<div class="e-content entry-content chapter" itemprop="articleBody text"> | ||
<h1>${post.title()}</h1> | ||
${post.text()} | ||
</div> | ||
</div> | ||
</div> | ||
<script> | ||
$('#scrolling-cont').flowtype({ | ||
minimum: 500, | ||
maximum: 1200, | ||
minFont: 20, | ||
maxFont: 40, | ||
fontRatio: 50 | ||
}); | ||
$(document).ready(function() { | ||
var elem = $('#scrolling-cont'); | ||
elem.click(function(event) { | ||
var x1 = elem.position().left; | ||
var pw = elem.width() + 20; | ||
var x2 = event.pageX; | ||
if (x2 - x1 < pw / 2) { | ||
pw = -pw; | ||
} | ||
elem.animate({ | ||
scrollLeft: '+=' + pw | ||
}, 500) | ||
}); | ||
}); | ||
</script> | ||
</article> | ||
|
||
</%block> |
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,45 @@ | ||
## -*- coding: utf-8 -*- | ||
<%namespace name="helper" file="post_helper.tmpl"/> | ||
<%namespace name="pheader" file="post_header.tmpl"/> | ||
<%namespace name="comments" file="comments_helper.tmpl"/> | ||
<%inherit file="post.tmpl"/> | ||
|
||
<%block name="extra_head"> | ||
${parent.extra_head()} | ||
<style> | ||
.chapter { | ||
width: 100%; | ||
padding: 10px; | ||
-webkit-column-gap: 40px; | ||
-webkit-column-width: 400px; | ||
-webkit-column-count: 2; | ||
-webkit-column-rule: 1px solid #ddd; | ||
height: 90vh; | ||
font-color: #2d2e2e; | ||
font-weight: 500; | ||
} | ||
div.frame { | ||
overflow: hidden; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
div.scrolling-cont { | ||
overflow-x: scroll; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
</style> | ||
</%block> | ||
|
||
<%block name="content"> | ||
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div class="frame"> | ||
<div class="scrolling-cont" id="scrolling-cont" name="scrolling-cont"> | ||
<div class="e-content entry-content chapter" itemprop="articleBody text"> | ||
<h1>${post.title()}</h1> | ||
${post.text()} | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
</%block> |
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,98 @@ | ||
## -*- coding: utf-8 -*- | ||
<%namespace name="helper" file="post_helper.tmpl"/> | ||
<%namespace name="pheader" file="post_header.tmpl"/> | ||
<%namespace name="comments" file="comments_helper.tmpl"/> | ||
<%inherit file="post.tmpl"/> | ||
|
||
<%block name="extra_head"> | ||
${parent.extra_head()} | ||
<script src="/assets/js/jquery.min.js"></script> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/Flowtype.js/1.1.0/flowtype.min.js"></script> | ||
<link href='https://fonts.googleapis.com/css?family=Gentium+Book+Basic' rel='stylesheet' type='text/css'> | ||
<style> | ||
.smallcaps { | ||
font-variant: small-caps; | ||
} | ||
.chapter { | ||
width: 100%; | ||
padding: 10px; | ||
-webkit-column-gap: 40px; | ||
-webkit-column-width: 400px; | ||
-webkit-column-count: 2; | ||
-webkit-column-rule: 1px solid #ddd; | ||
height: 90vh; | ||
font-family: 'Gentium Book Basic', serif; | ||
font-color: #2d2e2e; | ||
font-weight: 500; | ||
} | ||
div.frame { | ||
overflow: hidden; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
div.scrolling-cont { | ||
overflow-x: scroll; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4 { | ||
text-align: center; | ||
width: 100%; | ||
font-family: 'Gentium Book Basic', serif; | ||
font-size: 120%; | ||
font-weight: 900; | ||
} | ||
h1 { | ||
font-size: 150%; | ||
} | ||
.subtitle { | ||
text-align: center; | ||
width: 100%; | ||
} | ||
.figure { | ||
height: 88vh; | ||
margin: 0; | ||
} | ||
.illus1, | ||
.front { | ||
margin-left: auto; | ||
margin-right: auto; | ||
max-width: 100%; | ||
max-height: 100%; | ||
height: auto; | ||
} | ||
div.topic { | ||
margin: 0; | ||
} | ||
div.section>p { | ||
text-indent: 1em; | ||
margin-bottom: 0; | ||
text-align: justify; | ||
} | ||
</style> | ||
</%block> | ||
|
||
<%block name="content"> | ||
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div class="frame"> | ||
<div class="scrolling-cont" id="scrolling-cont" name="scrolling-cont"> | ||
<div class="e-content entry-content chapter" itemprop="articleBody text"> | ||
<h1>${post.title()}</h1> | ||
${post.text()} | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
<script> | ||
$('#scrolling-cont').flowtype({ | ||
minimum: 500, | ||
maximum: 1200, | ||
minFont: 20, | ||
maxFont: 40, | ||
fontRatio: 50 | ||
}); | ||
</script> | ||
</%block> |
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,24 @@ | ||
## -*- coding: utf-8 -*- | ||
<%namespace name="helper" file="post_helper.tmpl"/> | ||
<%namespace name="pheader" file="post_header.tmpl"/> | ||
<%namespace name="comments" file="comments_helper.tmpl"/> | ||
<%inherit file="post.tmpl"/> | ||
|
||
<%block name="content"> | ||
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<header> | ||
${pheader.html_title()} | ||
${pheader.html_translations(post)} | ||
</header> | ||
<div class="e-content entry-content" itemprop="articleBody text"> | ||
${post.text()} | ||
</div> | ||
%if site_has_comments and enable_comments and not post.meta('nocomments'): | ||
<section class="comments"> | ||
<h2>${messages("Comments")}</h2> | ||
${comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)} | ||
</section> | ||
%endif | ||
${helper.mathjax_script(post)} | ||
</article> | ||
</%block> |
Oops, something went wrong.