-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (35 loc) · 1.22 KB
/
index.html
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
---
layout: default
---
<!-- Categories -->
<div class="tags-expo">
<div class="tags-expo-list">
{% for tag in site.tags %}
<!-- <i class="fa-solid fa-tag"></i> -->
<i class="fa-solid fa-tag" style="color: #004221;"></i>
<a href="tags#{{ tag[0] | slugify }}" class="post-tag">{{ tag[0] | upcase }} </a>
{% endfor %}
<hr>
</div>
</div>
<!-- Posts -->
<ul id="posts">
{% if paginator.posts %}
{% for post in paginator.posts %}
{% if post.language == 'arabic' %}
<li class="post" dir="rtl" lang="ar">
{% else %}
<li class="post">
{% endif %}
<h2><a href="{% if site.baseurl == '/' %}{{ post.url }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}">{{ post.title }}</a></h2>
<time datetime="{{ post.date | date_to_xmlschema }}" class="by-line">
{{ post.date | date_to_string }}
by {% if post.author %}{{ post.author }}{% else %} {{ site.site_name }}{% endif %}
</time>
<p>{{ post.excerpt | strip_html }} <a href="{{ post.url }}"> {%if post.language == 'arabic'%} اقرأ أكثر {% else %}Read more.{% endif %}</a> </p>
</li>
{% endfor %}
{% else %}
No blog posts found! <a href="https://github.com/younnoughi/dz_playground">[Contribute]</a>
{% endif %}
</ul>