๐Ÿ“ฆ asehee / asehee.github.io

๐Ÿ“„ footer.html ยท 25 lines
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<div class="footer-col-wrapper">

  <div class="footer-col">
    <div class="copyright">
      {% assign year_from = site.posts[-1].date | date: '%Y' %}
      {% assign year_to   = site.time | date: '%Y' %}
      {% if year_from == nil or year_from == year_to %}
        {% assign year_string = year_from %}
      {% else %}
        {% assign year_string = year_from | append: '&nbsp;' | append: '-' | append: '&nbsp;' | append: year_to %}
      {% endif %}
      {% if site.author %}
      <p>Copyright ยฉ {{ year_string }} {{ site.author }}; All rights reserved.</p>
      {% endif %}
    </div>
    <p>
      Powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://github.com/ngzhio/jekyll-theme-hamilton">Hamilton</a>
    </p>
  </div>

  <div class="footer-col">
    <p>{{ site.description | escape }}</p>
  </div>
</div>