diff --git a/.circleci/config.yml b/.circleci/config.yml index aa85c9b..dfd23db 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,7 @@ jobs: command: npm install - run: name: Build site - command: ./scripts/build.sh + command: ./scripts/build-online.sh - run: name: Run Tests command: npm run ci-test diff --git a/content/minutes/_index.md b/content/minutes/_index.md new file mode 100644 index 0000000..2763b26 --- /dev/null +++ b/content/minutes/_index.md @@ -0,0 +1,6 @@ +--- +title: Minutes +weight: 1 +--- + +{{< display_minutes >}} diff --git a/layouts/shortcodes/display_minutes.html b/layouts/shortcodes/display_minutes.html new file mode 100644 index 0000000..3aafd2c --- /dev/null +++ b/layouts/shortcodes/display_minutes.html @@ -0,0 +1,15 @@ +{{ $index := getJSON "https://api.github.com/repositories/73184955/contents" }} + +{{ range sort $index "name" "desc" }} + {{ if eq .type "dir" }} +

{{ .name }}

+ + {{ $year := getJSON "https://api.github.com/repositories/73184955/contents/" .path }} + {{range sort $year "name" "desc" }} + + + + {{ end }} +
{{ humanize (strings.TrimRight ".md" .name) }}
+ {{ end }} +{{ end }} diff --git a/netlify.toml b/netlify.toml index e503c24..3488578 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] publish = "public/" - command = "./scripts/build.sh" + command = "./scripts/build-online.sh" [context.production.environment] HUGO_VERSION = "0.33" diff --git a/scripts/build-online.sh b/scripts/build-online.sh new file mode 100755 index 0000000..bc0c5d0 --- /dev/null +++ b/scripts/build-online.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +export PATH=node_modules/.bin:${PATH} + +rm -rf public/ + +hugo -v --ignoreCache