Skip to content

Commit 4e64a2f

Browse files
committed
Sharing fedoralovespython on social media
Enable pretty Twitter and FB formatting. Add new image for sharing (fedoralovespython-share.jpg) only JPEG images are allowed Add metadata for FB and twitter validated with https://cards-dev.twitter.com/validator (Twitter) and https://developers.facebook.com/tools/debug/og/object/ Facebook validator shows some warnings which can be ignored: http://stackoverflow.com/questions/16475336/open-graph-twitter-cards-html5-incompatible Related issue: #25
1 parent 970ac4f commit 4e64a2f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
116 KB
Loading

templates/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
<link href="{{ url_for('static', filename='style.css') }}" rel="stylesheet">
55
<link href="{{ url_for('static', filename='favicon.ico') }}" rel="shortcut icon" type="image/x-icon">
66
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic&amp;subset=latin' rel='stylesheet' type='text/css'>
7+
<!-- For Facebook and Twitter: -->
8+
<meta property="og:type" content="article">
9+
<meta property="og:title" content="Fedora Loves Python - fedoralovespython.org">
10+
<meta property="og:description" content="Fedora’s relationship with Python is very close, making it probably the best platform for developing with Python - learn why!">
11+
<meta property="og:url" content="https://fedoralovespython.org/">
12+
<meta property="og:image" content="{{ url_for('static', filename='img/fedoralovespython-share.jpg', _external=True) }}">
13+
<!-- Additionaly, for Twitter: -->
14+
<meta property="twitter:card" content="summary_large_image">
15+
<meta property="twitter:site" content="@fedora">
16+
<meta property="twitter:creator" content="@fedora" />
717
</head>
818
<body>
919
<header>

0 commit comments

Comments
 (0)