Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="ja" dir="ltr">
{% include head.html %}

<body>
<h1>Redirecting&hellip;</h1>
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>
</body>

<script>location = "{{ page.redirect.to }}"</script>
</html>
36 changes: 0 additions & 36 deletions _pages/redirect-to-contests-how-to-apply.html

This file was deleted.

36 changes: 0 additions & 36 deletions _pages/redirect-to-contests-terms.html

This file was deleted.

2 changes: 2 additions & 0 deletions _posts/2025-07-21-contest-terms.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ layout: post
title: DojoCon Japan 2025 プログラミングコンテスト 参加規約
date: 2025-07-21T00:00:00 UTC+09:00
permalink: /contests/terms/
redirect_from:
- /contests/terms.html
---
<img src="/img/common/coderdojo-nameplate.webp" loading="lazy" alt="DojoCon Japan Cover Photo"
title="DojoCon Japan Cover Photo" class="mb-4" />
Expand Down
2 changes: 2 additions & 0 deletions _posts/2025-08-02-contest-how-to-apply.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ date: 2025-08-02T01:00:00 UTC+09:00
categories: news
tags: 企画
permalink: /contests/how-to-apply/
redirect_from:
- /contests/how-to-apply.html
---
<style>
.bordered {
Expand Down
5 changes: 5 additions & 0 deletions test-directory-structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

class Parser(HTMLParser):
"""
<h1>Redirecting&hellip;</h1> または
<meta http-equiv="refresh"> を含むファイルを検査の対象から除外する
"""

Expand All @@ -34,6 +35,10 @@ def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None
self.is_redirect = True
break

def handle_data(self, data: str) -> None:
if "Redirecting" in data:
self.is_redirect = True


def is_redirect(path: str) -> bool:
with open(path) as fp:
Expand Down