Config: Use dynamic social preview image based on app name #3160
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
c57dd670d5
commit
9684edb681
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ func (c *Config) SiteDescription() string {
|
||||||
// SitePreview returns the site preview image URL for sharing.
|
// SitePreview returns the site preview image URL for sharing.
|
||||||
func (c *Config) SitePreview() string {
|
func (c *Config) SitePreview() string {
|
||||||
if c.options.SitePreview == "" || c.NoSponsor() {
|
if c.options.SitePreview == "" || c.NoSponsor() {
|
||||||
return c.SiteUrl() + "static/img/preview.jpg"
|
return fmt.Sprintf("https://i.photoprism.app/prism?cover=64&style=centered%%20dark&caption=none&title=%s", url.QueryEscape(c.AppName()))
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.HasPrefix(c.options.SitePreview, "http") {
|
if !strings.HasPrefix(c.options.SitePreview, "http") {
|
||||||
|
|
Loading…
Reference in a new issue