diff --git a/README.md b/README.md index d2aa8aa..0d81df3 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/bin/hugo_0.17_darwin_amd64 b/bin/hugo_0.24.1_darwin_amd64 similarity index 54% rename from bin/hugo_0.17_darwin_amd64 rename to bin/hugo_0.24.1_darwin_amd64 index 963e875..998969e 100755 Binary files a/bin/hugo_0.17_darwin_amd64 and b/bin/hugo_0.24.1_darwin_amd64 differ diff --git a/bin/hugo_0.17_linux_amd64 b/bin/hugo_0.24.1_linux_amd64 similarity index 51% rename from bin/hugo_0.17_linux_amd64 rename to bin/hugo_0.24.1_linux_amd64 index 92cf30b..30376f7 100755 Binary files a/bin/hugo_0.17_linux_amd64 and b/bin/hugo_0.24.1_linux_amd64 differ diff --git a/bin/hugo_0.17_windows_amd64.exe b/bin/hugo_0.24.1_windows_amd64.exe old mode 100755 new mode 100644 similarity index 51% rename from bin/hugo_0.17_windows_amd64.exe rename to bin/hugo_0.24.1_windows_amd64.exe index 60a9b21..6a7461c Binary files a/bin/hugo_0.17_windows_amd64.exe and b/bin/hugo_0.24.1_windows_amd64.exe differ diff --git a/gulpfile.babel.js b/gulpfile.babel.js index b7bb68d..c7a464b 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -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)); diff --git a/site/archetypes/incidents.md b/site/archetypes/incidents.md index b009873..26d2a53 100644 --- a/site/archetypes/incidents.md +++ b/site/archetypes/incidents.md @@ -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.