fix date formatting in outline

This commit is contained in:
Kevin Pham
2023-12-08 14:34:26 -06:00
parent 2f6a67fc67
commit 9fa00188a6
2 changed files with 4 additions and 4 deletions

View File

@@ -485,7 +485,7 @@ var AllMods Modifiers = Modifiers{
Description: "DeleteIncomingCookies prevents ALL cookies from being sent from the proxy server back down to the client.",
CodeEditLink: "https://github.com/everywall/ladder/edit/origin/proxy_v2/proxychain/responsemodifiers/modify_incoming_cookies.go",
Params: []Param{
{Name: "_", Type: "&{Ellipsis:18778 Elt:string}"},
{Name: "_", Type: "&{Ellipsis:18780 Elt:string}"},
},
},
{
@@ -493,7 +493,7 @@ var AllMods Modifiers = Modifiers{
Description: "DeleteIncomingCookiesExcept prevents non-whitelisted cookies from being sent from the proxy server to the client. Cookies whose names are in the whitelist are not removed.",
CodeEditLink: "https://github.com/everywall/ladder/edit/origin/proxy_v2/proxychain/responsemodifiers/modify_incoming_cookies.go",
Params: []Param{
{Name: "whitelist", Type: "&{Ellipsis:19323 Elt:string}"},
{Name: "whitelist", Type: "&{Ellipsis:19325 Elt:string}"},
},
},
{

View File

@@ -164,8 +164,8 @@ func rewriteHrefLinks(n *html.Node, baseURL string, apiPath string) {
// createWikipediaDateLink takes in a date
// and returns an <a> link pointing to the current events page for that day
func createWikipediaDateLink(t time.Time) string {
url := fmt.Sprintf("https://en.wikipedia.org/wiki/Portal:Current_events#%s", t.Format("2006_January_2"))
date := t.Format("January 2, 2006")
url := fmt.Sprintf("https://en.wikipedia.org/wiki/Portal:Current_events#%s", t.Format("2006_January_02"))
date := t.Format("January 02, 2006")
return fmt.Sprintf("<a rel=\"noreferrer\" href=\"%s\">%s</a>", url, date)
}