File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77< meta property ="og:description " content ="{{ .Description | default .Site.Params.description }} " />
88< meta property ="og:url " content ="{{ .Permalink }} " />
99
10-
10+ < script >
11+ // Override OG image after page loads
12+ document . querySelector ( 'meta[property="og:image"]' ) ?. setAttribute ( 'content' , '{{ .Site.BaseURL }}/ufo.gif' ) ;
13+ </ script >
Original file line number Diff line number Diff line change 105105< meta property ="og:description " content ="" />
106106< meta property ="og:url " content ="//localhost:1313/404.html " />
107107
108-
108+ < script >
109+
110+ document . querySelector ( 'meta[property="og:image"]' ) ?. setAttribute ( 'content' , '\/\/localhost:1313\//ufo.gif' ) ;
111+ </ script >
109112
110113
111114</ head >
Original file line number Diff line number Diff line change 107107< meta property ="og:description " content ="" />
108108< meta property ="og:url " content ="//localhost:1313/categories/ " />
109109
110-
110+ < script >
111+
112+ document . querySelector ( 'meta[property="og:image"]' ) ?. setAttribute ( 'content' , '\/\/localhost:1313\//ufo.gif' ) ;
113+ </ script >
111114
112115
113116</ head >
Original file line number Diff line number Diff line change 108108< meta property ="og:description " content ="" />
109109< meta property ="og:url " content ="//localhost:1313/ " />
110110
111-
111+ < script >
112+
113+ document . querySelector ( 'meta[property="og:image"]' ) ?. setAttribute ( 'content' , '\/\/localhost:1313\//ufo.gif' ) ;
114+ </ script >
112115
113116
114117</ head >
Original file line number Diff line number Diff line change 107107< meta property ="og:description " content ="" />
108108< meta property ="og:url " content ="//localhost:1313/tags/ " />
109109
110-
110+ < script >
111+
112+ document . querySelector ( 'meta[property="og:image"]' ) ?. setAttribute ( 'content' , '\/\/localhost:1313\//ufo.gif' ) ;
113+ </ script >
111114
112115
113116</ head >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments