Skip to content

Latest commit

 

History

History
114 lines (93 loc) · 2.84 KB

index.md

File metadata and controls

114 lines (93 loc) · 2.84 KB
layout
home
<script src="search.js" type="text/javascript"></script> <script type='text/javascript'> function caculateTime() { var today_in_number = new Date().getTime() / 1000 var last_time = document.getElementsByClassName('remind-latest-post')[0].textContent distance = (parseInt(today_in_number) - parseInt(last_time))/60/60/24 var distanceDiv = document.getElementsByClassName('remind-time')[0] distanceDiv.innerText = `${Math.round(distance)} days ago` } window.onload = evt => { caculateTime() SimpleJekyllSearch({ searchInput: document.getElementById('search-input'), resultsContainer: document.getElementById('results-container'), json: './search.json' }) }; </script>

Active

{:.remind-latest-post.q-hidden} {{ site.posts.first.date | date: '%s' }}

{:.remind-title}

{:.remind-time} 0 days ago

Latest issues

{:.home-page-title}

{% for post in site.posts limit:3 %} - [{{ post.title }}]({{ post.url }}) {% endfor %}

Issues

{:.home-page-title}

      {% for post in site.posts %} {% assign year = post.date | date: "%Y" %}
        {% if year != prev_year %}
          <h3>{{year}}</h3>
        {% endif %}
      
        <li>
          <span>{{ post.date | date: "%B %e, %Y" }}</span>
          <a href="{{ post.url }}">{{ post.title }}</a>
        </li>
        {% assign prev_year = year %}
      

      {% endfor %}