theme improvements

This commit is contained in:
Pat Dryburgh
2018-08-01 08:06:36 -07:00
parent 6371d0c7e2
commit 79a26d5774
11 changed files with 147 additions and 20 deletions

View File

@ -1,15 +1,19 @@
<!DOCTYPE html>
<html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ site.title }} &mdash; {{ page.title }}</title>
<title>{{ site.title }}{% if page.title %} &mdash; {{ page.title }}{% endif %}</title>
<link rel="stylesheet" href="{{ '/assets/css/main.css' | absolute_url }}?{{ site.time | date: '%s%N' }}">
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}
</head>
<body>

View File

@ -30,7 +30,7 @@ layout: default
{% endif %}
</header>
<main class="home">
<main class="home" aria-label="Content">
<h1 class="divided">
Contents

View File

@ -1,5 +1,5 @@
---
layout: default
layout: post
---
{{ content }}

View File

@ -6,17 +6,25 @@ layout: default
&#10094; Home
</a>
<article>
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<h1 class="post-title divided">
<h1 class="post-title divided p-name" itemprop="name headline">
{{ page.title }}
</h1>
{{ content }}
<div class="article-meta">
<div>{{ page.author }}</div>
<div class="post-date">{{ page.date | date: "%B %-d, %Y" }}</div>
<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>
<div class="post-meta">
{% if page.author %}
<div itemprop="author">{{ page.author }}</div>
{% endif %}
<time class="post-date dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%B %-d, %Y" }}</time>
</div>
{% if site.disqus.shortname %}
{% include disqus-comments.html %}
{% endif %}
</article>