|
|
|
@ -80,7 +80,7 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {
@@ -80,7 +80,7 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
http.ServeFile(w, r, path.Join(config.WebRoot, r.URL.Path)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Return a basic HTML page with server-rendered metadata from the config file
|
|
|
|
|
// Return a basic HTML page with server-rendered metadata from the config
|
|
|
|
|
// to give to Opengraph clients and web scrapers (bots, web crawlers, etc).
|
|
|
|
|
func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) { |
|
|
|
|
tmpl, err := static.GetBotMetadataTemplate() |
|
|
|
|