aboutsummaryrefslogtreecommitdiffhomepage
path: root/magefile.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-01-15 20:40:39 +0100
committerBjørn Erik Pedersen <[email protected]>2018-01-17 16:22:33 +0100
commit20c9b6ec81171d1c586ea31d5d08b40b0edaffc6 (patch)
tree990d2709c1333663dce2ff97f16f8791fef3bac9 /magefile.go
parentf8a119b606d55aa4f31f16e5a3cadc929c99e4f8 (diff)
downloadhugo-20c9b6ec81171d1c586ea31d5d08b40b0edaffc6.tar.gz
hugo-20c9b6ec81171d1c586ea31d5d08b40b0edaffc6.zip
resource: Add front matter metadata to Resource
This commit expands the Resource interface with 3 new methods: * Name * Title * Params All of these can be set in the Page front matter. `Name` will get its default value from the base filename, and is the value used in the ByPrefix and GetByPrefix lookup methods. Fixes #4244
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/magefile.go b/magefile.go
index 964bfeb6f..d483585ad 100644
--- a/magefile.go
+++ b/magefile.go
@@ -231,6 +231,9 @@ func TestCoverHTML() error {
}
b, err := ioutil.ReadFile(cover)
if err != nil {
+ if os.IsNotExist(err) {
+ continue
+ }
return err
}
idx := bytes.Index(b, []byte{'\n'})