aboutsummaryrefslogtreecommitdiff
path: root/templates/partials/sidebar.django
blob: 2940523b0400315d9fa7e5f309f6b37849a2335f (plain)
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
36
37
38
39
40
41
42
43
44
<div>
  <h3>♡ Popular Tags</h3>
  <div class="sidebar-content">
    {% for tag in PopularTags %}
      <a href="/posts?tags={{ tag.Name }}" style="color: {{ tag.Type.Color }};" class="sidebar-tag">{{ tag.Name }} <span class="tag-count">({{ tag.Count }})</span></a>
    {% endfor %}
    {% if not PopularTags %}
      <p>No popular tags found.</p>
    {% endif %}
  </div>
</div>

<div>
  <h3>☆ Site Stats</h3>
  <div class="sidebar-content">
    <p class="sidebar-stat">
      Posts: <span class="sidebar-stat-value">{{ SiteStats.Posts }}</span>
    </p>
    <p class="sidebar-stat">
      Tags: <span class="sidebar-stat-value">{{ SiteStats.Tags }}</span>
    </p>
    <p class="sidebar-stat">
      Today: <span class="sidebar-stat-value">{{ SiteStats.Today }}</span>
    </p>
    <p class="sidebar-stat">
      Storage: <span class="sidebar-stat-value">{{ SiteStats.Storage }}</span>
    </p>
    <p class="sidebar-stat">
      Comments: <span class="sidebar-stat-value">{{ SiteStats.Comments }}</span>
    </p>
  </div>
</div>

<div>
  <h3>✧ Recent Tags</h3>
  <div class="sidebar-content">
    {% for tag in RecentTags %}
      <a href="/posts?tags={{ tag.Name }}" style="color: {{ tag.Type.Color }};" class="sidebar-tag">{{ tag.Name }} <span class="tag-count">({{ tag.Count }})</span></a>
    {% endfor %}
    {% if not RecentTags %}
      <p>No recent tags found.</p>
    {% endif %}
  </div>
</div>