Add Nova branding
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
const defaultThemeColour = "#220735"
|
||||
const defaultHost = "https://pixeldrain.com"
|
||||
const defaultHost = "https://nova.storage"
|
||||
|
||||
type ogData struct {
|
||||
MetaPropRules []ogProp
|
||||
@@ -28,15 +28,15 @@ func (og *ogData) addLink(k, v string) { og.LinkRules = append(og.LinkRules, ogP
|
||||
|
||||
func generateOGData(name, filetype, pageurl, fileurl, thumbnailurl, themecolour string) (og ogData) {
|
||||
og.addProp("og:title", name)
|
||||
og.addProp("og:site_name", "pixeldrain")
|
||||
og.addProp("og:description", "This file has been shared with you on pixeldrain")
|
||||
og.addProp("og:site_name", "Nova.storage")
|
||||
og.addProp("og:description", "This file has been shared with you on Nova")
|
||||
og.addProp("og:url", pageurl)
|
||||
og.addProp("description", "This file has been shared with you on pixeldrain")
|
||||
og.addName("description", "This file has been shared with you on pixeldrain")
|
||||
og.addName("keywords", "pixeldrain,shared,sharing,upload,file,free")
|
||||
og.addProp("description", "This file has been shared with you on Nova")
|
||||
og.addName("description", "This file has been shared with you on Nova")
|
||||
og.addName("keywords", "shared,sharing,upload,file")
|
||||
og.addName("twitter:title", name)
|
||||
og.addName("twitter:site", "@Fornax96")
|
||||
og.addName("twitter:domain", "pixeldrain.com")
|
||||
og.addName("twitter:domain", "nova.storage")
|
||||
og.addName("theme-color", themecolour)
|
||||
|
||||
if strings.HasPrefix(filetype, "image") {
|
||||
|
||||
Reference in New Issue
Block a user