Skip to content

Commit ee7cd16

Browse files
committed
use og.bmpi.dev to generate open graph image dynamicly
1 parent f0e043f commit ee7cd16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

themes/hugo-coder/layouts/_default/baseof.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
{{ if .Params.og_image }}
3232
<meta property="twitter:image" content="{{ .Params.og_image }}" />
3333
{{ else }}
34-
<meta name="twitter:image" content="{{ .Site.BaseURL }}/{{ .Site.Params.og_image }}">
34+
<meta name="twitter:image" content="https://og.bmpi.dev/{{.Title}}.png">
3535
{{ end }}
3636

3737
<!-- Open Graph -->
3838
{{ template "_internal/opengraph.html" . }}
3939
{{ if .Params.og_image }}
4040
<meta property="og:image" content="{{ .Params.og_image }}" />
4141
{{ else }}
42-
<meta name="og:image" content="{{ .Site.BaseURL }}/{{ .Site.Params.og_image }}">
42+
<meta name="og:image" content="https://og.bmpi.dev/{{.Title}}.png">
4343
{{ end }}
4444

4545
{{ partial "schema.html" . }}

0 commit comments

Comments
 (0)