diff --git a/lib/gakubuchi/template.rb b/lib/gakubuchi/template.rb
index <HASH>..<HASH> 100644
--- a/lib/gakubuchi/template.rb
+++ b/lib/gakubuchi/template.rb
@@ -68,7 +68,8 @@ module Gakubuchi
 
     def extract_extname(path)
       extname = path.extname
-      extname.empty? ? extname : "#{extract_extname(path.basename(extname))}#{extname}"
+      extname.empty? || extname == ".html" ?
+        extname : "#{extract_extname(path.basename(extname))}#{extname}"
     end
   end
 end
Fix unexpected extname of localized templates