on master help sign in
Feature: Twitter cards
29566b4Matilde Park
templates/404.html+8−1
@@ -1,5 +1,12 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="404 - {{ config.title }}">
4+ <title>404 - {{ config.title }}</title>
2−{% block title %} 404 {% endblock title %}
5+{% endblock title %}
6+{% block description %}
7+ <meta name="og:description" content="Content not found.">
8+ <meta name="description" content="Content not found.">
9+{% endblock description %}
3{% block content %}
10{% block content %}
4<nav class="mt4 w5">
11<nav class="mt4 w5">
5 <a class="gray3" href="/">Urbit</a>
12 <a class="gray3" href="/">Urbit</a>
templates/base.html+7−8
@@ -5,12 +5,13 @@
5 <meta charset="UTF-8">
5 <meta charset="UTF-8">
6 <meta name="apple-mobile-web-app-capable" content="yes">
6 <meta name="apple-mobile-web-app-capable" content="yes">
7 <meta name="viewport" content="width=device-width">
7 <meta name="viewport" content="width=device-width">
8− <!-- TWITTER -->
9− <meta name="twitter:card" content="summary_large_image">
8+ <meta name="twitter:card" content="summary_large_image">
10− <meta name="twitter:site" content="@urbit">
9+ <meta name="twitter:site" content="@urbit">
11− <meta name="twitter:creator" content="@urbit">
10+ <meta name="twitter:creator" content="@urbit">
12− <!-- END TWITTER -->
11+ {% block title %}
12+ {% endblock title %}
13+ {% block description %}
13− <meta name="description" content="{% block description %}{% endblock description %}">
14+ {% endblock description %}
14 <meta name="author" content="{{ config.extra.author.name }}">
15 <meta name="author" content="{{ config.extra.author.name }}">
15 <!-- END META -->
16 <!-- END META -->
16
17
@@ -22,8 +23,6 @@
22 <link rel="alternative" type="application/rss+xml" title="RSS" href="/rss.xml" />
23 <link rel="alternative" type="application/rss+xml" title="RSS" href="/rss.xml" />
23 <!-- END RSS -->
24 <!-- END RSS -->
24
25
25− <title>{% block title %}{% endblock title %} - {{ config.title }}</title>
26−
27 <!-- START CSS -->
26 <!-- START CSS -->
28 <link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
27 <link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
29 <style type="text/css">
28 <style type="text/css">
templates/doc.html+8−1
@@ -1,5 +1,12 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="{{ page.title }} - {{ config.title }}">
4+ <title>{{ page.title }} - {{ config.title }}</title>
2−{% block title %} {{ page.title }} {% endblock title %}
5+{% endblock title %}
6+{% block description %}
7+ <meta name="og:description" content="From the Urbit documentation.">
8+ <meta name="description" content="From the Urbit documentation.">
9+{% endblock description %}
3{% block bodyclasses %} class="docs" {% endblock bodyclasses %}
10{% block bodyclasses %} class="docs" {% endblock bodyclasses %}
4{% block content %}
11{% block content %}
5<!-- header -->
12<!-- header -->
templates/essays/list.html+11−1
@@ -1,5 +1,15 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+
3+{% block title %}
4+ <meta name="og:title" content="Blog - {{ config.title }}">
5+ <title>Blog - {{ config.title }}</title>
2−{% block title %} Blog {% endblock title %}
6+{% endblock title %}
7+
8+{% block description %}
9+ <meta name="og:description" content="Directory for the Urbit Blog.">
10+ <meta name="description" content="Directory for the Urbit Blog.">
11+{% endblock description %}
12+
3{% block content %}
13{% block content %}
4<!-- header -->
14<!-- header -->
5<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
15<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
templates/essays/post.html+12−3
@@ -1,9 +1,18 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2−{% block title %}
2+{% block title %}
3+ <meta name="og:title" content="{{ page.title }} - {{ config.title }}">
3− {{ page.title }}
4+ <title>{{ page.title }} - {{ config.title }}</title>
4{% endblock title %}
5{% endblock title %}
5
6
7+{% block description %}
8+ {% if page.description %}
9+ <meta name="og:description" content="{{ page.description }}">
10+ <meta name="description" content="{{ page.description }}">
11+ {% else %}
12+ <meta name="og:description" content="{{ config.description }}">
13+ <meta name="description" content="{{ config.description }}">
14+ {% endif %}
6−{% block description %} {{ page.description }} {% endblock description %}
15+{% endblock description %}
7
16
8{% block bodyclasses %}
17{% block bodyclasses %}
9 class="essay
18 class="essay
templates/index.html+8−2
@@ -6,8 +6,14 @@
6
6
7{% block bodyclasses %}class="index"{% endblock bodyclasses %}
7{% block bodyclasses %}class="index"{% endblock bodyclasses %}
8
8
9+{% block title %}
10+ <meta name="og:title" content="{{ section.title }} - {{ config.title }}">
11+ <title>{{ section.title }} - {{ config.title }}</title>
9−{% block title %} {{ section.title }} {% endblock title %}
12+{% endblock title %}
10−
13+{% block description %}
14+ <meta name="og:description" content="Urbit is your last computer. It's is a simple, durable computer that you own 100% and forever.">
15+ <meta name="description" content="Urbit is your last computer. It's is a simple, durable computer that you own 100% and forever.">
16+{% endblock description %}
11{% block content %}
17{% block content %}
12
18
13<section class="full p0 vid-insert-wrap full-bleed">
19<section class="full p0 vid-insert-wrap full-bleed">
templates/list.html+9−1
@@ -1,5 +1,13 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="{{ section.title }} - {{ config.title }}">
4+ <title>{{ section.title }} - {{ config.title }}</title>
2−{% block title %} {{ section.title }} {% endblock title %}
5+{% endblock title %}
6+{% block description %}
7+ <meta name="og:description" content="Directory for {{ section.title }}.">
8+ <meta name="description" content="Directory for {{ section.title }}.">
9+{% endblock description %}
10+
3{% block content %}
11{% block content %}
4<!-- header -->
12<!-- header -->
5<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
13<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
templates/media/list.html+10−1
@@ -1,5 +1,14 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="Media - {{ config.title }}">
4+ <title>Media - {{ config.title }}</title>
2−{% block title %} Media {% endblock title %}
5+{% endblock title %}
6+
7+{% block description %}
8+ <meta name="og:description" content="A curated list of Urbit-related media.">
9+ <meta name="description" content="A curated list of Urbit-related media.">
10+{% endblock description %}
11+
3{% block content %}
12{% block content %}
4<!-- header -->
13<!-- header -->
5<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
14<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
templates/page.html+13−5
@@ -1,12 +1,20 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+
3+{% block title %}
4+ <meta name="og:title" content="{{ page.title }} - {{ config.title }}">
5+ <title>{{ page.title }} - {{ config.title }}</title>
2−{% block title %} {{ page.title }} {% endblock title %}
6+{% endblock title %}
7+
3{% block description %}
8{% block description %}
4 {% if page.description %}
9 {% if page.description %}
5− {{ page.description }}
10+ <meta name="og:description" content="{{ page.description }}">
11+ <meta name="description" content="{{ page.description }}">
6 {% else %}
12 {% else %}
7− {{ config.description }}
13+ <meta name="og:description" content="{{ config.description }}">
14+ <meta name="description" content="{{ config.description }}">
8− {% endif %}
15+ {% endif %}
9− {% endblock description %}
16+{% endblock description %}
17+
10{% block content %}
18{% block content %}
11
19
12<!-- header -->
20<!-- header -->
templates/page_indiced.html+13−5
@@ -1,13 +1,21 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2−{% block title %} {{ page.title }} {% endblock title %}
3{% block bodyclasses %}class="page-indiced"{% endblock bodyclasses %}
2{% block bodyclasses %}class="page-indiced"{% endblock bodyclasses %}
3+
4+{% block title %}
5+ <meta name="og:title" content="{{ page.title }} - {{ config.title }}">
6+ <title>{{ page.title }} - {{ config.title }}</title>
7+{% endblock title %}
8+
4{% block description %}
9{% block description %}
5 {% if page.description %}
10 {% if page.description %}
6− {{ page.description }}
11+ <meta name="og:description" content="{{ page.description }}">
12+ <meta name="description" content="{{ page.description }}">
7 {% else %}
13 {% else %}
8− {{ config.description }}
14+ <meta name="og:description" content="{{ config.description }}">
15+ <meta name="description" content="{{ config.description }}">
9− {% endif %}
16+ {% endif %}
10− {% endblock description %}
17+{% endblock description %}
18+
11{% block content %}
19{% block content %}
12
20
13<!-- header -->
21<!-- header -->
templates/sections/docs.html+8−1
@@ -1,5 +1,12 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="{{ section.title }} - {{ config.title }}">
4+ <title>{{ section.title }} - {{ config.title }}</title>
2−{% block title %} {{ section.title }} {% endblock title %}
5+{% endblock title %}
6+{% block description %}
7+ <meta name="og:description" content="From the Urbit documentation.">
8+ <meta name="description" content="From the Urbit documentation.">
9+{% endblock description %}
3{% block bodyclasses %} class="docs" {% endblock bodyclasses %}
10{% block bodyclasses %} class="docs" {% endblock bodyclasses %}
4{% block content %}
11{% block content %}
5<!-- header -->
12<!-- header -->
templates/sections/docs/chapters.html+8−1
@@ -1,5 +1,12 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="{{ section.title }} - {{ config.title }}">
4+ <title>{{ section.title }} - {{ config.title }}</title>
2−{% block title %} {{ section.title }} {% endblock title %}
5+{% endblock title %}
6+{% block description %}
7+ <meta name="og:description" content="From the Urbit documentation.">
8+ <meta name="description" content="From the Urbit documentation.">
9+{% endblock description %}
3{% block content %}
10{% block content %}
4<!-- header -->
11<!-- header -->
5<!-- content -->
12<!-- content -->
templates/understanding-urbit/list.html+10−1
@@ -1,5 +1,14 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="Understanding Urbit - {{ config.title }}">
4+ <title>Understanding Urbit - {{ config.title }}</title>
2−{% block title %} Understanding Urbit {% endblock title %}
5+{% endblock title %}
6+
7+{% block description %}
8+ <meta name="og:description" content="Urbit is a new kind of computer.">
9+ <meta name="description" content="Urbit is a new kind of computer.">
10+{% endblock description %}
11+
3{% block content %}
12{% block content %}
4<!-- header -->
13<!-- header -->
5<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl absolute-xl">
14<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl absolute-xl">
templates/understanding-urbit/post.html+13−3
@@ -1,9 +1,19 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+
2−{% block title %}
3+{% block title %}
4+ <meta name="og:title" content="{{ page.title }} - {{ config.title }}">
3− {{ page.title }}
5+ <title>{{ page.title }} - {{ config.title }}</title>
4{% endblock title %}
6{% endblock title %}
5
7
8+{% block description %}
9+ {% if page.description %}
10+ <meta name="og:description" content="{{ page.description }}">
11+ <meta name="description" content="{{ page.description }}">
12+ {% else %}
13+ <meta name="og:description" content="{{ config.description }}">
14+ <meta name="description" content="{{ config.description }}">
15+ {% endif %}
6−{% block description %} {{ page.description }} {% endblock description %}
16+{% endblock description %}
7
17
8{% block bodyclasses %}
18{% block bodyclasses %}
9 class="essay
19 class="essay
templates/updates/list.html+10−1
@@ -1,5 +1,14 @@
1{% extends "base.html" %}
1{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="Updates - {{ config.title }}">
4+ <title>Updates - {{ config.title }}</title>
2−{% block title %} Updates {% endblock title %}
5+{% endblock title %}
6+
7+{% block description %}
8+ <meta name="og:description" content="Updates on the Urbit project.">
9+ <meta name="description" content="Updates on the Urbit project.">
10+{% endblock description %}
11+
3{% block bodyclasses %}class="updates"{% endblock bodyclasses %}
12{% block bodyclasses %}class="updates"{% endblock bodyclasses %}
4{% block content %}
13{% block content %}
5<!-- header -->
14<!-- header -->