mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
feat(template): show GitHub links in about page only when tag and commit are available
This commit is contained in:
parent
6bf3b3c464
commit
a654a5f710
3 changed files with 18 additions and 3 deletions
|
@ -32,6 +32,7 @@ type funcMap struct {
|
|||
// Map returns a map of template functions that are compiled during template parsing.
|
||||
func (f *funcMap) Map() template.FuncMap {
|
||||
return template.FuncMap{
|
||||
"startsWith": strings.HasPrefix,
|
||||
"formatFileSize": formatFileSize,
|
||||
"dict": dict,
|
||||
"truncate": truncate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue