Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
wild-flame committed Jul 3, 2016
2 parents 9d2b080 + 9004c72 commit f024a24
Show file tree
Hide file tree
Showing 52 changed files with 3,900 additions and 190 deletions.
16 changes: 16 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@ github_username: jekyll

# Build settings
markdown: kramdown

# Third-party services
# just leave someone empty to disable it
google_analytics: UA-41378161-1
disqus_shortname: wildflame

permalink: :title/

# defaults set post layout
defaults:
-
scope:
type: "posts"
path: "_posts"
values:
layout: "post"
9 changes: 9 additions & 0 deletions _includes/author.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<section class="author">
<div class="authorimage box" style="background: url({{site.baseurl}}/assets/img/Taffy.jpg)"></div>
<div class="authorinfo box">
<p>Author | David Lin</p>
<p class="bio">
Currently a Ph.D. student in Singapore University of Technology and Design in the area of Human-Computer Interaction(HCI).
</p>
</div>
</section>
12 changes: 12 additions & 0 deletions _includes/dq.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% if site.disqus_shortname %}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ site.disqus_shortname }}';
var disqus_identifier = '{{ page.id }}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
{% endif %}
365 changes: 365 additions & 0 deletions _includes/evil-icon.html

Large diffs are not rendered by default.

49 changes: 16 additions & 33 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,21 @@
<footer class="site-footer">

<div class="wrapper">

<h2 class="footer-heading">{{ site.title }}</h2>

<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li>{{ site.title }}</li>
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
</ul>
</div>

<div class="footer-col footer-col-2">
<ul class="social-media-list">
{% if site.github_username %}
<li>
{% include icon-github.html username=site.github_username %}
</li>
{% endif %}

{% if site.twitter_username %}
<li>
{% include icon-twitter.html username=site.twitter_username %}
</li>
{% endif %}
</ul>
</div>

<div class="footer-col footer-col-3">
<p>{{ site.description }}</p>
</div>
<div class="container">
<div class="footer left column one-half">
<section class="small-font">
© 2016 <a href="{{site.url}}">{{site.title}}</a> -
Powered by <a href="https://wildflame.me">simple</a>
</section>
</div>

<div class="footer right column one-half">
<section class="small-font">
{% if site.github_username %}
{% include icon-github.html username=site.github_username %}
{% endif %}
{% if site.twitter_username %}
{% include icon-twitter.html username=site.twitter_username %}
{% endif %}
</section>
</div>
</div>

</footer>
10 changes: 10 additions & 0 deletions _includes/ga.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% if site.google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
7 changes: 7 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">

<!-- evil icon -->

<link rel="stylesheet" href="{{"/assets/evil-icons.min.css" | prepend:site.baseurl }}">
<script src="{{"/assets/evil-icons.min.js" | prepend:site.baseurl }}"></script>

<!-- todo: include this into main.css -->

<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
Expand Down
44 changes: 25 additions & 19 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
<h5 class="logo"><a href="{{ site.baseurl }}/">{{ site.title }}</a></h5>
<header class="site-header">

<div class="nav">
<h2 class="logo"><a href="{{ site.baseurl }}/">{{ site.title }}</a></h2>

<a href="#" class="menu-icon">
<svg viewBox="0 0 18 15">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</a>
<div class="nav">

<label for="menu-toggle" class="menu-icon">
<!--div data-icon="ei-navicon"></div-->
<svg viewBox="0 0 18 15">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</label>
<input type="checkbox" id="menu-toggle">

<div class="site-nav">
<nav>
<ul class="page-link">
<li><a href="{{ "/" | prepend: site.baseurl }}">Home</a></li>
<li><a href="{{ "/archive" | prepend: site.baseurl }}">Posts</a></li>
<li><a href="{{ "/about" | prepend: site.baseurl }}">About</a></li>
<li><a href="{{ "/feed.xml" | prepend: site.baseurl }}">RSS</a></li>
</ul>
</nav>
</div>

<div class="trigger">
<ul class="page-link">
{% for my_page in site.pages %}
{% if my_page.title %}
<li><a href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a></li>
{% endif %}
{% endfor %}
<li><a href="{{ "/feed.xml" | prepend: site.baseurl }}">RSS</a></li>
</ul>
</div>
</div>
</header>
2 changes: 1 addition & 1 deletion _includes/icon-github.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span></a>
2 changes: 1 addition & 1 deletion _includes/icon-twitter.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span></a>
11 changes: 11 additions & 0 deletions _includes/share.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<section class="share">
<a class="share-link" href="" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
Twitter
</a>
<a class="share-link" href="" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
Facebook
</a>
<a class="share-link" href="" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530'); return false;">
Google+
</a>
</section>
27 changes: 15 additions & 12 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
<div class="container">
<div class="three columns">
{% include header.html %}
</div>
<div class="nine columns">
<div class="wrapper">
{{ content }}
{% include head.html %}
<body>
<div class="page-content">
<div class="container">
<div class="three columns">
{% include header.html %}
</div>

<div class="nine columns" style="z-index:100;">
<div class="wrapper">
{{ content }}
</div>
</div>
</div>
{% include footer.html %}
</div>
</div>
</body>

</body>
</html>
22 changes: 18 additions & 4 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,27 @@
---
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">

<header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
<header class="artilce_header">
<h1 class="artilce_title" itemprop="name headline">{{ page.title }}</h1>
<p class="artilce_meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
</header>

<div class="post-content" itemprop="articleBody">
<div class="article_content" itemprop="articleBody">
{{ content }}
</div>



<footer class="article-footer">

{% include share.html %}

<hr/>

{% include author.html %}

</footer>

{% include dq.html %}

</article>
26 changes: 26 additions & 0 deletions _posts/2011-06-19-welcome-to-jekyll.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2016-06-19 21:06:26 +0800
author: wild-flame
categories: jekyll update
---
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.

To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].

[jekyll-docs]: http://jekyllrb.com/docs/home
[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll-talk]: https://talk.jekyllrb.com/
Loading

0 comments on commit f024a24

Please sign in to comment.