Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-index-pages' into dev
* Add collection support * Add custom category settings * Add new (default) theme, simple2
- Loading branch information
Showing
16 changed files
with
799 additions
and
65 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
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,29 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<link rel="Stylesheet" type="text/css" href="{{ site.root }}/static/css/style.css"> | ||
<link rel="Stylesheet" type="text/css" href="{{ site.root }}/static/css/tango.css"> | ||
<link rel="shortcut icon" href="{{ site.root }}/favicon.ico" type="image/x-icon"> | ||
<link rel="icon" href="{{ site.root }}/favicon.ico" type="image/x-icon"> | ||
<link rel="alternate" type="application/atom+xml" href="atom.xml" title="Atom feed"> | ||
<title>{% block title %}{{ site.title }}{% endblock %}</title> | ||
<meta name="keywords" content="{{ site.keywords }}"/> | ||
<meta name="description" content="{{ site.description }}"/> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
</head> | ||
|
||
<body> | ||
<div id="container"> | ||
{% block container %} | ||
{{ page.content }} | ||
{% endblock %} | ||
</div> | ||
<div id="footer"> | ||
<span> | ||
<p>Copyright © {{ site.time.strftime("%Y") }} {{ site.author }}. | ||
Powered by <a href="http://simiki.org/" target="_blank">Simiki</a>.</p> | ||
<p>Site Generated {{ site.time.strftime("%Y-%m-%d %H:%M:%S") }}</p> | ||
</span> | ||
</div> | ||
</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,49 @@ | ||
{%- extends "base.html" %} | ||
|
||
{%- block title %}{{ site.title }}{% endblock %} | ||
|
||
{%- block container %} | ||
<div class="title">{{ site.title }}</div> | ||
|
||
<div class="index"> | ||
{%- if site.index %} {# custom index page #} | ||
{{ page.content }} | ||
{%- else %} {# auto generate index page #} | ||
{%- for category in pages %} | ||
{%- if site.default_ext not in category %} {# is category #} | ||
<div class="category"> | ||
<h2 id="{{ category.name }}"> | ||
{%- if 'label' in category %}{{ category.label }} | ||
{%- else %}{{ category.name|capitalize }}{% endif %} | ||
</h2> | ||
<div class="category_pages"> | ||
<ul> | ||
{%- for page in category.pages %} | ||
<li class="pagelist"> | ||
{%- if site.default_ext in page.fname %} {# is page #} | ||
<a href="./{{ category.name }}/{{ page.name }}.html">{{ page.title }}</a> | ||
{%- if 'description' in page %} | ||
{{ page.description }} | ||
{% endif %} | ||
{%- elif 'pages' in page %} {# is collection #} | ||
{% set coll = page %} {# for readability #} | ||
{{ coll.name }} : | ||
{%- for coll_page in coll.pages %} | ||
<a href="./{{ category.name }}/{{ coll_page.name }}.html">{{ coll_page.title }}</a> | ||
{%- if 'description' in coll_page %} | ||
{{ coll_page.description }} | ||
{% endif %} | ||
{%- if not loop.last %} / {% endif %} | ||
{%- endfor %} | ||
{%- endif %} | ||
</li> | ||
{%- endfor %} | ||
</ul> | ||
</div> <!-- end category_pages --> | ||
</div> <!-- end category --> | ||
{%- endif %} | ||
<div class="clearfix"></div> | ||
{%- endfor %} | ||
{%- endif %} | ||
</div> | ||
{%- endblock %} |
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,34 @@ | ||
{%- extends "base.html" %} | ||
|
||
{%- block title %}{{ page.title }} - {{ site.title }}{% endblock %} | ||
|
||
{%- block container %} | ||
<div id="header"> | ||
<div class="post-nav"> | ||
{%- if not default_home_page -%} | ||
<a href="{{ site.root }}/">Home</a> | ||
{%- if page.category -%} | ||
{%- for c in page.category.split("/") -%} | ||
{%- if loop.first -%} | ||
{%- set id = c -%} | ||
{%- else -%} | ||
{% set id = id ~ "-" ~ c -%} | ||
{%- endif -%} | ||
» <a href="{{ site.root }}/#{{ id }}">{{ c }}</a> | ||
{%- endfor -%} | ||
{%- endif -%} | ||
» {{ page.title }} | ||
<span class="updated">Updated | ||
{% if page.updated %}{{ page.updated }} | ||
{% else %}{{ page.date }}{% endif %} | ||
</span> | ||
{%- endif -%} | ||
</div> | ||
</div> | ||
<div class="clearfix"></div> | ||
|
||
<div class="page_title">{{ page.title }}</div> | ||
|
||
{{ page.content }} | ||
|
||
{%- endblock %} |
Oops, something went wrong.