add meta and link elements

master
eater 4 years ago
parent 195ea5508b
commit 77c40e648f
Signed by: eater
GPG Key ID: AD2560A0F84F0759

6
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "cb1bcd865d190652150546ba6be7fcf6",
"content-hash": "25e0e0bcf7d89336126bb3980d1c5326",
"packages": [
{
"name": "fig/http-message-util",
@ -977,6 +977,8 @@
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform": {
"ext-json": "*"
},
"platform-dev": []
}

@ -6,7 +6,9 @@
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="/css/main.css">
<link rel="alternate" type="application/rss+xml" title="eater" href="/rss.xml">
<title>{% block title %}{{ config.blog.title }}{% endblock %}</title>
{% block head %}{% endblock %}
</head>
<body>
<header>

@ -1,5 +1,11 @@
{% extends "base.html.twig" %}
{% block head %}
<meta property="og:title" content="eater — {{ page.meta.title }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ config.blog.link }}{{ page.slug }}" />
{% endblock %}
{% block title %}{{ parent() }} — {{ page.meta.title }}{% endblock %}
{% block body %}

@ -1,6 +1,12 @@
{% extends "base.html.twig" %}
{% import "macros.html.twig" as macros %}
{% block head %}
<meta property="og:title" content="eater — {{ post.meta.title }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ config.blog.link }}{{ post.slug }}" />
{% endblock %}
{% block title %}{{ parent() }} — {{ post.meta.title }}{% endblock %}
{% block body %}

@ -9,7 +9,7 @@
<item>
<title>{{ post.meta.title }}</title>
<description>{{ post.meta.description }}</description>
<link>{{ config.blog.link }}/post/{{ post.slug }}</link>
<link>{{ config.blog.link }}post/{{ post.slug }}</link>
<guid isPermaLink="false">{{ post.slug }}</guid>
<pubDate>{{ post.meta.date.format('r') }}</pubDate>
</item>

Loading…
Cancel
Save