GetArticlesMetadata() -> GetArticleMetadata()
This commit is contained in:
parent
6567cef758
commit
5802410fa4
@ -49,7 +49,7 @@ func (h *Handlers) Privacy(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func (h *Handlers) Stuff(w http.ResponseWriter, r *http.Request) {
|
||||
web.Stuff("/ Stuff", util.GetServiceByHost(r.Host, util.ServiceGit),
|
||||
util.GetServiceByHost(r.Host, util.ServiceFiles), web.GetArticlesMetadata(), w)
|
||||
util.GetServiceByHost(r.Host, util.ServiceFiles), web.GetArticleMetadata(), w)
|
||||
}
|
||||
|
||||
func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) {
|
||||
|
@ -28,8 +28,8 @@ type ArticleMetadata struct {
|
||||
URL string
|
||||
}
|
||||
|
||||
// GetArticlesMetadata returns a slice of metadata that is sorted by date
|
||||
func GetArticlesMetadata() (meta []ArticleMetadata) {
|
||||
// GetArticleMetadata returns a slice of metadata that is sorted by date
|
||||
func GetArticleMetadata() (meta []ArticleMetadata) {
|
||||
for urlid, article := range articles {
|
||||
|
||||
meta = append(meta,
|
||||
|
Loading…
Reference in New Issue
Block a user