123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Path Handlers for Nikola | Riff</title>
- <link href="../assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
- <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
- <link rel="canonical" href="http://media.pagelibre.org/riff/site/pages/path-handlers.html">
- <link rel="icon" href="../favicon.ico" sizes="16x16">
- <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="The Nikola Team">
- <meta property="og:site_name" content="Riff">
- <meta property="og:title" content="Path Handlers for Nikola">
- <meta property="og:url" content="http://media.pagelibre.org/riff/site/pages/path-handlers.html">
- <meta property="og:description" content="Nikola supports special links with the syntax link://kind/name. In
- templates you can also use _link(kind, name). You can add query strings
- (?key=value) for extra arguments, or pass keyword arguments ">
- <meta property="og:type" content="article">
- <meta property="article:published_time" content="2023-01-27T16:45:44+01:00">
- </head>
- <body>
- <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
-
- <!-- Menubar -->
-
- <div class="blog-masthead">
- <div class="container">
- <!-- This keeps the margins nice -->
- <nav class="blog-nav" role="navigation"><a href="../index.html" class="blog-nav-item">Accueil</a>
- <a href="about.html" class="blog-nav-item">About Riff</a>
- <a href="../rss.xml" class="blog-nav-item">RSS feed</a>
-
-
-
-
-
-
-
- </nav>
- </div>
- <!-- /.container -->
- </div>
- <!-- End of Menubar -->
-
- <div class="container" id="content" role="main">
- <div class="body-content">
- <div class="blog-header">
- <h1 class="blog-title">
- <a href="http://media.pagelibre.org/riff/site/">
-
- <span id="blog-title">Riff</span>
- </a>
- </h1>
- <p class="lead blog-description">Riff la radio rock</p>
-
- </div>
- <!--Body content-->
- <div class="row">
- <div class="col-sm-8 blog-main">
-
- <article class="post-text storypage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h2 class="p-name entry-title blog-post-title" itemprop="headline name"><a href="#" class="u-url">Path Handlers for Nikola</a></h2>
-
-
-
- </header><div class="e-content entry-content" itemprop="articleBody text">
- <!-- DO NOT EDIT, this file is auto-generated by scripts/document_path_handlers.py -->
- <p>Nikola supports special links with the syntax <code class="docutils literal"><span class="pre">link://kind/name</span></code>. In
- templates you can also use <code class="docutils literal">_link(kind, name)</code>. You can add query strings
- (<code class="docutils literal"><span class="pre">?key=value</span></code>) for extra arguments, or pass keyword arguments to <code class="docutils literal">_link</code> in
- templates (support and behavior depends on path handlers themselves). Fragments
- (<code class="docutils literal">#anchor</code>) will be appended to the transformed link.</p>
- <p>Here are the descriptions for all the supported kinds.</p>
- <dl class="dl-horizontal">
- <dt>archive</dt>
- <dd>
- <p>Link to archive path, name is the year.</p>
- <p>Example:</p>
- <p>link://archive/2013 => /archives/2013/index.html</p>
- </dd>
- <dt>author</dt>
- <dd>
- <p>Link to an author's page.</p>
- <p>Example:</p>
- <p>link://author/joe => /authors/joe.html</p>
- </dd>
- <dt>author_atom</dt>
- <dd>
- <p>Link to an author's Atom feed.</p>
- <p>Example:</p>
- <p>link://author_atom/joe => /authors/joe.atom</p>
- </dd>
- <dt>author_index</dt>
- <dd>
- <p>Link to the authors index.</p>
- <p>Example:</p>
- <p>link://authors/ => /authors/index.html</p>
- </dd>
- <dt>author_rss</dt>
- <dd>
- <p>Link to an author's RSS feed.</p>
- <p>Example:</p>
- <p>link://author_rss/joe => /authors/joe.xml</p>
- </dd>
- <dt>category</dt>
- <dd>
- <p>A link to a category. Takes page number as optional keyword argument.</p>
- <p>Example:</p>
- <p>link://category/dogs => /categories/dogs.html</p>
- </dd>
- <dt>category_atom</dt>
- <dd>
- <p>A link to a category's Atom feed.</p>
- <p>Example:</p>
- <p>link://category_atom/dogs => /categories/dogs.atom</p>
- </dd>
- <dt>category_index</dt>
- <dd>
- <p>A link to the category index.</p>
- <p>Example:</p>
- <p>link://category_index => /categories/index.html</p>
- </dd>
- <dt>category_rss</dt>
- <dd>
- <p>A link to a category's RSS feed.</p>
- <p>Example:</p>
- <p>link://category_rss/dogs => /categories/dogs.xml</p>
- </dd>
- <dt>filename</dt>
- <dd>
- <p>Link to post or page by source filename.</p>
- <p>Example:</p>
- <p>link://filename/manual.txt => /docs/handbook.html</p>
- </dd>
- <dt>gallery</dt>
- <dd>
- <p>Link to an image gallery's path.</p>
- <p>It will try to find a gallery with that name if it's not ambiguous
- or with that path. For example:</p>
- <p>link://gallery/london => /galleries/trips/london/index.html</p>
- <p>link://gallery/trips/london => /galleries/trips/london/index.html</p>
- </dd>
- <dt>gallery_global</dt>
- <dd>
- <p>Link to the global gallery path, which contains all the images in galleries.</p>
- <p>There is only one copy of an image on multilingual blogs, in the site root.</p>
- <p>link://gallery_global/london => /galleries/trips/london/index.html</p>
- <p>link://gallery_global/trips/london => /galleries/trips/london/index.html</p>
- <p>(a <code class="docutils literal">gallery</code> link could lead to eg. /en/galleries/trips/london/index.html)</p>
- </dd>
- <dt>gallery_rss</dt>
- <dd>
- <p>Link to an image gallery's RSS feed.</p>
- <p>It will try to find a gallery with that name if it's not ambiguous
- or with that path. For example:</p>
- <p>link://gallery_rss/london => /galleries/trips/london/rss.xml</p>
- <p>link://gallery_rss/trips/london => /galleries/trips/london/rss.xml</p>
- </dd>
- <dt>index</dt>
- <dd>
- <p>Link to a numbered index.</p>
- <p>Example:</p>
- <p>link://index/3 => /index-3.html</p>
- </dd>
- <dt>index_atom</dt>
- <dd>
- <p>Link to a numbered Atom index.</p>
- <p>Example:</p>
- <p>link://index_atom/3 => /index-3.atom</p>
- </dd>
- <dt>index_rss</dt>
- <dd>
- <p>A link to the RSS feed path.</p>
- <p>Example:</p>
- <p>link://rss => /blog/rss.xml</p>
- </dd>
- <dt>listing</dt>
- <dd>
- <p>Return a link to a listing.</p>
- <p>It will try to use the file name if it's not ambiguous, or the file path.</p>
- <p>Example:</p>
- <p>link://listing/hello.py => /listings/tutorial/hello.py.html</p>
- <p>link://listing/tutorial/hello.py => /listings/tutorial/hello.py.html</p>
- </dd>
- <dt>listing_source</dt>
- <dd>
- <p>Return a link to the source code for a listing.</p>
- <p>It will try to use the file name if it's not ambiguous, or the file path.</p>
- <p>Example:</p>
- <p>link://listing_source/hello.py => /listings/tutorial/hello.py</p>
- <p>link://listing_source/tutorial/hello.py => /listings/tutorial/hello.py</p>
- </dd>
- <dt>post_path</dt>
- <dd>
- <p>Link to the destination of an element in the POSTS/PAGES settings.</p>
- <p>Example:</p>
- <p>link://post_path/posts => /blog</p>
- </dd>
- <dt>root</dt>
- <dd>
- <p>Link to the current language's root.</p>
- <p>Example:</p>
- <p>link://root_path => /</p>
- <p>link://root_path => /translations/spanish/</p>
- </dd>
- <dt>rss</dt>
- <dd>
- <p>A link to the RSS feed path.</p>
- <p>Example:</p>
- <p>link://rss => /blog/rss.xml</p>
- </dd>
- <dt>slug</dt>
- <dd>
- <p>Return a link to a post with given slug, if not ambiguous.</p>
- <p>Example:</p>
- <p>link://slug/yellow-camaro => /posts/cars/awful/yellow-camaro/index.html</p>
- </dd>
- <dt>tag</dt>
- <dd>
- <p>A link to a tag's page. Takes page number as optional keyword argument.</p>
- <p>Example:</p>
- <p>link://tag/cats => /tags/cats.html</p>
- </dd>
- <dt>tag_atom</dt>
- <dd>
- <p>A link to a tag's Atom feed.</p>
- <p>Example:</p>
- <p>link://tag_atom/cats => /tags/cats.atom</p>
- </dd>
- <dt>tag_index</dt>
- <dd>
- <p>A link to the tag index.</p>
- <p>Example:</p>
- <p>link://tag_index => /tags/index.html</p>
- </dd>
- <dt>tag_rss</dt>
- <dd>
- <p>A link to a tag's RSS feed.</p>
- <p>Example:</p>
- <p>link://tag_rss/cats => /tags/cats.xml</p>
- </dd>
- </dl>
- </div>
-
-
- </article>
- </div>
- <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
- <div class="sidebar-module sidebar-module-inset">
- <h4>About</h4>
- <div id="shoutcastdiv">
- <script type="text/javascript">
- refreshdiv();
- </script>
- </div>
- </div>
- <div class="sidebar-module">
- <h4>Links</h4>
- <ol class="list-unstyled">
- <li><a href="http://getbootstrap.com/examples/blog/">Bootstrap Blog Theme</a></li>
- <li><a href="https://getnikola.com/">Nikola</a></li>
- <li><a href="https://twitter.com/mdo">@mdo</a></li>
- <li><a href="https://twitter.com/Kwpolska">@Kwpolska</a></li>
- <li><a href="https://twitter.com/GetNikola">@GetNikola</a></li>
- </ol>
- </div>
-
-
- </div>
- <!--End of body content-->
- </div>
- </div>
- </div>
-
- <footer class="blog-footer" id="footer">
- Contents © 2023 <a href="mailto:contact@riff-radio.org">Riff</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a>
-
- </footer><script src="../assets/js/all-nocdn.js"></script><!-- fancy dates --><script>
- moment.locale("en");
- fancydates(0, "YYYY-MM-DD HH:mm");
- </script><!-- end fancy dates --><script>
- baguetteBox.run('div#content', {
- ignoreClass: 'islink',
- captions: function(element) {
- return element.getElementsByTagName('img')[0].alt;
- }});
- </script><script type="text/javascript" src="../refresh.js"></script>
- </body>
- </html>
|