<p>Two global variables are available in your jinja template, <code>hal_publications</code> and
<code>hal_request</code>.</p>
<h3><code>hal_publications</code></h3>
<p>A list of <code>Publication</code>s, a dataclass with the following attributes:</p>
<ul>
<li><code>raw</code>: A dict containing everything about this publication returned by the
HAL API.</li>
<li><code>title</code>: The title of the publication</li>
<li><code>hal_id</code>: The HAL ID of the publication</li>
<li><code>authors</code>: A list of strings (author names)</li>
<li><code>date</code>: A string (<code>producedDate_s</code>)</li>
<li><code>type</code>: The publication type, eg "ART", "COMM", "POSTER", etc/</li>
</ul>
<p>and properties:</p>
<ul>
<li><code>link</code>: URL pointing to the HAL resource</li>
<li><code>where</code>: returns where the article was published (<code>journalTitle_s</code> or <code>conferenceTitle_s</code>
if missing)</li>
</ul>
<h3><code>hal_request</code></h3>
<p>URL used for the HAL API request.</p>
<h2>Known caveat</h2>
<p>Lektor will not 'know' that the page must be rebuilt when new entries are
returned by the HAL API request.
As a workaround, the plugin allows to mark any page as "dirty", so it is rebuilt
everytime. Add this to the template that uses the publications list:</p>
<prelang="jinja2">{{ volatile() }}
</pre>
</div>
</div>
</div>
</div>
</div>
<divclass="bottomsummary">
<divclass="container">
</div>
</div>
<footer>
<divclass="container">
<divclass="row">
<divclass="col-sm-4 icon-bar">
<ahref="https://github.com/lektor/lektor/"title="Lektor on GitHub"
><iclass="fa fa-github"></i></a>
<ahref="https://github.com/lektor/lektor/issues/"title="Report Issues for Lektor"
><iclass="fa fa-bug"></i></a>
<ahref="https://twitter.com/getlektor"title="Find Lektor on Twitter"
><iclass="fa fa-twitter"></i></a>
<ahref="https://gitter.im/lektor/lektor"title="Chat on Gitter"
><iclass="fa fa-comment"></i></a>
<ahref="https://github.com/lektor/lektor-website/tree/master/content/plugins/lektor-hal/contents.lr"title="View source for this page"><iclass="fa fa-code"></i></a>
</div>
<divclass="col-sm-8">
<ahref="../../license/">License & Copyright</a> •
<ahref="../../contact/">Contact</a> •
Made with <iclass="fa fa-fw fa-heart"title="Heart"><spanhidden>Heart</span></i> in Carinthia