Merge pull request #24 from steveoh/patch-1

update for hugo 0.24
This commit is contained in:
David Calavera 2017-07-19 08:02:00 -07:00 committed by GitHub
commit 8af8c3e222
6 changed files with 6 additions and 6 deletions

View File

@ -41,10 +41,11 @@ Incidents are plain markdown files inside the `site/content/incidents` directory
### Creating new incidents
Adding incidents to your status page is as simple as adding a new document to the incidents collection.
Create a new incident using Hugo with a command like this:
Create a new incident using Hugo with a command like this as of Hugo v0.24:
```
hugo -s site new -k incidents incidents/oh-no-something-went-wrong.md
cd site
hugo new incidents/oh-no-something-went-wrong.md
```
Hugo will create a new Markdown file for you with title and date based on the file name and a few predefined settings in the header. To learn more about the different severities and report, you can see more detailed examples in `site/archetypes/incidents.md`.

Binary file not shown.

View File

@ -9,7 +9,7 @@ import webpack from "webpack";
import webpackConfig from "./webpack.conf";
const browserSync = BrowserSync.create();
const hugoBin = `./bin/hugo_0.17_${process.platform}_amd64${process.platform === "windows" ? ".exe" : ""}`;
const hugoBin = `./bin/hugo_0.24.1_${process.platform}_amd64${process.platform === "windows" ? ".exe" : ""}`;
const defaultArgs = ["-d", "../dist", "-s", "site", "-v"];
gulp.task("hugo", (cb) => buildSite(cb));

View File

@ -1,9 +1,8 @@
+++
# default attributes for an incident.
#
# Hugo adds `title` and `date` by default
# when running `hugo new incidents/new-incident.md`,
# so we don't have to specify them here.
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = {{ .Date }}
# severity: represents the impact of
# your system due to the current incident.