Skip to content

Commit 876a38b

Browse files
authored
Merge pull request #1656 from CyberShadow/pull-20170517-192405
Add OpenGraph meta tags to the front page
2 parents de325df + f575f4c commit 876a38b

File tree

4 files changed

+225
-0
lines changed

4 files changed

+225
-0
lines changed

images/dlogo_2015.svg

Lines changed: 216 additions & 0 deletions
Loading

images/dlogo_opengraph.png

82.5 KB
Loading

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)" />

posix.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ IMAGES=favicon.ico $(ORGS_USING_D) $(addprefix images/, \
118118
$(addsuffix .png, archlinux_logo apple_logo centos_logo chocolatey_logo \
119119
d3 debian_logo dlogo fedora_logo freebsd_logo gentoo_logo homebrew_logo \
120120
opensuse_logo ubuntu_logo windows_logo pattern github-ribbon \
121+
dlogo_opengraph \
121122
$(addprefix ddox/, alias class enum enummember function \
122123
inherited interface module package private property protected \
123124
struct template variable)) \

0 commit comments

Comments
 (0)