Skip to content

Commit

Permalink
目次修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Aug 16, 2024
1 parent d581eff commit 545e309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/generate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@

# シリーズ記事一覧
write_lines.append('<h2 id="series">シリーズ一覧</h2>\n')
write_lines.append('<p>各シリーズを下記にまとめてあります。</p>\n')
series = ["lemon", "alpacahack", "ros2", "cooking", "others"]
series_name = ["セキセイインコ「れもん」の日記", "AlpacaHackで始めるCTF入門", "ROS 2の記事", "料理日記", "その他"]
for j in range(len(series)):
Expand Down Expand Up @@ -221,7 +222,7 @@
write_lines.insert(index_position+2, '<ul>\n')
write_lines.insert(index_position+3, '<li><a href="#news">お知らせ</a></li>\n')
write_lines.insert(index_position+4, '<li><a href="#index">目次</a></li>\n')
write_lines.insert(index_position+5, '<li><a href="#about-blog">このブログについて</a></li>\n')
write_lines.insert(index_position+5, '<li><a href="#about-blog">加藤祐介ブログの情報</a></li>\n')
write_lines.insert(index_position+6, '<li><a href="#series">シリーズ一覧</a></li>\n')
for i in range(len(year_arr)):
write_lines.insert(index_position+7+i, '<li><a href="#' + year_arr[i] + '">' + year_arr[i] + '年の記事</a></li>\n')
Expand Down

0 comments on commit 545e309

Please sign in to comment.