summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-11-15 13:29:23 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-11-15 13:29:23 +0100
commit294fd044deff8e727a29847712a25149c1545063 (patch)
tree6f378c9b0ea86e2b3e2d3eaa8dc570c244002bbd
parent3cd56b234029cbebea177f32c6d531338334ec40 (diff)
downloadkyblo-294fd044deff8e727a29847712a25149c1545063.tar.xz
Rename entries.json to metadata.json
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--Makefile2
-rw-r--r--metadata.json (renamed from entries.json)0
-rwxr-xr-xscripts/build.py2
-rwxr-xr-xscripts/publish2
4 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5db47e0..678221a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-build: $(wildcard entries/*.rst) $(wildcard templates/*.html) entries.json
+build: $(wildcard entries/*.rst) $(wildcard templates/*.html) metadata.json
scripts/build.py
publish: check-entry-given check-title-given $(ENTRY)
diff --git a/entries.json b/metadata.json
index f1339b9..f1339b9 100644
--- a/entries.json
+++ b/metadata.json
diff --git a/scripts/build.py b/scripts/build.py
index 52f2775..03b83b3 100755
--- a/scripts/build.py
+++ b/scripts/build.py
@@ -72,7 +72,7 @@ if __name__ == '__main__':
trim_blocks=True,
lstrip_blocks=True)
- with open('entries.json') as f:
+ with open('metadata.json') as f:
entries = json.load(f)
published, unpublished = split_entries(entries)
diff --git a/scripts/publish b/scripts/publish
index e76409e..b761265 100755
--- a/scripts/publish
+++ b/scripts/publish
@@ -11,7 +11,7 @@ main() {
local date="$(date -Id)"
mv "$file" entries/"$file"
- jq "[.[], { title: \"$title\", date: \"$date\", file: \"$file\" }]" <entries.json | sponge entries.json
+ jq "[.[], { title: \"$title\", date: \"$date\", file: \"$file\" }]" <metadata.json | sponge metadata.json
}
main "$@"