From 18bedd3568219c19cb4fedd7dc49b2e5285dc9d0 Mon Sep 17 00:00:00 2001 From: erciccione Date: Sun, 24 May 2020 12:18:24 +0200 Subject: [PATCH] Meta tags: Change opengraph logo and add possiblity to use custom image The old logo showing on social medias is too large and end up being trimmed. Replaced it with the simple Monero Logo. If an image is specified using 'image:' in the front matter of a blog post, jekyll will show that image instead. This also allow us to easily make specific meta-images for each blog posts. I will add the possibility to add the image in the body of the post in a subsequent PR. --- README.md | 2 ++ _includes/head.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bb73607c..7427ae3a 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,8 @@ author: YOUR NAME OR HANDLE HERE --- ``` +If you want to add a personalized picture to a blog post that will show as logo on social networks, add `image: /blog/assets/$FOLDER/$IMAGE` to the front matter. Where `$FOLDER` is the name of the folder you created to contain the image related to your blog post and `$IMAGE` is the name of the image. + ### 3. Write After the front matter is finished you are free to write the remainder of your blog post in markdown. diff --git a/_includes/head.html b/_includes/head.html index 6882439a..c0fff453 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -28,7 +28,8 @@ {% elsif page.summary %}{{ page.summary }} {% else %}{% t global.titlemeta %} {% endif %}"> - + +