Add sitemap and fully automate article creation

Article pages now insert the cover images automatically & an excerpt is used instead of a description for the page description.
This commit is contained in:
Matthew Grove
2019-01-27 16:23:28 +00:00
parent d6fcb5bf1f
commit d9383354bf
9 changed files with 82 additions and 397 deletions
+14 -31
View File
@@ -14,15 +14,16 @@
<!-- add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Title1 | Reading School">
<meta name="apple-mobile-web-app-title" content="Title | Reading School">
<link rel="apple-touch-icon-precomposed" href="/images/favicon.png">
<!-- tile icon & colour for Windows 8 -->
<meta name="msapplication-TileImage" content="/images/favicon.png">
<meta name="msapplication-TileColor" content="#d84315">
<title>Title1 | Reading School</title>
<meta name="description" content="An article description1">
<title>Title | Reading School</title>
<meta name="description" content="<p>Content</p>
">
<!-- import Roboto (font) -->
<link href="/css/roboto.css" rel="stylesheet">
@@ -73,30 +74,12 @@
<div class="mdc-list-group">
<h3 class="mdc-list-group__subheader">Articles</h3>
<a class="mdc-list-item" href="/articles/2019/01/02/article-name.html" data-mdc-auto-init="MDCRipple">
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">assignment</i>
<span class="mdc-list-item__text">Title1</span>
</a>
<a class="mdc-list-item" href="/articles/2019/01/01/article_name.html" data-mdc-auto-init="MDCRipple">
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">assignment</i>
<span class="mdc-list-item__text">Title1</span>
</a>
<a class="mdc-list-item" href="/articles/2019/01/01/article-name.html" data-mdc-auto-init="MDCRipple">
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">assignment</i>
<span class="mdc-list-item__text">Title1</span>
<span class="mdc-list-item__text">Title</span>
</a>
</div>
<div class="mdc-list-group">
<h3 class="mdc-list-group__subheader">Authors</h3>
<a class="mdc-list-item" href="/authors/name" data-mdc-auto-init="MDCRipple">
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">account_circle</i>
<span class="mdc-list-item__text">Name</span>
</a>
</div>
</nav>
</div>
</aside>
@@ -122,16 +105,16 @@
<main class="main-content" id="main-content">
<div class="mdc-top-app-bar--short-fixed-adjust">
<h2 class="mdc-typography--headline2">Title1</h2>
<h2 class="mdc-typography--headline2">Title</h2>
<h3 class="mdc-typography--subtitle1">
<time class="timeago" datetime="2019-01-01T07:01:00">Tuesday 1 January 2019</time>
| by Name
</h3>
<figure>
<img src="/images/article_name--cover.jpg" style="width:100%;" />
<figcaption class="mdc-typography--caption-text">A brass statue of a child, in a garden</figcaption>
</figure>
<p>Content</p>
<time class="timeago" datetime="2019-01-01T07:01:00">Tuesday 1 January 2019</time>
| by Name
</h3>
<figure>
<img src="/images/2019-01-01-article-name--cover.jpg" style="width:100%;">
<figcaption class="mdc-typography--caption-text">A brass statue of a child, in a garden</figcaption>
</figure>
<p>Content</p>
</div>
</main>