add opengraph descriptions

This commit is contained in:
Andrew Cassidy 2019-05-05 00:16:46 -07:00 committed by Andrew Cassidy
parent 707408bcc1
commit b09dcdd4e2
2 changed files with 15 additions and 1 deletions

View File

@ -14,18 +14,31 @@
content="{{ page.date | date_to_xmlschema }}"/> content="{{ page.date | date_to_xmlschema }}"/>
<meta property="article:section" <meta property="article:section"
content="Blog"/> content="Blog"/>
{% for tag in page.tags %} {% for tag in page.tags %}
<meta property="article:tag" content="{{ tag }}"/> <meta property="article:tag" content="{{ tag }}"/>
{% endfor %} {% endfor %}
{% if page.image %} {% if page.image %}
<meta property="og:image" <meta property="og:image"
content="{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}"/> content="{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}"/>
{% endif %} {% endif %}
{% if page.description %}
<meta
property="og:description"
content="{{page.description}}"
/>
{% else %}
<meta
property="og:description"
content="{{page.content | markdownify | strip_html | truncate: 100}}"
/>
{% endif %}
{% else %} {% else %}
<meta property="og:type" <meta property="og:type"
content="website"/> content="website"/>
{% endif %} {% endif %}
<!--{{page.collection}}-->
<link rel="stylesheet" href="/fa/css/fontawesome.min.css"> <link rel="stylesheet" href="/fa/css/fontawesome.min.css">
<link rel="stylesheet" href="/fa/css/brands.min.css"> <link rel="stylesheet" href="/fa/css/brands.min.css">

View File

@ -1,6 +1,7 @@
--- ---
title: Making Realistic Particle Effects From Photos title: Making Realistic Particle Effects From Photos
image: setup-small.jpg image: setup-small.jpg
description: Using photography to generate particle textures for Kerbal Space Program modding
tags: KSP restock gamedev tags: KSP restock gamedev
--- ---
While working on drills for ReStock I realized I needed some particle effects for when the drills are in use. I wanted the effect of small rocks being kicked up from the ground and falling back down, but my attempts at a texture for the rocks all ended up looking more like potatos. While working on drills for ReStock I realized I needed some particle effects for when the drills are in use. I wanted the effect of small rocks being kicked up from the ground and falling back down, but my attempts at a texture for the rocks all ended up looking more like potatos.