init
This commit is contained in:
BIN
_layouts/.DS_Store
vendored
Normal file
BIN
_layouts/.DS_Store
vendored
Normal file
Binary file not shown.
15
_layouts/base.html
Normal file
15
_layouts/base.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{page.lang | default:"en"}}">
|
||||
{% include head.html %}
|
||||
<body>
|
||||
{% include header.html %}
|
||||
{{ content
|
||||
| replace: '<!--qed-->', ' <span class=qed>∎</span>'
|
||||
| replace: '\=\>', '⇒'
|
||||
}}
|
||||
{% include footer.html %}
|
||||
{% include google_analytics.html %}
|
||||
<!-- Page generated {{ site.time }} -->
|
||||
<!-- Page ID {{ page.id }} -->
|
||||
</body>
|
||||
</html>
|
8
_layouts/page.html
Normal file
8
_layouts/page.html
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
layout: base
|
||||
---
|
||||
<main>
|
||||
<article>
|
||||
{{ content }}
|
||||
</article>
|
||||
</main>
|
9
_layouts/post.html
Normal file
9
_layouts/post.html
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
layout: base
|
||||
---
|
||||
<main>
|
||||
<article>
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ content }}
|
||||
</article>
|
||||
</main>
|
48
_layouts/tags.html
Normal file
48
_layouts/tags.html
Normal file
@ -0,0 +1,48 @@
|
||||
---
|
||||
layout: base
|
||||
---
|
||||
<main>
|
||||
|
||||
<h1>{{ page.tag }}</h1>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="60%" cellpadding=10>
|
||||
|
||||
{% assign prev_year = 'first run' %}
|
||||
{% assign sorted_posts = page.posts | sort: "date" | reverse %}
|
||||
{% for post in sorted_posts %}
|
||||
|
||||
{% assign current_year = post.date | date: "%Y" %}
|
||||
|
||||
{% if current_year != prev_year %}
|
||||
{% if prev_year != 'first run' %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% assign prev_year = current_year %}
|
||||
<h2 class="year">{{ current_year | default: '<em>undated</em>' }}</h2>
|
||||
<ul class="index">
|
||||
{% endif %}
|
||||
|
||||
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a><span class="posted">{{ post.date | date: "%b %-d" }}</span></li>
|
||||
|
||||
{% if current_year != date %}
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div id="tag-cloud">
|
||||
{{ site | tag_cloud }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</main>
|
||||
|
Reference in New Issue
Block a user