fix date formatting in outline
This commit is contained in:
@@ -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.",
|
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",
|
CodeEditLink: "https://github.com/everywall/ladder/edit/origin/proxy_v2/proxychain/responsemodifiers/modify_incoming_cookies.go",
|
||||||
Params: []Param{
|
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.",
|
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",
|
CodeEditLink: "https://github.com/everywall/ladder/edit/origin/proxy_v2/proxychain/responsemodifiers/modify_incoming_cookies.go",
|
||||||
Params: []Param{
|
Params: []Param{
|
||||||
{Name: "whitelist", Type: "&{Ellipsis:19323 Elt:string}"},
|
{Name: "whitelist", Type: "&{Ellipsis:19325 Elt:string}"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -164,8 +164,8 @@ func rewriteHrefLinks(n *html.Node, baseURL string, apiPath string) {
|
|||||||
// createWikipediaDateLink takes in a date
|
// createWikipediaDateLink takes in a date
|
||||||
// and returns an <a> link pointing to the current events page for that day
|
// and returns an <a> link pointing to the current events page for that day
|
||||||
func createWikipediaDateLink(t time.Time) string {
|
func createWikipediaDateLink(t time.Time) string {
|
||||||
url := fmt.Sprintf("https://en.wikipedia.org/wiki/Portal:Current_events#%s", t.Format("2006_January_2"))
|
url := fmt.Sprintf("https://en.wikipedia.org/wiki/Portal:Current_events#%s", t.Format("2006_January_02"))
|
||||||
date := t.Format("January 2, 2006")
|
date := t.Format("January 02, 2006")
|
||||||
return fmt.Sprintf("<a rel=\"noreferrer\" href=\"%s\">%s</a>", url, date)
|
return fmt.Sprintf("<a rel=\"noreferrer\" href=\"%s\">%s</a>", url, date)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user