mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Rewrite commentary on static event handling
This commit is contained in:
@@ -105,12 +105,6 @@ type Position struct {
|
||||
}
|
||||
|
||||
type Pages []*Page
|
||||
//
|
||||
//func (ps Pages) Replace(page *Page) {
|
||||
// if i := ps.FindPagePos(page); i >= 0 {
|
||||
// ps[i] = page
|
||||
// }
|
||||
//}
|
||||
|
||||
func (ps Pages) FindPagePosByFilePath(inPath string) int {
|
||||
for i, x := range ps {
|
||||
@@ -132,16 +126,6 @@ func (ps Pages) FindPagePos(page *Page) int {
|
||||
return -1
|
||||
}
|
||||
|
||||
// FindPage Given a page, it will return the page in Pages
|
||||
// will return nil if not found
|
||||
//func (ps Pages) FindPage(page *Page) *Page {
|
||||
// if i := ps.FindPagePos(page); i >= 0 {
|
||||
// return ps[i]
|
||||
// }
|
||||
//
|
||||
// return nil
|
||||
//}
|
||||
|
||||
func (p *Page) Plain() string {
|
||||
p.initPlain()
|
||||
return p.plain
|
||||
|
Reference in New Issue
Block a user