commit 5e74a199d13b26cb6a799500c26dc4bfa31c5e12 Author: Ambrose Chua Date: Fri May 30 22:52:38 2014 +0800 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed97f4f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/_site/* \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..992db1c --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +jekyll-diary +============ + +A simple Jekyll template for a personal diary. diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..86d7952 --- /dev/null +++ b/_config.yml @@ -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/ diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..57dc51f --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,22 @@ + + + + + {{ site.title }} + {% assign lvl = page.url | append: 'X' | split: '/' | size %} + {% capture relative %}{% for i in (3..lvl) %}../{% endfor %}{% endcapture %} + + + +{{ content }} + + + \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..231dcbf --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,36 @@ +--- +layout: default +--- +{% capture paginat %} + {% if page.previous %} + + {% else %} + + {% endif %} +   + {% if page.next %} + + {% else %} + + {% endif %} +{% endcapture %} +
+ +
+ \ No newline at end of file diff --git a/all/index.html b/all/index.html new file mode 100644 index 0000000..1c78f39 --- /dev/null +++ b/all/index.html @@ -0,0 +1,26 @@ +--- +layout: default +title: index +--- +
+

{{ site.title }}

+

{{ site.subtitle }}

+ +
+
+ {% for post in site.posts %} +
+

{{ post.date | date: "%d%B%Y" }}

+
+ {{ post.content }} +
+
+ {% endfor %} +
+ \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..2c1d678 --- /dev/null +++ b/index.html @@ -0,0 +1,41 @@ +--- +layout: default +title: index +--- +{% capture paginat %} + {% assign pagepostcount = paginator.posts | size %} + {% if paginator.previous_page %} + + {% else %} + + {% endif %} + {{ paginator.page | minus: 1 | times: paginator.per_page | plus: 1 }} - {{ paginator.page | minus: 1 | times: paginator.per_page | plus: pagepostcount }} of {{ paginator.total_posts }} + {% if paginator.next_page %} + + {% else %} + + {% endif %} +{% endcapture %} +
+

{{ site.title }}

+

{{ site.subtitle }}

+ +
+
+ {% for post in paginator.posts %} + + {% endfor %} +
+ \ No newline at end of file diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..8d11396 --- /dev/null +++ b/styles.css @@ -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; +} \ No newline at end of file