Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions content/minutes/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Minutes
weight: 1
---

{{< display_minutes >}}
15 changes: 15 additions & 0 deletions layouts/shortcodes/display_minutes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ $index := getJSON "https://api.github.com/repositories/73184955/contents" }}

{{ range sort $index "name" "desc" }}
{{ if eq .type "dir" }}
<h2>{{ .name }}</h2>
<table>
{{ $year := getJSON "https://api.github.com/repositories/73184955/contents/" .path }}
{{range sort $year "name" "desc" }}
<tr>
<td><a href="{{ .html_url }}">{{ humanize (strings.TrimRight ".md" .name) }}</a></td>
</tr>
{{ end }}
<table>
{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
publish = "public/"
command = "./scripts/build.sh"
command = "./scripts/build-online.sh"

[context.production.environment]
HUGO_VERSION = "0.33"
Expand Down
9 changes: 9 additions & 0 deletions scripts/build-online.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e

export PATH=node_modules/.bin:${PATH}

rm -rf public/

hugo -v --ignoreCache