Skip to content

Commit

Permalink
Update article_list.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Taka-bow authored Sep 24, 2024
1 parent 33144d8 commit eb302b9
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions _includes/article_list.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
<div class="article-list">
{% for article in site.data.articles_data.articles %}
<div class="article-item">
<!-- 日付を最初に表示 -->
<p class="published-date">公開日: {{ article.published }}</p>

<!-- サムネイル画像を表示 -->
<a href="{{ article.url }}" target="_blank" rel="noopener noreferrer">
<img src="{{ article.image }}" alt="{{ article.title }}" class="thumbnail">
</a>

<!-- タイトルを表示 -->
<a href="{{ article.url }}" target="_blank" rel="noopener noreferrer">
<h3>{{ article.title }}</h3>
</a>
<div class="topics-list">
{% for topic in site.data.articles_data.topics %}
<div class="topic">
<!-- お題目を表示 -->
<h2>{{ topic.title }}</h2>
</div>

<div class="article-list">
{% for article in topic.articles %}
<div class="article-item">
<!-- 日付を最初に表示 -->
<p class="published-date">公開日: {{ article.published }}</p>

<!-- サムネイルとタイトルをリンク付きで表示 -->
<a href="{{ article.url }}" target="_blank" rel="noopener noreferrer">
<img src="{{ article.image }}" alt="{{ article.title }}" class="thumbnail">
</a>

<a href="{{ article.url }}" target="_blank" rel="noopener noreferrer">
<h3>{{ article.title }}</h3>
</a>
</div>
{% endfor %}
</div>

<!-- 各トピックの境界 -->
<hr>
{% endfor %}
</div>

0 comments on commit eb302b9

Please sign in to comment.