File tree Expand file tree Collapse file tree 5 files changed +14
-0
lines changed
Expand file tree Collapse file tree 5 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 11/.project
22target /
33/.hugo /public /
4+ /.hugo /resources /
45/.hugo /.hugo_build.lock
Original file line number Diff line number Diff line change 1515 {{ with .Params.description -}}
1616 < meta name ="description " content ="{{ . }} ">
1717 {{- end }}
18+ {{- partial "opengraph.html" . }}
1819</ head >
1920< body >
2021< div class ="header-bar ">
Original file line number Diff line number Diff line change 1+ {{- $font := resources.Get "fonts/noto-sans-700.ttf" -}}
2+ {{- $image := resources.Get "img/opengraph.png" -}}
3+ {{- $image := $image | images.Filter (images.Text .Title (dict "font" $font "color" "#589" "x" 40 "y" 320 "size" 56)) -}}
4+ {{- $image := $image | resources.Copy ( path.Join .Path "opengraph.png" ) -}}
5+ < meta property ="og:url " content ="{{ .Permalink }} ">
6+ < meta property ="og:type " content ="website ">
7+ < meta property ="og:site_name " content ="The Java Version Almanac ">
8+ < meta property ="og:title " content ="{{ .Title }} ">
9+ {{ with .Params.description -}}
10+ < meta property ="og:description " content ="{{ . }} ">
11+ {{- end }}
12+ < meta property ="og:image " content ="{{ $image.Permalink }} ">
You can’t perform that action at this time.
0 commit comments