Initial commit
commit
5e74a199d1
|
@ -0,0 +1 @@
|
|||
/_site/*
|
|
@ -0,0 +1,4 @@
|
|||
jekyll-diary
|
||||
============
|
||||
|
||||
A simple Jekyll template for a personal diary.
|
|
@ -0,0 +1,8 @@
|
|||
# Edit only this:
|
||||
title: "bla's personal diary"
|
||||
subtitle: "classified information, for my eyes only! "
|
||||
|
||||
# Do not edit:
|
||||
paginate: 10
|
||||
paginate_path: "page-:num"
|
||||
permalink: /:year/:month/:day/:title/
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>{{ site.title }}</title>
|
||||
{% assign lvl = page.url | append: 'X' | split: '/' | size %}
|
||||
{% capture relative %}{% for i in (3..lvl) %}../{% endfor %}{% endcapture %}
|
||||
<link rel="stylesheet" href="{{ relative }}styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
{{ content }}
|
||||
<script>
|
||||
var relative = "{{ relative }}";
|
||||
var images = document.querySelectorAll("img[src*='#images/']");
|
||||
[].forEach.call(images, function (ele, index, array) {
|
||||
var currentattr = ele.getAttribute("src");
|
||||
var attr = currentattr.replace("#images/", relative + "images/");
|
||||
ele.setAttribute("src", attr);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
{% capture paginat %}
|
||||
{% if page.previous %}
|
||||
<a href="{{ page.previous.url }}" class="btn previous">{{ page.previous.date | date: "%B %d, %Y" }}</a>
|
||||
{% else %}
|
||||
<a class="btn previous disabled">Previous</a>
|
||||
{% endif %}
|
||||
<a class="page_number"> </a>
|
||||
{% if page.next %}
|
||||
<a href="{{ page.next.url }}" class="btn next">{{ page.next.date | date: "%B %d, %Y" }}</a>
|
||||
{% else %}
|
||||
<a class="btn next disabled">Next</a>
|
||||
{% endif %}
|
||||
{% endcapture %}<!--
|
||||
<header>
|
||||
<h1>ambrosechua's personal diary</h1>
|
||||
<h2>for my eyes only, unless...</h2>
|
||||
<nav>
|
||||
{{ paginat }}
|
||||
</nav>
|
||||
</header> -->
|
||||
<main>
|
||||
<article>
|
||||
<h1 title="Posted on {{ page.date | date: "%B %d, %Y" }}">{{ page.date | date: "<span>%d</span><span>%B</span><span>%Y</span>" }}<a href="{{ page.url }}">#{{ page.title }}</a></h1>
|
||||
<div class="content">
|
||||
{{ content }}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
<footer>
|
||||
<nav>
|
||||
{{ paginat }}
|
||||
</nav>
|
||||
</footer>
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
layout: default
|
||||
title: index
|
||||
---
|
||||
<header>
|
||||
<h1>{{ site.title }}</h1>
|
||||
<h2>{{ site.subtitle }}</h2>
|
||||
<nav>
|
||||
<a href="../" class="page_number">All posts</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
{% for post in site.posts %}
|
||||
<article>
|
||||
<h1 title="Posted on {{ post.date | date: "%B %d, %Y" }}">{{ post.date | date: "<span>%d</span><span>%B</span><span>%Y</span>" }}</h1><!-- post.title || -->
|
||||
<div class="content">
|
||||
{{ post.content }}
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</main>
|
||||
<footer>
|
||||
<nav>
|
||||
<span class="page_number">That's all my diary posts. :)</span>
|
||||
</nav>
|
||||
</footer>
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
layout: default
|
||||
title: index
|
||||
---
|
||||
{% capture paginat %}
|
||||
{% assign pagepostcount = paginator.posts | size %}
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path }}" class="btn previous">Newer</a>
|
||||
{% else %}
|
||||
<a class="btn previous disabled">Newer</a>
|
||||
{% endif %}
|
||||
<a href="all" title="Page {{ paginator.page }} of {{ paginator.total_pages }}" class="page_number">{{ paginator.page | minus: 1 | times: paginator.per_page | plus: 1 }} - {{ paginator.page | minus: 1 | times: paginator.per_page | plus: pagepostcount }} of {{ paginator.total_posts }}</a><!--
|
||||
<a href="all" class="page_number">Page {{ paginator.page }} of {{ paginator.total_pages }}</a> -->
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path }}" class="btn next">Older</a>
|
||||
{% else %}
|
||||
<a class="btn next disabled">Older</a>
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
<header>
|
||||
<h1>{{ site.title }}</h1>
|
||||
<h2>{{ site.subtitle }}</h2>
|
||||
<nav>
|
||||
{{ paginat }}
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
{% for post in paginator.posts %}
|
||||
<article>
|
||||
<h1 title="Posted on {{ post.date | date: "%B %d, %Y" }}">{{ post.date | date: "<span>%d</span><span>%B</span><span>%Y</span>" }}<a href="{{ post.url }}">#{{ post.title }}</a></h1><!-- post.title || -->
|
||||
<div class="content">
|
||||
{{ post.content }}
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</main>
|
||||
<footer>
|
||||
<nav>
|
||||
{{ paginat }}
|
||||
</nav>
|
||||
</footer>
|
|
@ -0,0 +1,216 @@
|
|||
@import url(http://fonts.googleapis.com/css?family=Lato:400,700,900,400italic,700italic,900italic);
|
||||
|
||||
/* Reset.css */ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
|
||||
|
||||
/* Stuff under public domain: */
|
||||
|
||||
*, *:before, *:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
*:focus {
|
||||
outline: none;
|
||||
}
|
||||
body {
|
||||
line-height: 1.35em;
|
||||
/*line-height: 1em;*/
|
||||
font-size: 20px;
|
||||
font-family: "Lato", "Helvetica Neue", sans-serif;
|
||||
background-color: #fff;
|
||||
color: #444;
|
||||
margin: 0 auto;
|
||||
max-width: 680px;
|
||||
padding: 20px;
|
||||
min-width: 240px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
box-shadow: 0 10px 0 -8px #444;/*
|
||||
box-shadow: 0 12px 0 -10px #444;*/
|
||||
text-shadow:
|
||||
1px 0 #fff, 0 1px #fff, -1px 0 #fff, 0 -1px #fff;/*,
|
||||
1px 1px #fff, -1px 1px #fff, -1px 1px #fff, -1px -1px #fff*/
|
||||
-webkit-transition: 0.5s box-shadow;
|
||||
}
|
||||
a:hover, a:focus {
|
||||
box-shadow: 0 2px 0 0 #444;
|
||||
}
|
||||
.btn {
|
||||
color: #444;
|
||||
line-height: 1em;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
display: inline-block;/*
|
||||
margin: 1em;*/
|
||||
border-radius: 4px;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0 0 0 #444 inset, 0.3em 0.2em 0 0 #bbb;
|
||||
border: 0.2em solid #444;
|
||||
padding: 0.8em;
|
||||
text-align: center;
|
||||
transition: 0.25s box-shadow, 0.25s -webkit-transform;
|
||||
}
|
||||
.btn {
|
||||
padding: 0.7em;
|
||||
}
|
||||
.btn:hover {
|
||||
box-shadow: 0 4em 0 0 #444 inset, 0em 0em 0 0 #bbb;
|
||||
-webkit-transform: translate(0.3em, 0.2em);
|
||||
color: #fff;
|
||||
}
|
||||
.btn.disabled {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.btn.disabled:hover {
|
||||
box-shadow: 0 0 0 0 #444 inset, 0.3em 0.2em 0 0 #bbb;
|
||||
-webkit-transform: translate(0, 0);
|
||||
color: #444;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 900;
|
||||
line-height: 1.4em;
|
||||
padding: 0.666em 0 0.444em 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.7em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
h5 {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
h6 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
p {
|
||||
padding: 8px 0;
|
||||
}
|
||||
small {
|
||||
font-size: 0.8em;
|
||||
line-height: 1.35em;
|
||||
}
|
||||
ol, ul {
|
||||
list-style: decimal;
|
||||
padding: 10px 30px;
|
||||
}
|
||||
ul {
|
||||
list-style: disc;
|
||||
}
|
||||
hr {
|
||||
/*height: 2px;*/
|
||||
margin: 40px auto;
|
||||
max-width: 180px;
|
||||
border: none;
|
||||
/*background-color: #444;*/
|
||||
border-bottom: 2px solid #444;
|
||||
}
|
||||
pre, code {
|
||||
font-family: "Monaco";
|
||||
background-color: #eee;
|
||||
border: 1px solid #ddd;
|
||||
font-size: 0.8em;
|
||||
line-height: 1.3em;
|
||||
padding: 0 2px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
pre {
|
||||
background-color: #eee;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
pre > code {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
em {
|
||||
font-style: italic;
|
||||
}
|
||||
blockquote {
|
||||
padding: 30px;
|
||||
font-style: italic;
|
||||
}
|
||||
img {
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
}
|
||||
table {
|
||||
margin: 20px;
|
||||
}
|
||||
th, td {
|
||||
padding: 1px 12px;
|
||||
}
|
||||
th {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
article {
|
||||
padding: 1.5em 0;
|
||||
}
|
||||
article .content {
|
||||
padding-left: 70px;
|
||||
}
|
||||
article h1 {
|
||||
padding: 0;
|
||||
margin-left: -14px;
|
||||
margin-bottom: -15px;
|
||||
}
|
||||
article h1 * {
|
||||
vertical-align: top;
|
||||
line-height: 1em;
|
||||
padding: 4px;
|
||||
display: inline-block;
|
||||
}
|
||||
article h1 *:nth-child(1) {
|
||||
font-size: 1.5em;
|
||||
margin-top: -5px;
|
||||
}
|
||||
article h1 *:nth-child(2) {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
article h1 *:nth-child(3) {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
article h1 *:nth-child(4) {
|
||||
/*margin-top: 10px;*/
|
||||
font-size: 0.25em;
|
||||
box-shadow: none;
|
||||
float: right;
|
||||
}
|
||||
article h1 *:nth-child(4):hover {
|
||||
box-shadow: none;
|
||||
}
|
||||
header {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
header h1, header h2 {
|
||||
padding: 0.3em 0em;
|
||||
}
|
||||
nav {
|
||||
padding: 2em;
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
nav .page_number {
|
||||
display: inline-block;
|
||||
margin: 0.74em;
|
||||
}
|
||||
nav .previous {
|
||||
float: left;
|
||||
}
|
||||
nav .next {
|
||||
float: right;
|
||||
}
|
Loading…
Reference in New Issue