Skip to content

Commit c3698b4

Browse files
committed
Clean up HTML
1 parent 5ed59a1 commit c3698b4

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

input/about/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "About"
3+
path: "about/"
34
---
45

56

input/conduct/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Code of Conduct"
3+
path: "conduct/"
34
---
45

56

input/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
title: "The official site of the Los Angeles Python programming language community."
32
---
43

54

input/speaking/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Speaking"
3+
path: "speaking/"
34
---
45

56

input/sponsorship/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Sponsorship"
3+
path: "sponsorship/"
34
---
45

56

templates/default.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,25 @@
1111
{% endif %}
1212

1313
<!-- basic meta -->
14-
<title>SoCal Python{% if title %} | {{ title }}{% endif %}</title>
14+
<title>SoCal Python | {% if title %}{{ title }}{% elif redirect %}Redirecting{% else %}The official site of the Los Angeles Python programming language community.{% endif %}</title>
1515
<meta name="description" content="The official site of the Los Angeles Python programming language community.">
1616

1717
<!-- OG -->
18-
<meta property="og:title" content="SoCal Python{% if title %} | {{ title }}{% endif %}">
18+
<meta property="og:title" content="SoCal Python | {% if title %}{{ title }}{% elif redirect %}Redirecting{% else %}The official site of the Los Angeles Python programming language community.{% endif %}">
1919
<meta property="og:type" content="article">
20-
<meta property="og:url" content="TODO"><!-- TODO -->
20+
<meta property="og:url" content="https://socalpython.org/{{ path }}">
2121
<meta property="og:description" content="The official site of the Los Angeles Python programming language community.">
22-
<meta property="og:image" content="/static/img/socalpython-highres.jpg"><!-- TODO -->
22+
<meta property="og:image" content="https://socalpython.org/assets/img/socalpython-highres.jpg">
2323
<meta property="og:image:width" content="792">
2424
<meta property="og:image:height" content="612">
2525

2626
<!-- assets -->
27-
<link rel="shortcut icon" href="/static/img/snake64.png"><!-- TODO -->
28-
<link rel="apple-touch-icon" href="/static/img/snake144.png"><!-- TODO -->
29-
<link rel="stylesheet" type="text/css" href="/static/style/style.css"><!-- TODO -->
30-
27+
<link rel="shortcut icon" href="/assets/img/snake64.png">
28+
<link rel="apple-touch-icon" href="/assets/img/snake144.png">
29+
<link rel="stylesheet" type="text/css" href="/assets/style/style.css">
3130

3231
<!-- Plausible -->
33-
<script async defer data-domain="socalpython.org" src="https://plausible.io/js/plausible.js"></script>
32+
<script async defer data-domain="socalpython.org" src="https://stats.socalpython.org/js/index.js"></script>
3433
</head>
3534
<body>
3635
<div class="wrapper">
@@ -52,8 +51,11 @@ <h1><a href="/">SoCal Python</a></h1>
5251
</header>
5352
<section>
5453
{% if redirect %}
55-
<p>Redirecting to: {{ redirect }}</p>
54+
<p>Redirecting to: <a href="{{ redirect }}">{{ redirect }}</a></p>
5655
{% else %}
56+
{% if title %}
57+
<h1>{{ title }}</h1>
58+
{% endif %}
5759
{{ content }}
5860
{% endif %}
5961
</section>

0 commit comments

Comments
 (0)