1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <div class="sidebar col-md-3">
- <div class="row">
- {{ if .sidebarArticles }}
- <div class="col-md-12 widget-posts top_45">
- <div class="widget-title">
- <h2 class="upper">Последние статьи</h2>
- </div>
- <ul class="sidebar-posts">
- {{ range .sidebarArticles }}
- <li>
- <div class="title">
- <a href="/article/{{ .URL }}">{{ .Title }}</a>
- </div>
- <a class="post-content" href="/article/{{ .URL }}">
- {{ if .PreviewText }}
- <p>{{ noescape .PreviewText }}</p>
- {{ end }}
- <span class="date-comment">{{ .PublishTime }}</span>
- </a>
- </li>
- {{ end }}
- </ul>
- </div>
- {{ end }}
- {{ if .sidebarTags }}
- <div class="col-md-12 widget-tags top_45">
- <div class="widget-title">
- <h2 class="upper">Теги</h2>
- </div>
- <ul class="top_15">
- {{ range .sidebarTags }}
- <li>
- <a href="/tag/{{ .URL }}">{{ .Tag }}</a>
- </li>
- {{ end }}
- </ul>
- </div>
- {{ end }}
- </div>
- </div>
|