mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
commands, tpl: Get rid of repeating viper accesses
* all: Delete some blank lines * commands, tpl: Get rid of repeating viper accesses
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
4b4ab47553
commit
85a2d81e3c
@@ -917,7 +917,6 @@ func (s *SiteInfo) SitemapAbsURL() string {
|
||||
}
|
||||
|
||||
func (s *Site) initializeSiteInfo() {
|
||||
|
||||
var (
|
||||
lang *helpers.Language = s.Language
|
||||
languages helpers.Languages
|
||||
@@ -1980,7 +1979,6 @@ func (s *Site) renderSectionLists(prepare bool) error {
|
||||
}
|
||||
|
||||
if n.paginator != nil {
|
||||
|
||||
paginatePath := helpers.Config().GetString("paginatePath")
|
||||
|
||||
// write alias for page 1
|
||||
@@ -2029,7 +2027,6 @@ func (s *Site) renderSectionLists(prepare bool) error {
|
||||
}
|
||||
|
||||
func (s *Site) renderHomePage(prepare bool) error {
|
||||
|
||||
n := s.newHomeNode(prepare, 0)
|
||||
if prepare {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user