_sidebar.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <div class="sidebar col-md-3">
  2. <div class="row">
  3. {{ if .sidebarArticles }}
  4. <div class="col-md-12 widget-posts top_45">
  5. <div class="widget-title">
  6. <h2 class="upper">Последние статьи</h2>
  7. </div>
  8. <ul class="sidebar-posts">
  9. {{ range .sidebarArticles }}
  10. <li>
  11. <div class="title">
  12. <a href="/article/{{ .URL }}">{{ .Title }}</a>
  13. </div>
  14. <a class="post-content" href="/article/{{ .URL }}">
  15. {{ if .PreviewText }}
  16. <p>{{ noescape .PreviewText }}</p>
  17. {{ end }}
  18. <span class="date-comment">{{ .PublishTime }}</span>
  19. </a>
  20. </li>
  21. {{ end }}
  22. </ul>
  23. </div>
  24. {{ end }}
  25. {{ if .sidebarTags }}
  26. <div class="col-md-12 widget-tags top_45">
  27. <div class="widget-title">
  28. <h2 class="upper">Теги</h2>
  29. </div>
  30. <ul class="top_15">
  31. {{ range .sidebarTags }}
  32. <li>
  33. <a href="/tag/{{ .URL }}">{{ .Tag }}</a>
  34. </li>
  35. {{ end }}
  36. </ul>
  37. </div>
  38. {{ end }}
  39. </div>
  40. </div>