Skip to content

Commit

Permalink
replace id with class
Browse files Browse the repository at this point in the history
  • Loading branch information
kkninjae committed Mar 5, 2017
1 parent 988e6ce commit d644e4c
Show file tree
Hide file tree
Showing 9 changed files with 221 additions and 277 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ Book, a simple Jekyll theme. [Demo](http://kkninjae.github.io/book/)

### Screenshots

![](http://kkninjae.github.io/book/assets/img/mobile.jpg)
![](./assets/img/mobile.jpg)

![](http://kkninjae.github.io/book/assets/img/desktop.jpg)
![](./assets/img/desktop.jpg)

![](http://kkninjae.github.io/book/assets/img/404.jpg)
![](./assets/img/404.jpg)

### Features

* Responsive layout and mobile first
* Customized [404](http://kkninjae.github.io/book/hehe) page
* Footer link is the back-home link

### Get started

Expand Down Expand Up @@ -47,7 +48,7 @@ Please do not delete the first two lines of style.css file.
End.
----

If you like it, [star](https://github.com/kkninjae/book) button is ready :).
If you like it, [star](https://github.com/kkninjae/book) it.

If you have a problem, [github issue is ready](https://github.com/kkninjae/book/issues).

Expand Down
10 changes: 6 additions & 4 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div id="footer">
<p>&copy; <script type="text/javascript">document.write(new Date().getFullYear());</script> <a class="link-1" href="/">{{ site.title }}</a></p>

<p>Powered by <a class="link-1" href="http://jekyllrb.com/">Jekyll</a> with <a class="link-1" href="https://github.com/kkninjae/book">Book</a> theme.</p>
<div class="footer">
<span>&copy;</span>
<span><script type="text/javascript">document.write(new Date().getFullYear());</script></span>
<a class="link-1" href="/">{{ site.title }}</a>
<br />
<span>Powered by <a class="link-1" href="http://jekyllrb.com/">Jekyll</a> with <a class="link-1" href="https://github.com/kkninjae/book">Book</a> theme.</span>
</div>
4 changes: 2 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
layout: default
---
<div class="clear-footer wrapper">
<div class="footer-clear page-wrapper">

<div class="container">
<div class="page-container">

{{ content }}

Expand Down
18 changes: 7 additions & 11 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
---
<div class="clear-footer post-wrapper">
<div class="footer-clear post-wrapper">

<!-- post archive trigger -->
<div class="post-archive-trigger">
Expand All @@ -10,23 +10,19 @@

<!-- post archive -->
<div class="post-archive">
{% if site.posts %}
<ul>
<div class="post-archive-iterms">
{% for post in site.posts %}
{% if page.url == post.url %}
{% assign status = 'checked' %}
{% else %}
{% assign status = '' %}
{% endif %}
<li>
<div class="post-archive-iterm">
<span class="post-archive-date">{{ post.date | date: "%Y-%m-%d" }}</span>
<a class="link-1 post-archive-title {{ status }}" href="{{ post.url }}">{{ post.title }}</a>
</div>
</li>
<a class="post-archive-iterm" href="{{ post.url }}">
<span class="post-archive-date">{{ post.date | date: "%Y-%m-%d" }}</span>
<span class="post-archive-title {{ status }}">{{ post.title }}</span>
</a>
{% endfor %}
</ul>
{% endif %}
</div>
</div>

<!-- post header -->
Expand Down
26 changes: 22 additions & 4 deletions _posts/2015-08-28-book-style-doc.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: Simple Style
title: Book Style
date: 2015-08-28
tags: english
category: blog
Expand All @@ -12,31 +12,47 @@ Three Colors for Heading 2
rabbit
------

Audiam scripta sanctus ea has, sea ullum periculis repudiare ea. Accusata dissentiet sit id, euismod consequuntur sed in, etiam malorum vivendum no usu. Nec cu habeo equidem interpretaris, dicam quidam eu vix. Eu ius iuvaret oportere.

Ea partem virtute nusquam eum, sea minim referrentur in. Vidit consectetuer nam ex. Tempor blandit theophrastus an vel, fastidii incorrupte cum cu, in sint legendos pertinacia mei. Duo eius erat affert te, ad vel diceret posidonium, ne vel praesent persecuti definitiones. Ad pro mutat decore, sit nonumy consul nostrum ei.

cat
---

Te sea melius legendos, nobis prodesset cum ei. Consulatu accommodare sit ne. Duo lorem accumsan moderatius an, id has sensibus praesent patrioque. Eu usu scaevola scripserit, clita altera pri cu.

Virtute constituto theophrastus ad eum, vis at stet salutandi. Te utamur sanctus perfecto usu, congue dissentiunt ei ius, cu eam probatus assentior. Cu omnis legere est, et vidit corrumpit mei, stet illum mundi mea in. Ei ius partem eligendi. Sumo utinam et sea, an ullum ludus eum, eos novum repudiare deseruisse eu.

dog
---

Vis nullam dissentiet ei, mea nihil accumsan perfecto ex, agam melius et usu. Vix reque aperiri instructior cu, nec ad admodum copiosae. Nobis appetere persequeris eos cu, luptatum sapientem facilisis te nam. Mazim philosophia ut est, no insolens assueverit has, cu velit feugiat molestie eam.

Cu dictas perpetua mel, volumus evertitur at vis. Quo case errem senserit in. Ex usu facer feugait evertitur, nam te veri vivendum, vim cu elit omnes menandri. Inermis interesset quaerendum sea at, vidit appetere reformidans duo ei. Cu usu perpetua principes. At etiam homero mel, usu platonem forensibus an.

lion
----

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.

![](/assets/img/blog/dessert.jpg)
![](/book/assets/img/blog/dessert.jpg)

Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.
Tamquam ullamcorper consequuntur vim in, clita tritani consulatu te duo. Vel ut ignota petentium contentiones. Sea in assum tantas ubique, ne sit amet eripuit bonorum. At vis fabellas maiestatis, ea nihil ridens nec, utroque appareat convenire id vim. Est virtute epicurei ad.

Blockquote
==========

Cetero petentium in vim. Ea prodesset complectitur per. Dolor putant platonem eos ei, pertinacia conclusionemque quo ea, percipit consequuntur in vim. Et eos eius utroque consectetuer, in unum posidonium mea. Quod omnes consequuntur et vel, his vocent nominavi eu.

> I am a blockquote.
In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet.

Python Code
===========

Nam an perpetua senserit temporibus. Sea velit iisque veritus ea. Pri ut assum partiendo. Eu iuvaret maiorum mea, atqui commune ad eam. Et est phaedrum forensibus, nec et elitr delenit feugait.

def foo():
return "foo"

Expand All @@ -45,3 +61,5 @@ Python Code

if __name__ == '__main__':
main()

Est inani prodesset ex. Eu reque perfecto consulatu vix, omnes concludaturque eum an. Detraxit consequuntur per eu, virtute atomorum voluptatibus mei ei. Tamquam vituperatoribus et vis, quo in copiosae apeirian.
2 changes: 1 addition & 1 deletion _posts/2015-08-28-jekyll-theme-book.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ Please do not delete the first two lines of style.css file.
End.
----

If you like it, [star](https://github.com/kkninjae/book) button is ready :).
If you like it, [star](https://github.com/kkninjae/book) it :).

If you have a problem, [github issue is ready](https://github.com/kkninjae/book/issues).
34 changes: 17 additions & 17 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
title: About Me
permalink: /about/
---
<div id="about-wrapper">
<div class="about-wrapper">

{% for p in site.about %}
{% assign content = p.paragraph %}
{% for link in p.links %}
{% if link.external %}
{% assign target = '_blank' %}
{% else %}
{% assign target = '_self' %}
{% endif %}
{% assign a = '<a class="link-1" href="' | append: link.url | append: '" target="' | append: target | append: '">' | append: link.name | append: '</a>' %}
{% assign content = content | replace_first: '?link?', a %}
{% endfor %}
{% if p.text_align %}
{% assign alignment = p.text_align %}
{% else %}
{% assign alignment = 'left' %}
{% endif %}
<p style="text-align: {{ alignment }}">{{ content }}</p>
{% assign content = p.paragraph %}
{% for link in p.links %}
{% if link.external %}
{% assign target = '_blank' %}
{% else %}
{% assign target = '_self' %}
{% endif %}
{% assign a = '<a class="link-1" href="' | append: link.url | append: '" target="' | append: target | append: '">' | append: link.name | append: '</a>' %}
{% assign content = content | replace_first: '?link?', a %}
{% endfor %}
{% if p.text_align %}
{% assign alignment = p.text_align %}
{% else %}
{% assign alignment = 'left' %}
{% endif %}
<p style="text-align: {{ alignment }}">{{ content }}</p>
{% endfor%}

</div>
Loading

0 comments on commit d644e4c

Please sign in to comment.