summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2018-09-03 15:32:18 -0400
committerBrian Picciano <mediocregopher@gmail.com>2018-09-03 19:36:38 -0400
commitbfefb5fa2e831e32672c2feaa844bbc1a7d41bc3 (patch)
treea53551e8cf3b061757d5f7b67f914bdd07247e69 /_layouts
parent89b452fcceba6bec4f9f80b21113b90688a16406 (diff)
restarted with minima theme, but am completely revamping it to use custom theme based on getskeleton.org
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html20
-rw-r--r--_layouts/home.html20
-rw-r--r--_layouts/page.html14
-rw-r--r--_layouts/post.html27
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>