-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
04da75c
commit ea5e3b7
Showing
33 changed files
with
1,569 additions
and
42 deletions.
There are no files selected for viewing
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
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 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<style type="text/css" media="screen"> | ||
.container { | ||
margin: 10px auto; | ||
max-width: 600px; | ||
text-align: center; | ||
} | ||
h1 { | ||
margin: 30px 0; | ||
font-size: 4em; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
} | ||
</style> | ||
|
||
<div class="container"> | ||
<h1>404</h1> | ||
|
||
<p><strong>Page not found :(</strong></p> | ||
<p>Try to check other pages through the menu. </p> | ||
</div> |
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,9 @@ | ||
--- | ||
layout: post | ||
hidden: | ||
- header | ||
- navigator | ||
- related_posts | ||
--- | ||
|
||
{{ content }} |
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,18 @@ | ||
--- | ||
layout: framework | ||
sidebar: archive-list | ||
--- | ||
|
||
{%- if site.posts.size > 0 -%} | ||
|
||
{% include functions.html func='log' level='debug' msg='Get datetimes value' %} | ||
|
||
{% assign filter = '%Y' %} | ||
{% include functions.html func='get_datetimes' %} | ||
{% assign datetimes = return %} | ||
|
||
{% assign keys = datetimes | reverse %} | ||
{% assign field = 'date' %} | ||
{% include views/segments.html %} | ||
|
||
{%- endif -%} |
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,14 @@ | ||
--- | ||
layout: framework | ||
sidebar: category-list | ||
--- | ||
|
||
<div class="articles"> | ||
{% if page.banner == nil %} | ||
{% assign banner = page.title %} | ||
{% endif %} | ||
|
||
{{ content }} | ||
|
||
{% include views/pagination.html %} | ||
</div> |
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,16 @@ | ||
--- | ||
layout: framework | ||
sidebar: category-list | ||
--- | ||
|
||
{%- if site.posts.size > 0 -%} | ||
|
||
{%- include functions.html func='log' level='debug' msg='Get value' -%} | ||
{%- include functions.html func='get_categories' -%} | ||
{% assign categories = return %} | ||
|
||
{% assign keys = categories %} | ||
{% assign field = 'categories' %} | ||
{%- include views/segments.html -%} | ||
|
||
{%- endif -%} |
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,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ page.lang | default: site.lang | default: "en" }}"> | ||
|
||
{%- include head.html -%} | ||
|
||
<body> | ||
|
||
{%- include views/header.html -%} | ||
|
||
{%- include views/banner.html -%} | ||
|
||
{%- include extensions/hashlocate.html -%} | ||
|
||
{%- include extensions/theme-toggle.html -%} | ||
|
||
{%- include extensions/click-to-top.html -%} | ||
|
||
<main class="page-content" aria-label="Content"> | ||
<div class="wrapper"> | ||
{{ content }} | ||
</div> | ||
</main> | ||
|
||
{%- include views/footer.html -%} | ||
|
||
</body> | ||
</html> |
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,35 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="framework"> | ||
<section class="main"> | ||
|
||
{{ content }} | ||
|
||
</section> | ||
<section class="sidebar" style="margin-left: 15px;"> | ||
<!-- Get sidebar items --> | ||
{%- if page.sidebar -%} | ||
{%- assign sidebar = page.sidebar -%} | ||
{%- elsif site.defaults[page.layout].sidebar -%} | ||
{%- assign sidebar = site.defaults[page.layout].sidebar -%} | ||
{%- elsif layout.sidebar -%} | ||
{%- assign sidebar = layout.sidebar -%} | ||
{%- endif -%} | ||
|
||
{%- for item in sidebar -%} | ||
|
||
{%- assign file = item -%} | ||
{%- assign array = file | split: '.' -%} | ||
{%- if array.size == 1 -%} | ||
{%- assign file = file | append: '.html' -%} | ||
{%- endif -%} | ||
|
||
{%- assign file = 'sidebar/' | append: file -%} | ||
|
||
{%- include {{ file }} %} | ||
|
||
{%- endfor -%} | ||
</section> | ||
</div> |
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,17 @@ | ||
--- | ||
layout: articles | ||
heading: {{site.heading}} | ||
subheading: {{site.subheading}} | ||
banner: 'default' | ||
|
||
--- | ||
|
||
{{ content }} | ||
|
||
{% comment %} | ||
heading: {{site.heading}} | ||
subheading: {{site.subheading}} | ||
|
||
heading: "No Arbitrage" | ||
subheading: "Joseph Cai's Personal Blog about Money and Growth." | ||
{% endcomment %} |
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,93 @@ | ||
--- | ||
layout: framework | ||
banner: | ||
banner_html: post-header.html | ||
comments: true | ||
hidden: [] | ||
sidebar: | ||
- article-menu | ||
--- | ||
|
||
<div class="post"> | ||
<section> | ||
|
||
{%- assign name = 'banner' -%} | ||
{%- include functions.html func='get_value' -%} | ||
{%- assign banner = return -%} | ||
|
||
{%- assign name = 'hidden' -%} | ||
{%- include functions.html func='get_value' -%} | ||
{%- assign hidden = return -%} | ||
|
||
{%- assign result = hidden | where_exp: "item", "item == 'header'" -%} | ||
{%- if banner == nil and result.size == 0 -%} | ||
{%- include views/post-header.html -%} | ||
{%- endif -%} | ||
|
||
{%- include views/article.html -%} | ||
|
||
{%- assign result = hidden | where_exp: "item", "item == 'navigator'" -%} | ||
{%- if result.size == 0 -%} | ||
<div class="post-nav"> | ||
{%- if page.previous -%} | ||
<a class="previous" href="{{ page.previous.url | relative_url }}" title="{{ | ||
page.previous.title | escape }}">{{ page.previous.title | escape | truncatewords: 6 }}</a> | ||
{%- else -%} | ||
<span></span> | ||
{%- endif -%} | ||
|
||
{%- if page.next -%} | ||
<a class="next" href="{{ page.next.url | relative_url }}" title="{{ page.next.title | escape }}">{{ page.next.title | escape | truncatewords: 6 }}</a> | ||
{%- else -%} | ||
<span></span> | ||
{%- endif -%} | ||
</div> | ||
{%- endif -%} | ||
|
||
{%- assign result = hidden | where_exp: "item", "item == 'related_posts'" -%} | ||
{%- if result.size == 0 -%} | ||
<div class="post-related"> | ||
<div>Related Articles</div> | ||
<ul> | ||
{% assign posts = site[page.collection] | sample:4 %} | ||
{%- for post in posts -%} | ||
{%- assign post_item_class = "" -%} | ||
{%- if post.top -%} | ||
{%- assign post_item_class = "top-post" -%} | ||
{%- endif -%} | ||
<li class="{{ post_item_class }}"> | ||
<a class="post-link" | ||
href="{{ post.url | relative_url }}" | ||
title="{{ post.title | escape }}"> | ||
{{ post.title | escape | truncatewords: 12 }} | ||
{%- include views/post-badges.html -%} | ||
</a> | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
</div> | ||
{%- endif -%} | ||
|
||
{%- assign result = hidden | where_exp: "item", "item == 'comments'" -%} | ||
{%- if result.size == 0 -%} | ||
<div class="post-comments"> | ||
{%- if page.comments != false -%} | ||
|
||
{%- if site.disqus.shortname -%} | ||
{%- include extensions/comments/disqus.html -%} | ||
{%- endif -%} | ||
|
||
{%- if site.gitment.username -%} | ||
{%- include extensions/comments/gitment.html -%} | ||
{%- endif -%} | ||
|
||
{%- if site.utterances.repo -%} | ||
{%- include extensions/comments/utterances.html -%} | ||
{%- endif -%} | ||
|
||
{%- endif -%} | ||
</div> | ||
{%- endif -%} | ||
|
||
</section> | ||
</div> |
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,16 @@ | ||
--- | ||
layout: framework | ||
sidebar: tag-list | ||
--- | ||
|
||
{%- if site.posts.size > 0 -%} | ||
|
||
{%- include functions.html func='log' level='debug' msg='Get tags value' -%} | ||
{%- include functions.html func='get_tags' -%} | ||
{% assign tags = return %} | ||
|
||
{% assign keys = tags %} | ||
{% assign field = 'tags' %} | ||
{%- include views/segments.html -%} | ||
|
||
{%- endif -%} |
Binary file not shown.
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
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 |
---|---|---|
@@ -1,17 +1,8 @@ | ||
--- | ||
layout: articles | ||
heading: {{site.heading}} | ||
subheading: {{site.subheading}} | ||
heading: 'Your awesome heading' | ||
subheading: 'Your awesome subheading' | ||
banner: 'default' | ||
|
||
--- | ||
|
||
{{ content }} | ||
|
||
{% comment %} | ||
heading: {{site.heading}} | ||
subheading: {{site.subheading}} | ||
|
||
heading: "No Arbitrage" | ||
subheading: "Joseph Cai's Personal Blog about Money and Growth." | ||
{% endcomment %} |
Oops, something went wrong.