1
0

GetArticlesMetadata() -> GetArticleMetadata()

This commit is contained in:
Alexander Andreev 2023-07-29 17:59:36 +04:00
parent 6567cef758
commit 5802410fa4
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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,