Link brave directly to referral link

This commit is contained in:
2021-06-29 12:08:31 +02:00
parent 4d140ad5a2
commit 887f055d67
4 changed files with 7 additions and 6 deletions

View File

@@ -174,11 +174,12 @@ func (tm *TemplateManager) ParseTemplates(silent bool) {
} else if strings.HasSuffix(path, ".gif") {
file = []byte("data:image/gif;base64," + base64.StdEncoding.EncodeToString(file))
}
// Wrap the resources in a template definition
if _, err = tpl.Parse(
`{{define "` + f.Name() + `"}}` + string(file) + `{{end}}`,
); err != nil {
return err
return fmt.Errorf("failed to parse '%s': %w", path, err)
}
if !silent {