Skip to content

Commit

Permalink
Add OpenGraph to all pages (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolsinga authored Sep 8, 2023
1 parent fde64d2 commit 29b5917
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/com/bolsinga/web/RecordDocumentCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ private Document createDocument(final RecordFactory factory) {
h.addElement(Util.getWebClipIcon());
h.addElement(fLinks.getLinkToRSS());
h.addElement(fLinks.getLinkToStyleSheet());


h.addElement(new Meta().setContent(factory.getTitle()).addAttribute("property", "og:title"));
h.addElement(new Meta().setContent(Util.getSettings().getWebClipIcon()).addAttribute("property", "og:image"));

h.addElement(new Meta().setContent("text/html; charset=" + d.getCodeset()).setHttpEquiv("Content-Type"));
h.addElement(new Meta().setContent(System.getProperty("user.name")).setName("Author"));
if (!Util.getDebugOutput()) {
Expand Down

0 comments on commit 29b5917

Please sign in to comment.