diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
| -rw-r--r-- | layouts/index.html | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c665429..1714af4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,6 +7,10 @@ {{- with .OutputFormats.Get "rss" }} <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ site.Title }}"> {{- end }} + {{- block "opengraph" . }} + {{- if .Title }}<meta property="og:title" content="{{ .Title }}">{{ end }} + {{- if .Summary }}<meta property="og:description" content="{{ .Summary }}">{{ end }} + {{- end }} </head> <body> {{- block "header" . }} diff --git a/layouts/index.html b/layouts/index.html index f9f48e1..62f9019 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,6 @@ +{{- define "opengraph" }} +{{- end }} + {{- define "main" }} <main> {{- if .Pages }} |
