From f981be119105c36202db6be15543b6905f289084 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Sat, 14 Apr 2018 01:02:38 -0400 Subject: [PATCH] Fix image links in articles --- content/blog/2015-09-05_successful-indiegogo.de.md | 2 +- content/blog/2015-09-05_successful-indiegogo.en.md | 2 +- .../blog/2016-02-08_scale-14x-post-mortem.de.md | 14 +++++++------- .../blog/2016-02-08_scale-14x-post-mortem.en.md | 14 +++++++------- pelicanconf.py | 3 +++ 5 files changed, 19 insertions(+), 16 deletions(-) diff --git a/content/blog/2015-09-05_successful-indiegogo.de.md b/content/blog/2015-09-05_successful-indiegogo.de.md index 20e5a1e..ef7f602 100644 --- a/content/blog/2015-09-05_successful-indiegogo.de.md +++ b/content/blog/2015-09-05_successful-indiegogo.de.md @@ -7,7 +7,7 @@ Status: published We are happy to announce that irungentoo's personal Indiegogo campaign has been successfully funded! -![](https://blog.tox.chat/wp-content/uploads/2015/09/new-gentoo1.png) +![Sketch of irungentoo receiving Indiegogo campaign money]({filename}static/images/irungentoo-indiegogo.png) As you may already know, irungentoo has been running a [personal fundraiser]({filename}2015-08-09_regarding-irungentoos-indiegogo-campaign.en.md), diff --git a/content/blog/2015-09-05_successful-indiegogo.en.md b/content/blog/2015-09-05_successful-indiegogo.en.md index 20e5a1e..ef7f602 100644 --- a/content/blog/2015-09-05_successful-indiegogo.en.md +++ b/content/blog/2015-09-05_successful-indiegogo.en.md @@ -7,7 +7,7 @@ Status: published We are happy to announce that irungentoo's personal Indiegogo campaign has been successfully funded! -![](https://blog.tox.chat/wp-content/uploads/2015/09/new-gentoo1.png) +![Sketch of irungentoo receiving Indiegogo campaign money]({filename}static/images/irungentoo-indiegogo.png) As you may already know, irungentoo has been running a [personal fundraiser]({filename}2015-08-09_regarding-irungentoos-indiegogo-campaign.en.md), diff --git a/content/blog/2016-02-08_scale-14x-post-mortem.de.md b/content/blog/2016-02-08_scale-14x-post-mortem.de.md index fd12ae8..0283530 100644 --- a/content/blog/2016-02-08_scale-14x-post-mortem.de.md +++ b/content/blog/2016-02-08_scale-14x-post-mortem.de.md @@ -32,9 +32,9 @@ small stacks of our rectangular stickers, so I'm looking forward to seeing those Tox stickers pasted everywhere! Here are some up-close pictures of the stickers we brought: -![](https://blog.tox.chat/wp-content/uploads/2016/02/MjzYspf.jpg) +![Our die-cut Tox lock logo sticker]({filename}/blog/static/images/scale-14x-1.jpg) -![Our die-cut Tox lock logo sticker](https://blog.tox.chat/wp-content/uploads/2016/02/EgZVNFp.jpg) +![Our die-cut Tox lock logo sticker]({filename}/blog/static/images/scale-14x-2.jpg) Our die-cut Tox lock logo sticker One thing was made very clear to me during the expo by attendees that @@ -82,17 +82,17 @@ pictures from the event. They include Chuong Vu, an ObjcTox developer, Greg Mullen (grayhatter), the main developer of uTox, and myself (zero-one). -![Setting up the booth before the expo floor opens to the conference-goers](https://blog.tox.chat/wp-content/uploads/2016/02/5e3G07P.jpg) +![Setting up the booth before the expo floor opens to the conference-goers]({filename}/blog/static/images/scale-14x-3.jpg) Setting up the booth before the expo floor opens to the conference-goers -![Chuong Vu (right) and myself (left) getting ready to show off some Tox clients](https://blog.tox.chat/wp-content/uploads/2016/02/yXhHvN5.jpg) +![Chuong Vu (right) and myself (left) getting ready to show off some Tox clients]({filename}/blog/static/images/scale-14x-4.jpg) Chuong Vu (right) and myself (left) getting ready to show off some Tox clients -![Greg Mullen (left) and Chuong Vu (right) explaining Tox to an expo attendee](https://blog.tox.chat/wp-content/uploads/2016/02/IZ6H92X.jpg) +![Greg Mullen (left) and Chuong Vu (right) explaining Tox to an expo attendee]({filename}/blog/static/images/scale-14x-5.jpg) Greg Mullen (left) and Chuong Vu (right) explaining Tox to an expo attendee -![Chuong Vu (near) and Greg Mullen (far) explaining Tox to an expo attendee](https://blog.tox.chat/wp-content/uploads/2016/02/Q6J17uS.jpg) +![Chuong Vu (near) and Greg Mullen (far) explaining Tox to an expo attendee]({filename}/blog/static/images/scale-14x-6.jpg) Chuong Vu (near) and Greg Mullen (far) explaining Tox to an expo attendee -![Having a good time at dinner. Pizza and calzones, yum!](https://blog.tox.chat/wp-content/uploads/2016/02/SFoH36w.jpg) +![Having a good time at dinner. Pizza and calzones, yum!]({filename}/blog/static/images/scale-14x-7.jpg) Having a good time at dinner. Pizza and calzones, yum! diff --git a/content/blog/2016-02-08_scale-14x-post-mortem.en.md b/content/blog/2016-02-08_scale-14x-post-mortem.en.md index fd12ae8..0283530 100644 --- a/content/blog/2016-02-08_scale-14x-post-mortem.en.md +++ b/content/blog/2016-02-08_scale-14x-post-mortem.en.md @@ -32,9 +32,9 @@ small stacks of our rectangular stickers, so I'm looking forward to seeing those Tox stickers pasted everywhere! Here are some up-close pictures of the stickers we brought: -![](https://blog.tox.chat/wp-content/uploads/2016/02/MjzYspf.jpg) +![Our die-cut Tox lock logo sticker]({filename}/blog/static/images/scale-14x-1.jpg) -![Our die-cut Tox lock logo sticker](https://blog.tox.chat/wp-content/uploads/2016/02/EgZVNFp.jpg) +![Our die-cut Tox lock logo sticker]({filename}/blog/static/images/scale-14x-2.jpg) Our die-cut Tox lock logo sticker One thing was made very clear to me during the expo by attendees that @@ -82,17 +82,17 @@ pictures from the event. They include Chuong Vu, an ObjcTox developer, Greg Mullen (grayhatter), the main developer of uTox, and myself (zero-one). -![Setting up the booth before the expo floor opens to the conference-goers](https://blog.tox.chat/wp-content/uploads/2016/02/5e3G07P.jpg) +![Setting up the booth before the expo floor opens to the conference-goers]({filename}/blog/static/images/scale-14x-3.jpg) Setting up the booth before the expo floor opens to the conference-goers -![Chuong Vu (right) and myself (left) getting ready to show off some Tox clients](https://blog.tox.chat/wp-content/uploads/2016/02/yXhHvN5.jpg) +![Chuong Vu (right) and myself (left) getting ready to show off some Tox clients]({filename}/blog/static/images/scale-14x-4.jpg) Chuong Vu (right) and myself (left) getting ready to show off some Tox clients -![Greg Mullen (left) and Chuong Vu (right) explaining Tox to an expo attendee](https://blog.tox.chat/wp-content/uploads/2016/02/IZ6H92X.jpg) +![Greg Mullen (left) and Chuong Vu (right) explaining Tox to an expo attendee]({filename}/blog/static/images/scale-14x-5.jpg) Greg Mullen (left) and Chuong Vu (right) explaining Tox to an expo attendee -![Chuong Vu (near) and Greg Mullen (far) explaining Tox to an expo attendee](https://blog.tox.chat/wp-content/uploads/2016/02/Q6J17uS.jpg) +![Chuong Vu (near) and Greg Mullen (far) explaining Tox to an expo attendee]({filename}/blog/static/images/scale-14x-6.jpg) Chuong Vu (near) and Greg Mullen (far) explaining Tox to an expo attendee -![Having a good time at dinner. Pizza and calzones, yum!](https://blog.tox.chat/wp-content/uploads/2016/02/SFoH36w.jpg) +![Having a good time at dinner. Pizza and calzones, yum!]({filename}/blog/static/images/scale-14x-7.jpg) Having a good time at dinner. Pizza and calzones, yum! diff --git a/pelicanconf.py b/pelicanconf.py index ba5a70b..0cc91c8 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -24,6 +24,9 @@ PATH = 'content/' PAGE_PATHS = ['website'] ARTICLE_PATHS = ['blog'] + +# where to find static files linked in markdown content using {filename} +STATIC_PATHS = ['blog/static'] # by default pelican expects articles to be placed directly in PATH and will # treat any subdirectories in there, like the 'blog' subdirectory we have, as # a category the articles that are in that directory were posted under, which