mirror of
https://github.com/yangbvv/yangbvv.github.io.git
synced 2025-12-16 23:11:02 +08:00
Add files via upload
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
(13 sloc) 337 Bytes
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
||||
|
||||
|
||||
61
_layouts/home.html
Normal file
61
_layouts/home.html
Normal file
@@ -0,0 +1,61 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="home">
|
||||
{%- if page.title -%}
|
||||
<h1 class="page-heading">{{ page.title }}</h1>
|
||||
{%- endif -%}
|
||||
|
||||
{{ content }}
|
||||
|
||||
|
||||
{% if site.paginate %}
|
||||
{% assign posts = paginator.posts %}
|
||||
{% else %}
|
||||
{% assign posts = site.posts %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{%- if posts.size > 0 -%}
|
||||
{%- if page.list_title -%}
|
||||
<h2 class="post-list-heading">{{ page.list_title }}</h2>
|
||||
{%- endif -%}
|
||||
<ul class="post-list">
|
||||
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
||||
{%- for post in posts -%}
|
||||
<li>
|
||||
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
||||
<h3>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">
|
||||
{{ post.title | escape }}
|
||||
</a>
|
||||
</h3>
|
||||
{%- if site.show_excerpts -%}
|
||||
{{ post.excerpt }}
|
||||
{%- endif -%}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
|
||||
{% if site.paginate %}
|
||||
<div class="pager">
|
||||
<ul class="pagination">
|
||||
{%- if paginator.previous_page %}
|
||||
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
|
||||
{%- else %}
|
||||
<li><div class="pager-edge">•</div></li>
|
||||
{%- endif %}
|
||||
<li><div class="current-page">{{ paginator.page }}</div></li>
|
||||
{%- if paginator.next_page %}
|
||||
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
|
||||
{%- else %}
|
||||
<li><div class="pager-edge">•</div></li>
|
||||
{%- endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
||||
{%- endif -%}
|
||||
|
||||
</div>
|
||||
14
_layouts/page.html
Normal file
14
_layouts/page.html
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title | escape }}</h1>
|
||||
</header>
|
||||
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
38
_layouts/post.html
Normal file
38
_layouts/post.html
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
|
||||
<p class="post-meta">
|
||||
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
||||
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
||||
{{ page.date | date: date_format }}
|
||||
</time>
|
||||
{%- if page.modified_date -%}
|
||||
~
|
||||
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
|
||||
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
|
||||
{{ mdate | date: date_format }}
|
||||
</time>
|
||||
{%- endif -%}
|
||||
{%- if page.author -%}
|
||||
• {% for author in page.author %}
|
||||
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
|
||||
{%- if forloop.last == false %}, {% endif -%}
|
||||
{% endfor %}
|
||||
{%- endif -%}</p>
|
||||
</header>
|
||||
|
||||
<div class="post-content e-content" itemprop="articleBody">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
{%- if site.disqus.shortname -%}
|
||||
{%- include disqus_comments.html -%}
|
||||
{%- endif -%}
|
||||
|
||||
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
|
||||
</article>
|
||||
Reference in New Issue
Block a user