most-visited-pages.html 1011 B

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="card">
  2. <div class="card-header">
  3. <h3 class="card-title">Most Visited Pages</h3>
  4. </div>
  5. <div class="card-table table-responsive">
  6. <table class="table table-vcenter">
  7. <thead>
  8. <tr>
  9. <th>Page name</th>
  10. <th>Visitors</th>
  11. <th>Unique</th>
  12. <th colspan="2">Bounce rate</th>
  13. </tr>
  14. </thead>
  15. {% for page in site.data.pages limit: 6 %}
  16. {% assign data = page.data | join: ',' %}
  17. {% assign id = "bounce-rate-" | append: forloop.index %}
  18. <tr>
  19. <td>
  20. {{ page.uri }}
  21. <a href="#" class="ms-1" aria-label="Open website">{% include ui/icon.html icon="link" %}</a>
  22. </td>
  23. <td class="text-secondary">{{ page.visitors | format_number }}</td>
  24. <td class="text-secondary">{{ page.unique | format_number }}</td>
  25. <td class="text-secondary">{{ page.bounce }}</td>
  26. <td class="text-end w-1">
  27. {% include ui/chart-sparkline.html type="line" data=data id=id small=true color="primary" %}
  28. </td>
  29. </tr>
  30. {% endfor %}
  31. </table>
  32. </div>
  33. </div>