Skip to content

Commit de5e9d3

Browse files
committed
Adding sharing feature and extra meta tags
1 parent e6cdede commit de5e9d3

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

teams/templates/team.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
{% load teams_tags %}
44
{% load account_tags %}
55

6+
{% block extra_meta %}
7+
8+
{% if showcase %}
9+
<meta property='og:title' content='{{showcase.hack_project.display_name}}'/>
10+
<meta property='og:image' content='{{showcase.image_url}}'/>
11+
<meta property='og:description' content='{{showcase.hack_project.description}}'/>
12+
<meta property='og:url' content='{{showcase.url}}'/>
13+
{% endif %}
14+
15+
{% endblock %}
16+
617
{% block css %}
718
<link rel="stylesheet" href="{% static 'hackathon/css/hackathon.css' %}" />
819
{% endblock %}
@@ -53,6 +64,10 @@ <h3>About the team</h3>
5364
</p>
5465
{% endif %}
5566
{% include 'includes/create_slack_mpim.html' %}
67+
<div class="share-linkedin">
68+
<script src="https://platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
69+
<script type="IN/Share" data-url="{{showcase.url}}"></script>
70+
</div>
5671
</div>
5772
</div>
5873

templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<meta charset="UTF-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0">
99
<meta http-equiv="X-UA-Compatible" content="ie=edge">
10+
{% block extra_meta %}{% endblock %}
1011
<link rel="icon" sizes="192x192" href="{% static 'img/ci-favicon.png' %}" type="image/x-icon">
1112
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
1213
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="

0 commit comments

Comments
 (0)