mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-22 20:00:03 +02:00
Support for custom html meta (#1423)
* Support for custom html meta * Changed html meta description default
This commit is contained in:
parent
6a39250579
commit
095e1f5155
4 changed files with 32 additions and 4 deletions
|
@ -110,6 +110,15 @@ func NewFuncMap() []template.FuncMap {
|
|||
"ThemeColorMetaTag": func() string {
|
||||
return setting.UI.ThemeColorMetaTag
|
||||
},
|
||||
"MetaAuthor": func() string {
|
||||
return setting.UI.Meta.Author
|
||||
},
|
||||
"MetaDescription": func() string {
|
||||
return setting.UI.Meta.Description
|
||||
},
|
||||
"MetaKeywords": func() string {
|
||||
return setting.UI.Meta.Keywords
|
||||
},
|
||||
"FilenameIsImage": func(filename string) bool {
|
||||
mimeType := mime.TypeByExtension(filepath.Ext(filename))
|
||||
return strings.HasPrefix(mimeType, "image/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue