aboutsummaryrefslogtreecommitdiff
path: root/_layouts/default.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/default.html')
-rw-r--r--_layouts/default.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 3aa9e43..c56a2d4 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -4,36 +4,36 @@
<meta charset="utf-8"/>
<meta name="referrer" content="no-referrer" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="description" content="{% if page.description != nil %}{{ page.description }}{% else %}{{ page.excerpt | strip_html | strip }}{% endif %}" />
+ <meta name="description" content="{{ page.describe() }}" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@boring_cactus" />
<meta name="twitter:title" content="{{ page.title }}" />
- <meta name="twitter:description" content="{% if page.description != nil %}{{ page.description }}{% else %}{{ page.excerpt | strip_html | strip }}{% endif %}" />
- <meta property="og:url" content="{{ page.url | absolute_url }}" />
+ <meta name="twitter:description" content="{{ page.describe() }}" />
+ <meta property="og:url" content="{{ page.url | absolute_url }}.html" />
<meta property="og:title" content="{{ page.title }}" />
- <meta property="og:description" content="{% if page.description != nil %}{{ page.description }}{% else %}{{ page.excerpt | strip_html | strip }}{% endif %}" />
- {% if page.url == "/" %}
+ <meta property="og:description" content="{{ page.describe() }}" />
+ {% if page.url == "index" %}
<meta property="og:type" content="website" />
<title>{{ page.title }}</title>
{% else %}
<meta property="og:type" content="article" />
- <meta property="article:published_time" content="{{ page.date }}" />
+ <meta property="article:published_time" content="{% if page.date %}{{ page.date }}{% endif %}" />
<title>{{ page.title }} | boringcactus</title>
{% endif %}
- <link rel="stylesheet" href="/site.css">
- {% feed_meta %}
+ <link rel="stylesheet" href="/assets/site.css">
+ <link type="application/atom+xml" rel="alternate" href="/feed.xml" title="boringcactus" />
<script async defer data-domain="boringcactus.com" src="https://stats.boringcactus.com/js/index.js"></script>
</head>
<body>
<header>
- {% if page.url != "/" %}
+ {% if page.url != "index" %}
<p>(brought to you by <a href="/">boringcactus</a>)</p>
{% endif %}
</header>
<main>
- <h1>{{ page.title }}{% if page.date %} <small>({{ page.date | date_to_string }})</small>{% endif %}</h1>
+ <h1>{{ page.title }}{% if page.date %} <small>({{ page.date.strftime('%d %b %Y') }})</small>{% endif %}</h1>
{{ content }}
</main>
-<script src="/fuck-hn.js"></script>
+<script src="/assets/fuck-hn.js"></script>
</body>
</html>