Skip to content

Commit c88c752

Browse files
committed
Add social graphs for Facebook and Twitter
1 parent 5f202f8 commit c88c752

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

templates/base.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,25 @@
22
<html lang="en" data-theme="light">
33
<head>
44
<meta charset="UTF-8">
5+
{% set title = "Python Type Challenges - Master Python Typing with Interactive Exercises" %}
6+
{% set description = "Join to learn and master Python typing (type hints) with interactive online exercises today!" %}
57
{% block head %}{% endblock %}
68
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9+
<!-- Open Graph -->
10+
<meta property="og:type" content="website" />
11+
<meta property="og:url" content="https://python-type-challenges.zeabur.app/" />
12+
<meta property="og:title" content="{{title}}" />
13+
<meta property="og:description" content="{{description}}" />
14+
<meta property="og:image" content="https://github.com/laike9m/images/assets/2592205/11e7cb79-caad-4be4-8b15-2732cbc698f3" />
15+
<!-- Twitter -->
16+
<meta name="twitter:card" content="summary" />
17+
<meta name="twitter:url" content="https://python-type-challenges.zeabur.app/" />
18+
<meta name="twitter:title" content="{{title}}" />
19+
<meta name="twitter:description" content="{{description}}" />
20+
<meta name="twitter:image" content="https://github.com/laike9m/images/assets/2592205/2012b6cc-7748-4708-b5aa-671dc27cfc18" />
21+
<meta name="twitter:creator" content="@laike9m" />
22+
<meta name="twitter:site" content="@laike9m" />
23+
724
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/picocss/1.5.10/pico.min.css">
825
<style type="text/css">
926
/* override some style in picocss */

templates/challenge.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ super() }}
55

66
<title>Python Type Challenge - Level: {{level}}, Topic: {{name}}</title>
7-
<meta name="description" content="Join Python Type Challenges to learn and master Python typing (type hints) with our comprehensive and interactive exercises.">
7+
<meta name="description" content="{{description}}">
88
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.15/codemirror.min.css" />
99
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.15/theme/material-darker.min.css" />
1010
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.15/codemirror.min.js"></script>

templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
{% block head %}
44
{{ super() }}
5-
<title>Python Type Challenges - Master Python Typing with Interactive Exercises</title>
6-
<meta name="description" content="Join Python Type Challenges to learn and master Python typing (type hints) with our comprehensive and interactive exercises.">
5+
<title>{{title}}</title>
6+
<meta name="description" content="{{description}}">
77
<meta name="google-site-verification" content="IB8oI3WkbGLDND4SMC6m_EiPmREdddxly_JUS-lbM_A" />
88
<link href="https://fonts.loli.net/css2?family=IBM+Plex+Mono:wght@300;500;700&family=Poppins&display=swap"
99
rel="stylesheet">

0 commit comments

Comments
 (0)