Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
templates_dir: templates
csv_dir: csv
base_url: https://pynw.org

build:
pages_dir: pages
Expand All @@ -12,4 +13,3 @@ logs:

analytics:
output_dir: analytics
base_url: https://pynw.org
3 changes: 1 addition & 2 deletions pages/about/meta.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
title: About us
description: Python community user group based in Manchester, UK.
slug: about
description: Python community user group based in Manchester, UK.
3 changes: 1 addition & 2 deletions pages/events/meta.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
title: Events
description: Python community user group events in Manchester
slug: events
description: Python community user group events in Manchester
3 changes: 1 addition & 2 deletions pages/sponsor/meta.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
title: Sponsor us
description: How you can support Python North West
slug: sponsor
description: How you can support Python North West
6 changes: 3 additions & 3 deletions templates/home.pt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div metal:use-macro="layout">
<div metal:fill-slot="head" tal:omit-tag="1">
<meta name="description" content="The homepage of the Python North West user group" />
<meta property="og:url" content="https://pynw.org/" />
<meta property="og:url" content="${site.config.base_url}/${page.link}" />
<meta property="og:title" content="${page.title}" />
<meta property="og:description" content="The homepage of the Python North West user group" />
<meta name="twitter:title" content="${page.title}" />
<meta name="twitter:description" content="The homepage of the Python North West user group" />
<meta property="og:description" content="${page.description}" />
<meta name="twitter:description" content="${page.description}" />
</div>

<div metal:fill-slot="title" tal:omit-tag="1">Home</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/layout.pt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<link rel="shortcut icon" href="/images/pythonnw.png" type="image/x-icon" />
<link rel="icon" href="/images/pythonnw.png" type="image/x-icon" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://pynw.org/images/pythonnw.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@pythonnorthwest" />
<meta name="twitter:image" content="https://pynw.org/images/pythonnw.png" />
<meta property="og:image" content="${site.config.base_url}/images/pythonnw.png" />
<meta name="twitter:image" content="${site.config.base_url}/images/pythonnw.png" />
<meta metal:define-slot="head" />
</head>
<body class="is-preload">
Expand Down
8 changes: 4 additions & 4 deletions templates/page.pt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div metal:use-macro="layout">
<div metal:fill-slot="head" tal:omit-tag="1">
<meta name="description" content="The homepage of the Python North West user group" />
<meta property="og:url" content="https://pynw.org/" />
<meta name="description" content="${page.description}" />
<meta property="og:url" content="${site.config.base_url}/${page.link}" />
<meta property="og:title" content="${page.title}" />
<meta property="og:description" content="The homepage of the Python North West user group" />
<meta name="twitter:title" content="${page.title}" />
<meta name="twitter:description" content="The homepage of the Python North West user group" />
<meta property="og:description" content="${page.description}" />
<meta name="twitter:description" content="${page.description}" />
</div>

<div metal:fill-slot="title" tal:omit-tag="1">${page.title}</div>
Expand Down
7 changes: 6 additions & 1 deletion templates/sitemap.pt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://pynw.org</loc>
<loc>${site.config.base_url}</loc>
</url>
<tal:block tal:repeat="page site.pages">
<url tal:condition="page.slug != '404'">
<loc>${site.config.base_url}/${page.link}</loc>
</url>
</tal:block>
</urlset>