Site-wide assets are located in static/ not as colocated assets

For some reason, some zola update changed colocated assets behavior
resulting in broken links when footer/index.md was referring to its colocated
kopimi.jpg (once imported as the footer in other pages).
We now use a url shortcode which uses get_url template func to call into static folder.
For convenience, symlinks to resources as colocated assets part of footer/ are kept.
This commit is contained in:
southerntofu 2022-02-17 15:26:33 +01:00
parent 7c66029528
commit 58bc88b47e
10 changed files with 56 additions and 54 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 42 B

View File

@ -0,0 +1 @@
../../../static/img/Anarchist-Comunism.jpg

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 42 B

View File

@ -1,49 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svg="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:ns1="http://sozi.baierouge.fr" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg4394" viewBox="0 0 647.74 616.38" version="1.1" inkscape:version="0.91 r13725">
<title id="title5000">Anarchist-Comunism</title>
<g id="layer1" transform="translate(-65.531 -92.849)">
<g id="g4975" transform="translate(1981 751.55)">
<path id="path4968" style="stroke-linejoin:round;stroke:#000000;stroke-width:5;fill:#ff0000" d="m506.35 490.92-179.13-169.09-215.08 120.26 105.49-222.61-180.88-167.4 244.32 31.517 103.33-223.71 45.52 242.1 244.7 29.12-216.19 118.1 47.92 241.71z" transform="matrix(.99235 -.12347 .12347 .99235 -1955.8 -469.71)"/>
<path id="path4960" style="stroke-linejoin:round;stroke:#000000;stroke-width:5;fill:#000000" d="m-1591.7-656.2-74.906 234.75-246.34-1.0938 200.16 143.78-77.188 233.94 198.56-145.91 1.5 1.0938v-461l-1.7812-5.5625z"/>
</g>
</g>
<metadata>
<rdf:RDF>
<cc:Work>
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<cc:license rdf:resource="http://creativecommons.org/licenses/publicdomain/"/>
<dc:publisher>
<cc:Agent rdf:about="http://openclipart.org/">
<dc:title>Openclipart</dc:title>
</cc:Agent>
</dc:publisher>
<dc:title>Anarcho-communism</dc:title>
<dc:date>2010-03-22T17:00:05</dc:date>
<dc:description>Anarcho-communism symbol drawn on Inkscape.</dc:description>
<dc:source>https://openclipart.org/detail/33199/anarcho-communism-by-andy_gardner</dc:source>
<dc:creator>
<cc:Agent>
<dc:title>Andy_Gardner</dc:title>
</cc:Agent>
</dc:creator>
<dc:subject>
<rdf:Bag>
<rdf:li>Anarchism</rdf:li>
<rdf:li>anarchy</rdf:li>
<rdf:li>communism</rdf:li>
<rdf:li>political</rdf:li>
<rdf:li>politics</rdf:li>
<rdf:li>symbol</rdf:li>
</rdf:Bag>
</dc:subject>
</cc:Work>
<cc:License rdf:about="http://creativecommons.org/licenses/publicdomain/">
<cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction"/>
<cc:permits rdf:resource="http://creativecommons.org/ns#Distribution"/>
<cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks"/>
</cc:License>
</rdf:RDF>
</metadata>
</svg>

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 42 B

View File

@ -0,0 +1 @@
../../../static/img/Anarchist-Comunism.svg

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 42 B

View File

@ -3,14 +3,14 @@ title = "Footer"
date = 2018-01-03
+++
![Kopimi](kopimi.jpg)
![Kopimi logo]({{ url(path="img/kopimi.jpg") }})
# KOPIMI
Licence © [CC BY-SA](https://creativecommons.org/licenses/by-sa/4.0/). Certaines illustrations ne sont pas de moi mais sont reproduites ici car [Sharing is caring](https://kopimi.com) et **NIQUE LA PROPRIÉTÉ PRIVÉE !** [Problème ?](/contact)
---
![Anarcho-communisme](Anarchist-Comunism.jpg)
![Anarcho-communisme]({{ url(path="img/Anarchist-Comunism.jpg")}})
# Sujets
⚠️ Site et opinions personnelles. Technophilie anarchiste / communiste libertaire. Pas intéresséE ? Va naviguer plus loin !

View File

@ -3,14 +3,14 @@ title = "Footer"
date = 2018-01-03
+++
![Kopimi](kopimi.jpg)
![Kopimi logo]({{ url(path="img/kopimi.jpg") }})
# KOPIMI
© [CC BY-SA](https://creativecommons.org/licenses/by-sa/4.0/) license. Some graphics not mine. Just reproducing them here because [sharing is caring](https://kopimi.com/) and **FUCK PRIVATE PROPERTY!** [Problem?](/contact)
---
![Anarcho-communism](Anarchist-Comunism.jpg)
![black & red anarchist flag]({{ url(path="img/Anarchist-Comunism.jpg") }})
# Topics
⚠️ Personal website & opinions. Tech-savvy anarchism / libertarian communism. Not interested? Feel free to browse away!

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 30 B

View File

@ -0,0 +1 @@
../../../static/img/kopimi.jpg

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 30 B

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256"><circle cx="128" cy="128" r="119.428" fill="#fff" stroke="#000" stroke-width="16.502"/><path d="M161.405 210.657L138.2 227.233 34.412 153.79V91.316l23.204-16.32 37.233 26.01V48.73l23.206-16.576 23.46 16.576v52.276l16.832-11.731 19.892 14.027 20.144-14.281 23.46 16.576v62.477l-23.46 16.32-20.144-14.282-16.832 11.987zM40.79 91.314L57.62 103.3l17.086-11.986L57.62 79.328zm20.144 14.28l16.83 11.986 17.086-11.985-16.83-11.987zm19.89 14.281l17.087 11.985 17.086-11.985L97.91 107.89zm37.231-83.132L100.969 48.73l17.086 11.982 17.084-11.982zm0 28.56l-17.086 11.985 17.086 11.985 16.83-12.24zm0 28.305l-17.086 11.987 17.086 11.985 16.83-11.985zm-17.084 40.547l17.086 11.73 16.83-11.985-16.83-11.73zm20.144 14.025l17.084 11.985 16.831-11.985-16.831-11.984zm37.23-54.572l-17.086 11.987 16.832 11.985 17.085-11.985zm40.038 0l-16.834 11.987 16.834 11.985 17.083-11.985z"/></svg>

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 30 B

View File

@ -0,0 +1 @@
../../../static/img/kopimi.svg

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 30 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svg="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:ns1="http://sozi.baierouge.fr" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg4394" viewBox="0 0 647.74 616.38" version="1.1" inkscape:version="0.91 r13725">
<title id="title5000">Anarchist-Comunism</title>
<g id="layer1" transform="translate(-65.531 -92.849)">
<g id="g4975" transform="translate(1981 751.55)">
<path id="path4968" style="stroke-linejoin:round;stroke:#000000;stroke-width:5;fill:#ff0000" d="m506.35 490.92-179.13-169.09-215.08 120.26 105.49-222.61-180.88-167.4 244.32 31.517 103.33-223.71 45.52 242.1 244.7 29.12-216.19 118.1 47.92 241.71z" transform="matrix(.99235 -.12347 .12347 .99235 -1955.8 -469.71)"/>
<path id="path4960" style="stroke-linejoin:round;stroke:#000000;stroke-width:5;fill:#000000" d="m-1591.7-656.2-74.906 234.75-246.34-1.0938 200.16 143.78-77.188 233.94 198.56-145.91 1.5 1.0938v-461l-1.7812-5.5625z"/>
</g>
</g>
<metadata>
<rdf:RDF>
<cc:Work>
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<cc:license rdf:resource="http://creativecommons.org/licenses/publicdomain/"/>
<dc:publisher>
<cc:Agent rdf:about="http://openclipart.org/">
<dc:title>Openclipart</dc:title>
</cc:Agent>
</dc:publisher>
<dc:title>Anarcho-communism</dc:title>
<dc:date>2010-03-22T17:00:05</dc:date>
<dc:description>Anarcho-communism symbol drawn on Inkscape.</dc:description>
<dc:source>https://openclipart.org/detail/33199/anarcho-communism-by-andy_gardner</dc:source>
<dc:creator>
<cc:Agent>
<dc:title>Andy_Gardner</dc:title>
</cc:Agent>
</dc:creator>
<dc:subject>
<rdf:Bag>
<rdf:li>Anarchism</rdf:li>
<rdf:li>anarchy</rdf:li>
<rdf:li>communism</rdf:li>
<rdf:li>political</rdf:li>
<rdf:li>politics</rdf:li>
<rdf:li>symbol</rdf:li>
</rdf:Bag>
</dc:subject>
</cc:Work>
<cc:License rdf:about="http://creativecommons.org/licenses/publicdomain/">
<cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction"/>
<cc:permits rdf:resource="http://creativecommons.org/ns#Distribution"/>
<cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks"/>
</cc:License>
</rdf:RDF>
</metadata>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
static/img/kopimi.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

1
static/img/kopimi.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256"><circle cx="128" cy="128" r="119.428" fill="#fff" stroke="#000" stroke-width="16.502"/><path d="M161.405 210.657L138.2 227.233 34.412 153.79V91.316l23.204-16.32 37.233 26.01V48.73l23.206-16.576 23.46 16.576v52.276l16.832-11.731 19.892 14.027 20.144-14.281 23.46 16.576v62.477l-23.46 16.32-20.144-14.282-16.832 11.987zM40.79 91.314L57.62 103.3l17.086-11.986L57.62 79.328zm20.144 14.28l16.83 11.986 17.086-11.985-16.83-11.987zm19.89 14.281l17.087 11.985 17.086-11.985L97.91 107.89zm37.231-83.132L100.969 48.73l17.086 11.982 17.084-11.982zm0 28.56l-17.086 11.985 17.086 11.985 16.83-12.24zm0 28.305l-17.086 11.987 17.086 11.985 16.83-11.985zm-17.084 40.547l17.086 11.73 16.83-11.985-16.83-11.73zm20.144 14.025l17.084 11.985 16.831-11.985-16.831-11.984zm37.23-54.572l-17.086 11.987 16.832 11.985 17.085-11.985zm40.038 0l-16.834 11.987 16.834 11.985 17.083-11.985z"/></svg>

After

Width:  |  Height:  |  Size: 933 B