Skip to content

Commit f575f4c

Browse files
committed
Add OpenGraph meta tags to the front page
1 parent f9f509d commit f575f4c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.dd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ Macros:
434434
FRONTPAGE_ORG=$(DIVC frontpage-orgs-cell dont-highlight-link donthyphenate, $(LINK2 $2, $(FRONTPAGE_ORG_IMG $3)) $(H3 $1) $(P $(I $4 )))
435435
_= Single word inline CSS needs to be escaped _=
436436
C_A=$1:$2;
437+
META_DESCRIPTION=D is a systems programming language with C-like syntax and static typing.
437438
EXTRA_HEADERS=$(T style,
438439
.why-d-icon {
439440
padding-right: 0.2em;
@@ -467,3 +468,10 @@ Macros:
467468
margin-bottom: -0.5em;
468469
}
469470
)
471+
$(COMMENT index.html only for now, until we can figure out
472+
how to generate a URL to the current page for og:url)
473+
<meta property="og:title" content="$(FULL_TITLE)" />
474+
<meta property="og:type" content="website" />
475+
<meta property="og:url" content="https://dlang.org/" />
476+
<meta property="og:image" content="https://dlang.org/images/dlogo_opengraph.png" />
477+
<meta property="og:description" content="$(META_DESCRIPTION)" />

0 commit comments

Comments
 (0)