diff options
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 20 | ||||
-rw-r--r-- | _layouts/home.html | 20 | ||||
-rw-r--r-- | _layouts/page.html | 14 | ||||
-rw-r--r-- | _layouts/post.html | 27 |
4 files changed, 81 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..0aab111 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="{{ page.lang | default: site.lang | default: "en" }}"> + + {%- include head.html -%} + + <body> + + <div class="container"> + + {%- include header.html -%} + + <main aria-label="Content"> + {{ content }} + </main> + + </div> + + </body> + +</html> diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..a4802ec --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,20 @@ +--- +layout: default +--- + +{%- if site.posts.size > 0 -%} +<ul id="posts-list"> + {%- for post in site.posts -%} + <li> + <h2> + <a href="{{ post.url | relative_url }}"> + {{ post.title | escape }} + </a> + </h2> + <span>{{ post.date | date: "%b %-d, %Y" }}</span> + <p>{{ post.description }}</p> + </li> + {%- endfor -%} +</ul> + +{%- endif -%} diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..01e4b2a --- /dev/null +++ b/_layouts/page.html @@ -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> diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..6a491f9 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,27 @@ +--- +layout: default +--- +<article itemscope itemtype="http://schema.org/BlogPosting"> + + <header id="post-header"> + <h1 id="post-headline" itemprop="name headline"> + {{ page.title | escape }} + </h1> + <div id="post-sub-header"> + <span itemprop="author" itemscope itemtype="http://schema.org/Person"> + <span itemprop="name">{{ site.author }}</span> + </span> + • + <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished"> + {{ page.date | date: "%b %-d, %Y" }} + </time> + • + <span itemprop="about">{{ page.description }}</span> + </div> + </header> + + <div id="post-content" itemprop="articleBody"> + {{ content }} + </div> + +</article> |