mirror of https://github.com/jlelse/GoBlog
Remove unused attribute
This commit is contained in:
parent
1b39454d74
commit
c57ae03502
|
@ -97,7 +97,6 @@ type configBlog struct {
|
||||||
Map *configGeoMap `mapstructure:"map"`
|
Map *configGeoMap `mapstructure:"map"`
|
||||||
Contact *configContact `mapstructure:"contact"`
|
Contact *configContact `mapstructure:"contact"`
|
||||||
Announcement *configAnnouncement `mapstructure:"announcement"`
|
Announcement *configAnnouncement `mapstructure:"announcement"`
|
||||||
name string
|
|
||||||
// Configs read from database
|
// Configs read from database
|
||||||
hideOldContentWarning bool
|
hideOldContentWarning bool
|
||||||
hideShareButton bool
|
hideShareButton bool
|
||||||
|
@ -453,10 +452,6 @@ func (a *goBlog) initConfig(logging bool) error {
|
||||||
if a.cfg.Blogs[a.cfg.DefaultBlog] == nil {
|
if a.cfg.Blogs[a.cfg.DefaultBlog] == nil {
|
||||||
return errors.New("default blog does not exist")
|
return errors.New("default blog does not exist")
|
||||||
}
|
}
|
||||||
// Set name attribute for every blog
|
|
||||||
for name, blog := range a.cfg.Blogs {
|
|
||||||
blog.name = name
|
|
||||||
}
|
|
||||||
// Check media storage config
|
// Check media storage config
|
||||||
if ms := a.cfg.Micropub.MediaStorage; ms != nil && ms.MediaURL != "" {
|
if ms := a.cfg.Micropub.MediaStorage; ms != nil && ms.MediaURL != "" {
|
||||||
ms.MediaURL = strings.TrimSuffix(ms.MediaURL, "/")
|
ms.MediaURL = strings.TrimSuffix(ms.MediaURL, "/")
|
||||||
|
|
Loading…
Reference in New Issue