mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-18 04:42:47 +00:00
Add OpenGraph and Twitter metadata to posts
This commit is contained in:
parent
a05086f29e
commit
a17d8bc9fa
3 changed files with 12 additions and 0 deletions
|
@ -21,3 +21,4 @@ build_search_index = false
|
|||
[extra]
|
||||
author = "Wesley Moore"
|
||||
email = "wes@wezm.net"
|
||||
twitter_name = "@wezm"
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<title>{% block title %}{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{{ config.base_url }}/screen.css" type="text/css" charset="utf-8" />
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ config.base_url }}/rss.xml" title="Wesley Moore" />
|
||||
{% block metadata %}{% endblock %}
|
||||
</head>
|
||||
<body class="{{ section.extra.body_class | default(value="") }}">
|
||||
{% block body %}{% endblock %}
|
||||
|
|
|
@ -2,6 +2,16 @@
|
|||
|
||||
{% block title %}{{ page.title }} - {{ config.title }}{% endblock %}
|
||||
|
||||
{% block metadata %}
|
||||
<meta property="og:url" content="{{ page.permalink }}" />
|
||||
<meta property="og:title" content="{{ page.title }}" />
|
||||
<meta property="og:description" content="{{ page.summary | default(value="") | striptags }}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:locale" content="en_AU" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:creator" content="{{ config.extra.twitter_name }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1 class="logo"><a href="{{ config.base_url }}/" class="no-border hover-underline">👨💻 {{ config.title }}</a></h1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue