Sha256: 54e44c629221b29be729217d3b3376f4c195f78405e3b44e635f74204a594a9b

Contents?: true

Size: 1.87 KB

Versions: 9

Compression:

Stored size: 1.87 KB

Contents

---
layout: default
---

{%- assign lang = page.lang | default: site.lang | default: 'cmn-Hans' -%}
{%- assign info-array = site.data.theme-2038-i18n | map: lang -%}
{%- assign info = info-array[0] -%}
{%- assign t2038 = site.theme-2038 -%}

{% include drawer.html %}
{% if page.title %}
	<h1 class="ml-title">{{ page.title }}</h1>
{% endif %}
<ul class="ml-smaller ml-ul-dot-line ml-front">
	<li>
		{%- assign time = page.date | default: 'now' -%}
		<time datetime="{{ time }}" title="{{ time | date: info.time-format }}" pubdate>
			{%- assign time-manifest = time | date: info.date-format -%}
			{{ info.published-at | replace: 'TIME', time-manifest }}
		</time>
	</li>
	<li>
		{%- assign length = content.size | divided_by: 1000.0 | round: 1 -%}
		{{ info.post-length | replace: 'LENGTH', length }}
	</li>
	{%- assign clink = t2038.category-links -%}
	{%- if page.categories.size != 0 -%}
	<li>
		{{ info.category }}
		{%- for category in page.categories -%}
		{%- assign cescape = category | uri_escape -%}
		{%- assign now-array = clink | map: category -%}
		{%- if now-array.size == 0 -%}
		<a rel="index" href="
			{{ t2038.category-dir | default: '/category/' | append: cescape | relative_path }}
			">{{ category }}</a>
		{%- else -%}
		<a rel="index" href="{{ now-array[0] }}">{{ category }}</a>
		{%- endif -%}
		{%- endfor -%}
	</li>
	{%- endif -%}
	{%- assign tlink = t2038.tag-links -%}
	{%- if page.tags.size != 0 -%}
	<li>
		{{ info.tag }}
		{%- for tag in page.tags -%}
		{%- assign tescape = tag | uri_escape -%}
		{%- assign now-array = tlink | map: tag -%}
		{%- if now-array.size == 0 -%}
		<a rel="index" href="
			{{ t2038.tag-dir | default: '/tag/' | append: tescape | relative_path }}
			">{{ tag }}</a>
		{%- else -%}
		<a rel="index" href="{{ now-array[0] }}">{{ tag }}</a>
		{%- endif -%}
		{%- endfor -%}
	</li>
	{%- endif -%}
</ul>
<article class="ml-article">
	{{ content }}
</article>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jekyll-theme-2038-0.1.8 _layouts/post.html
jekyll-theme-2038-0.1.7 _layouts/post.html
jekyll-theme-2038-0.1.6 _layouts/post.html
jekyll-theme-2038-0.1.5 _layouts/post.html
jekyll-theme-2038-0.1.4 _layouts/post.html
jekyll-theme-2038-0.1.3 _layouts/post.html
jekyll-theme-2038-0.1.2 _layouts/post.html
jekyll-theme-2038-0.1.1 _layouts/post.html
jekyll-theme-2038-0.1.0 _layouts/post.html