Lista artykułów (szablon modułu)
Ostatnia aktualizacja: 2021-03-17
Przykład z tagami handlebars
{{#if title}}
<h3 {{{editable.title}}} class="title {{title}}"><span>{{{title}}}</span></h3>
{{/if}}
{{#each articles}}
<div class="post">
<div style="position:relative;z-index:99;display:none;" class="siteor_edit_mode">
<div style="position:absolute;">
</div>
</div>
<h2 class="title">
<a href="{{show_path}}">{{{title}}}</a>
</h2>
<div class="author">
<img src="https://fs.siteor.com/radgost/files/blog/fakturownia-sygnet-light.svg" class="avatar" alt="author" />
{{author_name}}
{{publish_from_day}}
</div>
<div class="intro">
{{#if has_image}}
<a href="{{show_path}}" class="pic pull-right">
<img src="{{image_medium_url}}" class="img-responsive" alt="{{image_alt_text}}"/>
</a>
{{else}}
{{#if video_key}}
<a href="{{show_path}}" class="pic pull-right">
<img src="http://img.youtube.com/vi/{{video_key}}/hqdefault.jpg" class="img-responsive" title="{{title}}" alt="{{title}}"/>
</a>
{{/if}}
{{/if}}
<p>{{{abstract}}}
<br/>{{{content}}}</p>
<a class="continue-reading pull-left" href="{{show_path}}">Czytaj całość</a>
<div class="clear"></div>
<hr />
</div>
</div>
{{/each}}
{{#if show_pagination}}
<div class="pagination">
{{{pagination}}}
</div>
{{/if}}
<div class="clear"></div>
<div id="progress_bar2" style="display:none;"><img src="/images/progress_bar.gif" alt="progress"/></div>
Powrót
Dodaj komentarz