diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f77a171c1b28663adfe52fce876168b04a04cfb5..8359afe36571b8335afe2f528dc08285e4efce48 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,9 +26,11 @@
- id: remove-tabs
files: \.md$
- repo: https://github.com/reyoung/pre-commit-hooks-jinja-compile.git
- sha: 85ad800cbc9c60a64230d60971aa9576fd57e508
+ sha: 4a369cc72a4a2b8d3813ab8cc17abb5f5b21ef6c
hooks:
- id: convert-jinja2-into-html
+ # The argument means repleace filename from pattern `.*/([^/]*)\.tmpl` to `\1`
+ args: ['--filename_pattern=.*/([^/]*)\.tmpl', '--filename_repl=\1']
- repo: local
hooks:
- id: convert-markdown-into-html
diff --git a/.pre-commit-hooks/convert_markdown_into_html.py b/.pre-commit-hooks/convert_markdown_into_html.py
index acb3d0ad0559b35a6b1f86283c1193c8935c5caa..66f44ef23c5d9a82436dfbe4b6bcdfc4e69ab55a 100644
--- a/.pre-commit-hooks/convert_markdown_into_html.py
+++ b/.pre-commit-hooks/convert_markdown_into_html.py
@@ -18,13 +18,13 @@ HEAD = """
});
-
-
+