8000 Merge pull request #13 from huonw/twitter-cards · aldeka/blog.rust-lang.org@6022461 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6022461

Browse files
committed
Merge pull request rust-lang#13 from huonw/twitter-cards
Add meta tags for twitter cards.
2 parents 00567aa + d11e30c commit 6022461

File tree

7 files changed

+18
-1
lines changed

7 files changed

+18
-1
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ github_username: rust-lang
1010

1111
# Build settings
1212
markdown: kramdown
13+
14+
root: http://blog.rust-lang.org

_includes/head.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,15 @@
88
<link rel="alternate" type="application/rss+xml" title="The Rust Programming Language Blog" href="http://blog.rust-lang.org/feed.xml" />
99
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
1010
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11+
12+
<meta name="twitter:card" content="summary" />
13+
<meta name="twitter:site" content="@{{ site.twitter_username }}" />
14+
<meta name="twitter:title" content="{{ page.title }}" />
15+
{% if page.description %}
16+
<meta name="twitter:description" content="{{ page.description }}" />
17+
{% else %}
18+
<meta name="twitter:description" content="{{ site.description }}" />
19+
{% endif %}
20+
<meta name="twitter:url" content="{{ site.root }}{{ page.url }}">
21+
1122
</head>

_posts/2014-09-15-Rust-1.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: post
33
title: "Road to Rust 1.0"
44
author: Niko Matsakis
5+
description: "Rust 1.0 is on its way! We have nailed down a concrete list of features and are hard at work on implementing them."
56
---
67

78
Rust 1.0 is on its way! We have nailed down a concrete list of
@@ -170,4 +171,3 @@ it already has. I can't wait to see what comes out of it.
170171
[wc]: https://github.com/rust-lang/rfcs/pull/135
171172
[at]: https://github.com/rust-lang/rfcs/pull/195
172173
[gt]: https://github.com/rust-lang/rfcs/pull/230
173-

_posts/2014-10-30-Stability.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: post
33
title: "Stability as a Deliverable"
44
author: Aaron Turon and Niko Matsakis
5+
description: "The upcoming Rust 1.0 release means a lot, but most fundamentally it is a commitment to stability, alongside our long-running commitment to safety."
56
---
67

78
The upcoming Rust 1.0 release means

_posts/2014-11-20-Cargo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: post
33
title: "Cargo: Rust's community crate host"
44
author: Alex Crichton
5+
description: "Today it is my pleasure to announce that crates.io is online and ready for action."
56
---
67

78
Today it is my pleasure to announce that [crates.io](https://crates.io/) is

_posts/2014-12-12-1.0-Timeline.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: post
33
title: "Rust 1.0: Scheduling the trains"
44
author: Aaron Turon
5+
description: "As 2014 is drawing to a close, it's time to begin the Rust 1.0 release cycle!"
56
---
67

78
As 2014 is drawing to a close, it's time to begin the Rust 1.0 release cycle!

_posts/2014-12-12-Core-Team.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: post
33
title: Yehuda Katz and Steve Klabnik are joining the Rust Core Team
44
author: Niko Matsakis
5+
description: "I'm pleased to announce that Yehuda Katz and Steve Klabnik are joining the Rust core team."
56
---
67

78
I'm pleased to announce that Yehuda Katz and Steve Klabnik are joining

0 commit comments

Comments
 (0)
0