chiark / gitweb /
Adapted to Pelican 3.8 {filename} -> {static} changes.
authorVladimír Vondruš <mosra@centrum.cz>
Fri, 16 Nov 2018 23:42:13 +0000 (00:42 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 26 Nov 2018 12:30:15 +0000 (13:30 +0100)
25 files changed:
doc/admire/math.rst
doc/css.rst
doc/css/components-test.rst
doc/css/components.rst
doc/doxygen-test.rst
doc/doxygen.rst
doc/examples/authors/an-author.rst
doc/examples/categories/examples.rst
doc/examples/jumbo-article-hide-summary.rst
doc/examples/jumbo-article.rst
doc/index.rst
doc/pelican/theme.rst
doc/pelican/writing-content.rst
doc/plugins/htmlsanity.rst
doc/plugins/images-test.rst
doc/plugins/images.rst
doc/plugins/links.rst
doc/plugins/metadata.rst
pelican-plugins/m/test/images/page.rst
pelican-plugins/m/test/metadata/authors/an-author.rst
pelican-plugins/m/test/metadata/categories/a-category.rst
pelican-theme/test/blog/article-jumbo.rst
pelican-theme/test/page_cover/page.rst
pelican-theme/test/page_landing/hide-navbar-brand.rst
pelican-theme/test/page_landing/page.rst

index 2bfbc78759645ad09be9e888802271ce1db5fffc..2947cdddbd67eaa62db0515286a1b843c27a60d8 100644 (file)
@@ -33,7 +33,7 @@ m.css math
 .. |o| replace:: ·
 
 :url: admire/math/
-:cover: {filename}/static/cover-math.jpg
+:cover: {static}/static/cover-math.jpg
 :summary: The fastest possible math rendering for the modern web
 :footer:
     .. note-dim::
index 76d7e521df6c8b0c0f0887b475f814ff342379f6..9215ed9e52b48737024273025b457532a29dba89 100644 (file)
@@ -100,11 +100,11 @@ to include a proper :html:`<meta>` tag. The HTML5 DOCTYPE is also required.
     the code and console Pygments style, all combined in one file:
 
     -   :gh:`m-dark.compiled.css <mosra/m.css$master/css/m-dark.compiled.css>`
-        (:filesize:`{filename}/../css/m-dark.compiled.css`,
-        :filesize-gz:`{filename}/../css/m-dark.compiled.css` compressed)
+        (:filesize:`{static}/../css/m-dark.compiled.css`,
+        :filesize-gz:`{static}/../css/m-dark.compiled.css` compressed)
     -   :gh:`m-light.compiled.css <mosra/m.css$master/css/m-light.compiled.css>`
-        (:filesize:`{filename}/../css/m-light.compiled.css`,
-        :filesize-gz:`{filename}/../css/m-light.compiled.css` compressed)
+        (:filesize:`{static}/../css/m-light.compiled.css`,
+        :filesize-gz:`{static}/../css/m-light.compiled.css` compressed)
 
     I recommend using the original files for development and switching to the
     compiled versions when publishing the website.
index ed86e0b620a97cc0f790771282144d5d9176af12..82d9e298921c756d2764dda386bd12cd4bc96d32 100644 (file)
@@ -240,7 +240,7 @@ Badge with lots of text and less text:
 .. raw:: html
 
     <div class="m-block m-badge m-primary">
-      <img src="{filename}/static/mosra.jpg" alt="The Author" />
+      <img src="{static}/static/mosra.jpg" alt="The Author" />
       <h3>About the author</h3>
       <p><a href="#">The Author</a> is lorem ipsum dolor sit amet, consectetur
       adipiscing elit. Aenean id elit posuere, consectetur magna congue,
@@ -250,7 +250,7 @@ Badge with lots of text and less text:
     </div>
 
     <div class="m-block m-badge m-dim">
-      <img src="{filename}/static/mosra.jpg" alt="The Author" />
+      <img src="{static}/static/mosra.jpg" alt="The Author" />
       <h3>About the author</h3>
       <p><a href="#">The Author</a> is lorem ipsum dolor sit amet, consectetur
       adipiscing elit.</p>
@@ -936,28 +936,28 @@ Image, centered:
 
 .. raw:: html
 
-    <img src="{filename}/static/flowers-small.jpg" class="m-image" />
+    <img src="{static}/static/flowers-small.jpg" class="m-image" />
 
 Image, centered, link:
 
 .. raw:: html
 
     <div class="m-image">
-      <a href="http://blog.mosra.cz/"><img src="{filename}/static/flowers-small.jpg" /></a>
+      <a href="http://blog.mosra.cz/"><img src="{static}/static/flowers-small.jpg" /></a>
     </div>
 
 Image, fullwidth (yes, it should be pixelated):
 
 .. raw:: html
 
-    <img src="{filename}/static/flowers-small.jpg" class="m-image m-fullwidth" />
+    <img src="{static}/static/flowers-small.jpg" class="m-image m-fullwidth" />
 
 Image, fullwidth, link (yes, it should be pixelated):
 
 .. raw:: html
 
     <div class="m-image m-fullwidth">
-      <a href="http://blog.mosra.cz/"><img src="{filename}/static/flowers-small.jpg" /></a>
+      <a href="http://blog.mosra.cz/"><img src="{static}/static/flowers-small.jpg" /></a>
     </div>
 
 SVG image:
@@ -996,7 +996,7 @@ Figure, centered:
 .. raw:: html
 
     <figure class="m-figure">
-      <img src="{filename}/static/ship-small.jpg" />
+      <img src="{static}/static/ship-small.jpg" />
       <figcaption>A Ship</figcaption>
       <span>Photo © <a href="http://blog.mosra.cz/">The Author</a></span>
     </figure>
@@ -1006,7 +1006,7 @@ Figure, centered, image link, flat:
 .. raw:: html
 
     <figure class="m-figure m-flat">
-      <a href="http://blog.mosra.cz/"><img src="{filename}/static/ship-small.jpg" /></a>
+      <a href="http://blog.mosra.cz/"><img src="{static}/static/ship-small.jpg" /></a>
       <figcaption>A Ship</figcaption>
       <span>Photo © <a href="http://blog.mosra.cz/">The Author</a></span>
     </figure>
@@ -1016,7 +1016,7 @@ Figure, fullwidth, without description (yes, it should be pixelated):
 .. raw:: html
 
     <figure class="m-figure m-fullwidth">
-      <img src="{filename}/static/ship-small.jpg" />
+      <img src="{static}/static/ship-small.jpg" />
       <figcaption>A Ship</figcaption>
     </figure>
 
@@ -1026,7 +1026,7 @@ unnecessary wrapping of the text:
 .. raw:: html
 
     <figure class="m-figure m-fullwidth">
-      <img src="{filename}/static/ship-small.jpg" />
+      <img src="{static}/static/ship-small.jpg" />
       <figcaption>A Somewhat Lengthy Caption For A Photo</figcaption>
       <span>The Photo Displayed Above Was Kindly Taken And Allowed To Be Used
       On This Page By <a href="http://blog.mosra.cz/">The Author</a>. All
@@ -1039,7 +1039,7 @@ leaking of the image outside of the page:
 .. raw:: html
 
     <figure class="m-figure">
-      <img src="{filename}/static/ship.jpg" />
+      <img src="{static}/static/ship.jpg" />
       <figcaption>A Somewhat Lengthy Caption For A Photo</figcaption>
       <span>The Photo Displayed Above Was Kindly Taken And Allowed To Be Used
       On This Page By <a href="http://blog.mosra.cz/">The Author</a>. All
@@ -1052,7 +1052,7 @@ instead of extending the border and there should be proper padding on bottom):
 .. raw:: html
 
     <figure class="m-figure">
-      <img src="{filename}/static/ship-small.jpg" />
+      <img src="{static}/static/ship-small.jpg" />
       <figcaption>A Somewhat Lengthy Caption For A Photo</figcaption>
       <span>The Photo Displayed Above Was Kindly Taken And Allowed To Be Used
       On This Page By <a href="http://blog.mosra.cz/">The Author</a>. All
@@ -1062,7 +1062,7 @@ instead of extending the border and there should be proper padding on bottom):
 .. raw:: html
 
     <figure class="m-figure">
-      <img src="{filename}/static/ship-small.jpg" />
+      <img src="{static}/static/ship-small.jpg" />
       <figcaption>A Somewhat Lengthy Caption For A Photo</figcaption>
     </figure>
 
@@ -1073,28 +1073,28 @@ Figures of varying colors:
     <div class="m-row">
       <div class="m-col-m-3 m-col-s-6">
         <figure class="m-figure m-default">
-          <img src="{filename}/static/ship-small.jpg" />
+          <img src="{static}/static/ship-small.jpg" />
           <figcaption>Default figure</figcaption>
           <span>Text.</span>
         </figure>
       </div>
       <div class="m-col-m-3 m-col-s-6">
         <figure class="m-figure m-primary">
-          <img src="{filename}/static/ship-small.jpg" />
+          <img src="{static}/static/ship-small.jpg" />
           <figcaption>Primary figure</figcaption>
           <span>Text.</span>
         </figure>
       </div>
       <div class="m-col-m-3 m-col-s-6">
         <figure class="m-figure m-success">
-          <img src="{filename}/static/ship-small.jpg" />
+          <img src="{static}/static/ship-small.jpg" />
           <figcaption>Success figure</figcaption>
           <span>Text.</span>
         </figure>
       </div>
       <div class="m-col-m-3 m-col-s-6">
         <figure class="m-figure m-warning">
-          <img src="{filename}/static/ship-small.jpg" />
+          <img src="{static}/static/ship-small.jpg" />
           <figcaption>Warning figure</figcaption>
           <span>Text.</span>
         </figure>
@@ -1103,21 +1103,21 @@ Figures of varying colors:
     <div class="m-row">
       <div class="m-col-m-3 m-col-s-6">
         <figure class="m-figure m-danger">
-          <img src="{filename}/static/ship-small.jpg" />
+          <img src="{static}/static/ship-small.jpg" />
           <figcaption>Danger figure</figcaption>
           <span>Text.</span>
         </figure>
       </div>
       <div class="m-col-m-3 m-col-s-6">
         <figure class="m-figure m-info">
-          <img src="{filename}/static/ship-small.jpg" />
+          <img src="{static}/static/ship-small.jpg" />
           <figcaption>Info figure</figcaption>
           <span>Text.</span>
         </figure>
       </div>
       <div class="m-col-m-3 m-col-s-6">
         <figure class="m-figure m-dim">
-          <img src="{filename}/static/ship-small.jpg" />
+          <img src="{static}/static/ship-small.jpg" />
           <figcaption>Dim figure</figcaption>
           <span>Text.</span>
         </figure>
@@ -1134,11 +1134,11 @@ Without the link:
     <div class="m-imagegrid m-container-inflate">
       <div>
         <figure style="width: 69.127%">
-          <img src="{filename}/static/ship.jpg" />
+          <img src="{static}/static/ship.jpg" />
           <figcaption>F9.0, 1/250 s, ISO 100</figcaption>
         </figure>
         <figure style="width: 30.873%">
-          <img src="{filename}/static/flowers.jpg" />
+          <img src="{static}/static/flowers.jpg" />
           <figcaption>F2.8, 1/1600 s, ISO 100</figcaption>
         </figure>
       </div>
@@ -1151,14 +1151,14 @@ With link, without caption, not inflated:
     <div class="m-imagegrid">
       <div>
         <figure style="width: 30.873%">
-          <a href="{filename}/static/flowers.jpg">
-            <img src="{filename}/static/flowers.jpg" />
+          <a href="{static}/static/flowers.jpg">
+            <img src="{static}/static/flowers.jpg" />
             <div></div>
           </a>
         </figure>
         <figure style="width: 69.127%">
-          <a href="{filename}/static/ship.jpg">
-            <img src="{filename}/static/ship.jpg" />
+          <a href="{static}/static/ship.jpg">
+            <img src="{static}/static/ship.jpg" />
             <div></div>
           </a>
         </figure>
@@ -1172,11 +1172,11 @@ Without link or caption:
     <div class="m-imagegrid m-container-inflate">
       <div>
         <figure style="width: 69.127%">
-          <img src="{filename}/static/ship.jpg" />
+          <img src="{static}/static/ship.jpg" />
           <div></div>
         </figure>
         <figure style="width: 30.873%">
-          <img src="{filename}/static/flowers.jpg" />
+          <img src="{static}/static/flowers.jpg" />
           <div></div>
         </figure>
       </div>
index 8e4f7a6422570dfdbab93cf65ff142cef291ddbc..423f641f3431b5bd911b705591c1301dd1f6a834 100644 (file)
@@ -164,7 +164,7 @@ Only :html:`<h3>` is supported for a badge.
     .. raw:: html
 
         <div class="m-block m-badge m-success">
-          <img src="{filename}/static/mosra.jpg" alt="The Author" />
+          <img src="{static}/static/mosra.jpg" alt="The Author" />
           <h3>About the author</h3>
           <p><a href="http://blog.mosra.cz">The Author</a> is not really
           smiling at you from this avatar. Sorry about that. He knows that and
@@ -624,7 +624,7 @@ reasons it's a good practice to include the ``alt`` attribute.
 
     .. raw:: html
 
-        <img src="{filename}/static/flowers-small.jpg" alt="Flowers" class="m-image" />
+        <img src="{static}/static/flowers-small.jpg" alt="Flowers" class="m-image" />
 
 To make the image clickable, wrap the :html:`<a>` tag in an additional
 :html:`<div>` and put the :css:`.m-image` class on the :html:`<div>` element
@@ -642,7 +642,7 @@ not the surrounding area:
     .. raw:: html
 
         <div class="m-image">
-          <a href="{filename}/static/flowers.jpg"><img src="{filename}/static/flowers-small.jpg" /></a>
+          <a href="{static}/static/flowers.jpg"><img src="{static}/static/flowers-small.jpg" /></a>
         </div>
 
 .. note-info::
@@ -682,7 +682,7 @@ Optionally you can color the figure border and caption by adding one of the
     .. raw:: html
 
         <figure class="m-figure">
-          <img src="{filename}/static/ship-small.jpg" alt="Ship" />
+          <img src="{static}/static/ship-small.jpg" alt="Ship" />
           <figcaption>A Ship</figcaption>
           <span>Photo © <a href="http://blog.mosra.cz/">The Author</a></span>
         </figure>
@@ -752,28 +752,28 @@ Example usage (stupidly showing the two images all over again --- sorry):
     <div class="m-imagegrid m-container-inflate">
       <div>
         <figure style="width: 69.127%">
-          <a href="{filename}/static/ship.jpg">
-            <img src="{filename}/static/ship.jpg" />
+          <a href="{static}/static/ship.jpg">
+            <img src="{static}/static/ship.jpg" />
             <figcaption>F9.0, 1/250 s, ISO 100</figcaption>
           </a>
         </figure>
         <figure style="width: 30.873%">
-          <a href="{filename}/static/flowers.jpg">
-            <img src="{filename}/static/flowers.jpg" />
+          <a href="{static}/static/flowers.jpg">
+            <img src="{static}/static/flowers.jpg" />
             <figcaption>F2.8, 1/1600 s, ISO 100</figcaption>
           </a>
         </figure>
       </div>
       <div>
         <figure style="width: 30.873%">
-          <a href="{filename}/static/flowers.jpg">
-            <img src="{filename}/static/flowers.jpg" />
+          <a href="{static}/static/flowers.jpg">
+            <img src="{static}/static/flowers.jpg" />
             <figcaption>F2.8, 1/1600 s, ISO 100</figcaption>
           </a>
         </figure>
         <figure style="width: 69.127%">
-          <a href="{filename}/static/ship.jpg">
-            <img src="{filename}/static/ship.jpg" />
+          <a href="{static}/static/ship.jpg">
+            <img src="{static}/static/ship.jpg" />
             <figcaption>F9.0, 1/250 s, ISO 100</figcaption>
           </a>
         </figure>
index 3de1aa87015734eba239b12262fa33780386fe46..114a0456f886da1e589505a6ebd58b90e31bc70b 100644 (file)
@@ -27,7 +27,7 @@ Test
 
 :save_as: doxygen/test/index.html
 :breadcrumb: {filename}/doxygen.rst Doxygen theme
-:css: {filename}/static/m-dark.doxygen.compiled.css
+:css: {static}/static/m-dark.doxygen.compiled.css
 
 Lists
 =====
index fe5d687e074043e761b39bdceaa2f4c7215ec82b..57bec932cfd6ced72ccd6c4216161140e31e7539 100644 (file)
@@ -162,7 +162,7 @@ If you see something unexpected or not see something expected, check the
 -   Search for symbols using any prefix
 -   Fully controllable by keyboard
 
-.. image:: {filename}/static/opengl-search.png
+.. image:: {static}/static/opengl-search.png
 
 .. note-success::
 
index 1e45b8416bc7ca4f5f198214db1af6411f3acebc..301db2882165ab5173b4abca4c233715849b029d 100644 (file)
@@ -1,7 +1,7 @@
 An Author
 #########
 
-:image: {filename}/static/mosra.jpg
+:image: {static}/static/mosra.jpg
 :badge: Info badge for `An Author <{author}an-author>`_ provided by the
     `Metadata <{filename}/plugins/metadata.rst>`_ plugin.
 
index a812bba9d3eae6db911417e9b822c6cdb9f8377f..bcdfa0c60e18dd6d42454a6da311e68e220fda68 100644 (file)
@@ -1,7 +1,7 @@
 Examples
 ########
 
-:image: {filename}/static/site.jpg
+:image: {static}/static/site.jpg
 :badge: Info badge for the `Examples <{category}examples>`_ category provided
     by the `Metadata <{filename}/plugins/metadata.rst>`_ plugin.
 
index 75915b111e56ef6e9fa685793331c699681c3267..bdc017a6ebd18346a3bca2d69b582db45b214eba 100644 (file)
@@ -28,7 +28,7 @@ Article with hidden summary --- a jumbo one
 .. role:: language-la
     :class: language-la
 
-:cover: {filename}/static/ship.jpg
+:cover: {static}/static/ship.jpg
 :date: 2017-12-06 1:00
 :category: Examples
 :tags: Jumbo, Special
index ba7de9e9293963d12391334c55e4b3cc8b4c5568..9bbc30ebca6d422171aab6a3b50e4b63300c427f 100644 (file)
@@ -28,7 +28,7 @@ An article --- a jumbo one
 .. role:: language-la
     :class: language-la
 
-:cover: {filename}/static/ship.jpg
+:cover: {static}/static/ship.jpg
 :date: 2017-09-08 1:00
 :category: Examples
 :tags: Jumbo
index f2cc3c6c16928cf8cc997f6fc0a738a302fd466e..102e3d6dc1d16b2f5096eb5206fb6bec3f3fe96f 100644 (file)
@@ -27,7 +27,7 @@ m.css
 
 :save_as: index.html
 :url:
-:cover: {filename}/static/cover.jpg
+:cover: {static}/static/cover.jpg
 :summary: A no-nonsense, no-JavaScript CSS framework and Pelican theme for
     content-oriented websites
 :hide_navbar_brand: True
@@ -60,7 +60,7 @@ m.css
 
                 Get the essence
 
-                | :filesize-gz:`{filename}/../css/m-dark.compiled.css` of gzipped CSS,
+                | :filesize-gz:`{static}/../css/m-dark.compiled.css` of gzipped CSS,
                 | licensed under MIT
 
 .. container:: m-row m-container-inflate
@@ -69,7 +69,7 @@ m.css
 
         .. block-success:: *Pure* CSS and HTML
 
-            Everything you need is :filesize-gz:`{filename}/../css/m-dark.compiled.css`
+            Everything you need is :filesize-gz:`{static}/../css/m-dark.compiled.css`
             of compressed CSS. This framework has exactly 0 bytes of JavaScript
             because *nobody actually needs it*. Even for responsive websites.
 
index ddcdfe453ec29eea9eb7510e9d13e570fd752dff..7a84eb707f87bc8d28b64550b17583792f6aa96f 100644 (file)
@@ -353,10 +353,10 @@ element. Indenting the lines is possible by putting an escaped space in front
     ########
 
     :css:
-        {filename}/static/webgl.css
-        {filename}/static/canvas-controls.css
+        {static}/static/webgl.css
+        {static}/static/canvas-controls.css
     :js:
-        {filename}/static/showcase.js
+        {static}/static/showcase.js
     :html_header:
         <script>
         \   function handleDrop(event) {
@@ -427,7 +427,7 @@ destination and URL.
 
     :save_as: index.html
     :url:
-    :cover: {filename}/static/cover.jpg
+    :cover: {static}/static/cover.jpg
     :hide_navbar_brand: True
     :landing:
         .. container:: m-row
@@ -577,7 +577,7 @@ social links:
 
     :save_as: index.html
     :url:
-    :cover: {filename}/static/cover.jpg
+    :cover: {static}/static/cover.jpg
     :summary: This is the brand you need.
 
 .. block-success:: Recommended sizes for cover images
@@ -645,7 +645,7 @@ title and subtitle that's then rendered in a different font size. Example:
     An article --- a jumbo one
     ##########################
 
-    :cover: {filename}/static/ship.jpg
+    :cover: {static}/static/ship.jpg
     :summary: Article summary paragraph.
 
     Article contents.
@@ -746,7 +746,7 @@ Example:
     An article without explicit summary
     ###################################
 
-    :cover: {filename}/static/ship.jpg
+    :cover: {static}/static/ship.jpg
     :hide_summary: True
 
     Implicit article summary paragraph.
index 3347b7a95bbb9dce1a81ae371117f2a8ed31a009..a4e6e9d9f940dabb455f7d007dc14ed6db0ef6df 100644 (file)
@@ -195,7 +195,7 @@ Example and corresponding output, note the indentation:
 
         Info block content.
 
-        .. figure:: {filename}/static/ship-small.jpg
+        .. figure:: {static}/static/ship-small.jpg
             :alt: Image alt text
 
             Figure title
index 309025fa5c83759defe768ba093ca873ecf204bb..98ee485ce1fb8b4b3b964f53fd018d936c5042ea 100644 (file)
@@ -295,7 +295,7 @@ making use of both fields could look like this:
 
     :date: 2017-06-22
     :legal: This article is released under `CC0 {filename}/license.rst`_.
-    :cover: {filename}/img/article-cover.jpg
+    :cover: {static}/img/article-cover.jpg
 
 `SITEURL formatting`_
 ---------------------
index 72fa1144df7b90d1a4bf3fdf0b08c2106b2a24bf..0bf00f8901d2d0773c5f7f3b3038840f1038af9a 100644 (file)
@@ -36,32 +36,32 @@ All images should have no ``alt`` text, unless specified manually.
 
 Image with link:
 
-.. image:: {filename}/static/ship-small.jpg
-    :target: {filename}/static/ship.jpg
+.. image:: {static}/static/ship-small.jpg
+    :target: {static}/static/ship.jpg
 
 Image, class on top, custom alt:
 
-.. image:: {filename}/static/ship.jpg
+.. image:: {static}/static/ship.jpg
     :class: m-fullwidth
     :alt: A Ship
 
 Image with link, class on top:
 
-.. image:: {filename}/static/ship.jpg
-    :target: {filename}/static/ship.jpg
+.. image:: {static}/static/ship.jpg
+    :target: {static}/static/ship.jpg
     :class: m-fullwidth
 
 Figure with link and only a caption:
 
-.. figure:: {filename}/static/ship-small.jpg
-    :target: {filename}/static/ship.jpg
+.. figure:: {static}/static/ship-small.jpg
+    :target: {static}/static/ship.jpg
 
     A Ship
 
 Figure with link and class on top:
 
-.. figure:: {filename}/static/ship-small.jpg
-    :target: {filename}/static/ship.jpg
+.. figure:: {static}/static/ship-small.jpg
+    :target: {static}/static/ship.jpg
     :figclass: m-fullwidth
 
     A Ship
@@ -70,8 +70,8 @@ Image grid, not inflated:
 
 .. image-grid::
 
-    {filename}/static/ship.jpg
-    {filename}/static/flowers.jpg
+    {static}/static/ship.jpg
+    {static}/static/flowers.jpg
 
 Image grid, inflated:
 
@@ -79,5 +79,5 @@ Image grid, inflated:
 
     .. image-grid::
 
-        {filename}/static/flowers.jpg
-        {filename}/static/ship.jpg
+        {static}/static/flowers.jpg
+        {static}/static/ship.jpg
index c554a5dffa9e43ab48a688bc24c6661d09680a9d..f3ab731f78b0727ad126953c023afc4cb8ec0032 100644 (file)
@@ -108,12 +108,12 @@ option for both images and figures.
 
         .. container:: m-col-m-6
 
-            .. image:: {filename}/static/flowers-small.jpg
-                :target: {filename}/static/flowers.jpg
+            .. image:: {static}/static/flowers-small.jpg
+                :target: {static}/static/flowers.jpg
 
         .. container:: m-col-m-6
 
-            .. figure:: {filename}/static/ship-small.jpg
+            .. figure:: {static}/static/ship-small.jpg
 
                 A Ship
 
@@ -138,23 +138,23 @@ with non-repeating images, head over to `my blog <http://blog.mosra.cz/cesty/mai
 
     .. image-grid::
 
-        {filename}/ship.jpg
-        {filename}/flowers.jpg
+        {static}/ship.jpg
+        {static}/flowers.jpg
 
-        {filename}/flowers.jpg
-        {filename}/ship.jpg
+        {static}/flowers.jpg
+        {static}/ship.jpg
 
 .. image-grid::
 
-    {filename}/static/ship.jpg
-    {filename}/static/flowers.jpg
+    {static}/static/ship.jpg
+    {static}/static/flowers.jpg
 
-    {filename}/static/flowers.jpg
-    {filename}/static/ship.jpg
+    {static}/static/flowers.jpg
+    {static}/static/ship.jpg
 
 .. note-warning::
 
     Unlike with the image and figure directives above, Pelican *needs* to have
     the images present on a filesystem to extract size information. It's
-    advised to use the builtin *absolute* ``{filename}`` or ``{attach}`` syntax
+    advised to use the builtin *absolute* ``{static}`` or ``{attach}`` syntax
     for `linking to internal content <http://docs.getpelican.com/en/stable/content.html#linking-to-internal-content>`_.
index 77de9354bdc2960dc3cb2189c573e651169283ef..c78c2a8a39d0e86e87bc04f305fbfdaf672ba2d3 100644 (file)
@@ -381,16 +381,16 @@ deriving the role and adding the :rst:`:class:` option.
             :class: m-text m-success
 
         The compiled ``m-dark.compiled.css`` CSS file has
-        :filesize:`{filename}/../css/m-dark.compiled.css` but only
-        :filesize-yay:`{filename}/../css/m-dark.compiled.css` when the server
+        :filesize:`{static}/../css/m-dark.compiled.css` but only
+        :filesize-yay:`{static}/../css/m-dark.compiled.css` when the server
         sends it compressed.
 
     .. role:: filesize-yay(filesize-gz)
         :class: m-text m-success
 
     The compiled ``m-dark.compiled.css`` CSS file has
-    :filesize:`{filename}/../css/m-dark.compiled.css` but only
-    :filesize-yay:`{filename}/../css/m-dark.compiled.css` when the server
+    :filesize:`{static}/../css/m-dark.compiled.css` but only
+    :filesize-yay:`{static}/../css/m-dark.compiled.css` when the server
     sends it compressed.
 
 `Aliases`_
index 00f351c1d45c32893a0f65427fcc52d105007dc9..2a5d727b66629cf1a8145c2a869ab770d72a1b47 100644 (file)
@@ -135,7 +135,7 @@ and matching an author named *John Doe*:
 
     :twitter: @se7en
     :twitter_id: 7777777
-    :image: {filename}/authors/john-doe.jpg
+    :image: {static}/authors/john-doe.jpg
     :description: I'm not that serial killer.
     :summary: I'm really not that serial killer.
     :badge: No, really, don't confuse me with that guy.
@@ -206,7 +206,7 @@ and matching a category named *Guest posts*:
     Posts by our users
     ##################
 
-    :image: {filename}/categories/guest-posts.jpg
+    :image: {static}/categories/guest-posts.jpg
     :description: User stories and product reviews
     :summary: Stories of our users and honest reviews of our product.
     :badge: This article is a guest post. Want to share your story as well? Head
index 3be7a03d8a51a817a3a42d1432517c4f9c9a69f7..3dbbf5b5c7539c82b9086ce118e832e0df22610a 100644 (file)
@@ -5,28 +5,28 @@ m.images
 
 Image:
 
-.. image:: {filename}/ship.jpg
+.. image:: {static}/ship.jpg
 
 Image with link:
 
-.. image:: {filename}/ship.jpg
-    :target: {filename}/ship.jpg
+.. image:: {static}/ship.jpg
+    :target: {static}/ship.jpg
 
 Image, class on top, custom alt:
 
-.. image:: {filename}/ship.jpg
+.. image:: {static}/ship.jpg
     :class: m-fullwidth
     :alt: A Ship
 
 Image with link, class on top:
 
-.. image:: {filename}/ship.jpg
-    :target: {filename}/ship.jpg
+.. image:: {static}/ship.jpg
+    :target: {static}/ship.jpg
     :class: m-fullwidth
 
 Figure:
 
-.. figure:: {filename}/ship.jpg
+.. figure:: {static}/ship.jpg
 
     A Ship
 
@@ -34,15 +34,15 @@ Figure:
 
 Figure with link and only a caption:
 
-.. figure:: {filename}/ship.jpg
-    :target: {filename}/ship.jpg
+.. figure:: {static}/ship.jpg
+    :target: {static}/ship.jpg
 
     A Ship
 
 Figure with link and class on top:
 
-.. figure:: {filename}/ship.jpg
-    :target: {filename}/ship.jpg
+.. figure:: {static}/ship.jpg
+    :target: {static}/ship.jpg
     :figclass: m-fullwidth
 
     A Ship
@@ -51,18 +51,18 @@ Image grid:
 
 .. image-grid::
 
-    {filename}/ship.jpg
-    {filename}/flowers.jpg
+    {static}/ship.jpg
+    {static}/flowers.jpg
 
-    {filename}/flowers.jpg
-    {filename}/ship.jpg
+    {static}/flowers.jpg
+    {static}/ship.jpg
 
 Image grid with a PNG file, JPEG with sparse EXIF data, JPEG with no EXIF data
 and long exposure (>1 second):
 
 .. image-grid::
 
-    {filename}/tiny.png
-    {filename}/sparseexif.jpg
-    {filename}/noexif.jpg
-    {filename}/longexposure.jpg
+    {static}/tiny.png
+    {static}/sparseexif.jpg
+    {static}/noexif.jpg
+    {static}/longexposure.jpg
index 60b43bd63163bf15cfd00935232da49cfe287950..9abc338594222d18fb6763fb30f8a83c062b3c87 100644 (file)
@@ -3,7 +3,7 @@ Author name, displayed on top of the author page
 
 :twitter: @czmosra
 :twitter_id: 1537427036
-:image: {filename}/mosra.jpg
+:image: {static}/mosra.jpg
 :description: Author description, used for a <meta name="description"> tag.
 :summary: Author summary, used for the social <meta> tags.
 :badge: Contents of the badge, displayed at article bottom.
index d092d7a2e28da0c97e23dc139d48f25b50c1bae1..07ae282363443929212cf300404d107d09cd55ab 100644 (file)
@@ -1,7 +1,7 @@
 A category name, displayed on top of the category badge/details
 ###############################################################
 
-:image: {filename}/category.jpg
+:image: {static}/category.jpg
 :description: Category description, used for a <meta name="description"> tag.
 :summary: Category summary, used for the social <meta> tags.
 :badge: Contents of the badge, displayed at article bottom.
index 951b582c5cf512506c96e12bc6341fc276ce6f39..fe0da7f1c81ea384c0b0cda9bbc17d6e830cd2fc 100644 (file)
@@ -7,7 +7,7 @@ An article — a jumbo one
 :date: 2017-12-08
 :category: Another category
 :tags: Fourth, First, Third
-:cover: {filename}/ship.jpg
+:cover: {static}/ship.jpg
 :summary: A summary.
     On multiple
     lines.
index 7de7350a04713a3445d358fd32806f01c382b114..b6681ffc877162783a548377f7d8f57cd34a77ef 100644 (file)
@@ -1,7 +1,7 @@
 A page
 ######
 
-:cover: {filename}/ship.jpg
+:cover: {static}/ship.jpg
 :header: This is visible on the top and doesn't break the layout.
 :footer: This is visible on the bottom.
 
index 3ff5ab23d4e81e0dd1b89a1c0dc24e7626d12026..1005eec606181e4bd693b3a530b4da14932a941b 100644 (file)
@@ -1,7 +1,7 @@
 A page
 ######
 
-:cover: {filename}/ship.jpg
+:cover: {static}/ship.jpg
 :hide_navbar_brand: True
 :landing:
     .. container:: m-row
index 42d07b79ba6ed78d803304500e16cb781ca3206e..b1014c66a31a27e233a04b5c1600b31aaa4138c6 100644 (file)
@@ -1,7 +1,7 @@
 A page title that displays only in title
 ########################################
 
-:cover: {filename}/ship.jpg
+:cover: {static}/ship.jpg
 :header: This shouldn't be visible anywhere.
 :footer: This is visible on the bottom.
 :landing: