Skip to content

Commit

Permalink
time
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaryob authored Sep 25, 2023
1 parent 4429f9d commit 898b27b
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions _pages/arsiv.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ permalink: /arsiv/
image: "archive-bg.jpg"
image_hash: "cc30914dbb849385dc6c0bf877626671"
---

<div class="col-lg-8 col-md-10 mx-auto">
<section id="archive">
<h2><i class="fa fa-file-archive-o"></i>&nbsp;Bu yılın arşivi</h2>
{% for post in site.posts %}
{% unless post.next %}

<ul class="this">

{% if year != nyear %}
{% assign cur_year = post.date | date: '%Y' %}

{% if cur_year != last_year %}
</ul>
<h2>{{ post.date | date: '%Y' }}</h2>

Expand All @@ -25,12 +26,27 @@ image_hash: "cc30914dbb849385dc6c0bf877626671"
{% endif %}
{% endunless %}
<li class="arch-list">
<span>{% assign m = post.date | date: "%-m" | minus: 1 %}
{% assign day = post.date | date: "%d" %}
{% assign month = months[m] %}
{% assign year = post.date | date: "%Y" %}
</span> &raquo; <a href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a> </li>
<span>{% assign m = page.date | date: "%-m" %}
{{ page.date | date: "%-d" }}
{% case m %}
{% when '1' %}Ocak
{% when '2' %}Şubat
{% when '3' %}Mart
{% when '4' %}Nisan
{% when '5' %}Mayıs
{% when '6' %}Haziran
{% when '7' %}Temmuz
{% when '8' %}Ağustos
{% when '9' %}Eylül
{% when '10' %}Ekim
{% when '11' %}Kasım
{% when '12' %}Aralık
{% endcase %}
{{ page.date | date: "%Y" }}</span> &raquo; <a href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a> </li>
{% endfor %}
</ul>
</section>
</div>



0 comments on commit 898b27b

Please sign in to comment.