Skip to content

Commit 2deaa6d

Browse files
authored
Merge pull request #1084 from gesiscss/about2
put meta tags for social media previews into block
2 parents 9bc978a + 1d0ad75 commit 2deaa6d

File tree

5 files changed

+19
-23
lines changed

5 files changed

+19
-23
lines changed

binderhub/templates/about.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{% extends "page.html" %}
22

3-
{% block head %}
4-
<meta property="og:description" content="Reproducible, sharable, open, interactive computing environments.">
5-
{{ super() }}
6-
{% endblock head %}
7-
83
{% block main %}
94
<div id="main" class="container">
105
<div class="row">

binderhub/templates/error.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{% extends "page.html" %}
22

3+
{% block meta_social %}
4+
{% endblock meta_social %}
5+
36
{% block main %}
47
<div class="container text-center jumbotron">
58
<h1>

binderhub/templates/index.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@
44
<meta id="base-url" data-url="{{base_url}}">
55
<meta id="badge-base-url" data-url="{{badge_base_url}}">
66
<script src="{{static_url("dist/bundle.js")}}"></script>
7-
8-
9-
<!-- Social media previews -->
10-
<meta property="og:title" content="The Binder Project">
11-
<meta property="og:image" content="https://mybinder.org/static/images/logo_social.png">
12-
<meta property="og:description" content="Reproducible, sharable, interactive computing environments.">
13-
<meta property="og:image:width" content="1334">
14-
<meta property="og:image:height" content="700">
15-
<meta property="og:image:alt" content="The Binder Project Logo" />
16-
<meta name="twitter:card" content="summary_large_image">
17-
187
{{ super() }}
198
{% endblock head %}
209

binderhub/templates/loading.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
{% extends "page.html" %}
22

3-
{% block head %}
4-
<meta id="base-url" data-url="{{base_url}}">
5-
<meta id="badge-base-url" data-url="{{badge_base_url}}">
6-
<meta id="build-token" data-token="{{ build_token }}">
7-
<!-- Other OG information in page.html -->
3+
{% block meta_social %}
84
<meta property="og:title" content="{{social_desc}}">
95
<meta property="og:image" content="https://mybinder.org/static/images/logo_square.png">
106
<meta property="og:description" content="Click to run this interactive environment. From the Binder Project: Reproducible, sharable, interactive computing environments.">
117
<meta property="og:image:width" content="217">
128
<meta property="og:image:height" content="217">
139
<meta property="og:image:alt" content="The Binder Project Logo" />
1410
<meta name="twitter:card" content="summary" />
11+
{% endblock meta_social %}
1512

13+
{% block head %}
14+
<meta id="base-url" data-url="{{base_url}}">
15+
<meta id="badge-base-url" data-url="{{badge_base_url}}">
16+
<meta id="build-token" data-token="{{ build_token }}">
1617
{{ super() }}
1718
<script src="{{static_url("dist/bundle.js")}}"></script>
1819
<link href="{{static_url("loading.css")}}" rel="stylesheet">
19-
20-
2120
{% endblock head %}
2221

2322
{% block main %}

binderhub/templates/page.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
<html>
33
<head>
44
<title>{% block title %}Binder{% endblock %}</title>
5+
{% block meta_social %}
6+
{# Social media previews #}
7+
<meta property="og:title" content="The Binder Project">
8+
<meta property="og:image" content="https://mybinder.org/static/images/logo_social.png">
9+
<meta property="og:description" content="Reproducible, sharable, open, interactive computing environments.">
10+
<meta property="og:image:width" content="1334">
11+
<meta property="og:image:height" content="700">
12+
<meta property="og:image:alt" content="The Binder Project Logo" />
13+
<meta name="twitter:card" content="summary_large_image">
14+
{% endblock meta_social %}
515
{% block head %}
616
<link id="favicon" rel="shortcut icon" type="image/png" href="{{static_url("favicon.ico")}}" />
717
<link href="{{static_url("dist/styles.css")}}" rel="stylesheet"></link>

0 commit comments

Comments
 (0)