-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_aside.twig
35 lines (28 loc) · 1.04 KB
/
_aside.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<div class="sidebar_right">
{{ widgets('aside_top') }}
{% setcontent about="pages/about" %}
{% if about.title is defined %}
<div class="about"><h3>About</h3>
{{ about.teaser }}
<a href="{{ about.link }}">Read more...</a>
<p></p>
</div>
{% else %}
<div class="about"><h3>{{ __('Alas, no about!') }}</h3>
{{ __("If there was a Page with 'about' for a slug, it would've been shown here. But there isn't one, so that's why you're seeing this placeholder.") }}
</div>
<p></p>
{% endif %}
<div class="sidebarmenu">
<h3>Latest Content</h3>
{% setcontent records="entries/latest/6" %}
<ul class="sidebar_menu" style="margin:0">
{% for record in records %}
<li><a href="{{ record.link }}">{{ record.title }}</a></li>
{% endfor %}
</ul>
</div>
</div><!-- end sidebar right -->
{{ widgets('aside_bottom') }}
<div style="clear:both; height: 40px"></div>
</div><!-- end container -->