From 5ce40d710c0647c4c94ddf4dc37bb74c30e6b205 Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Tue, 27 Dec 2022 16:44:40 +0100
Subject: [PATCH] fix: parse only html pages

---
 application/source/command.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/application/source/command.go b/application/source/command.go
index aa2efd0..405a53f 100644
--- a/application/source/command.go
+++ b/application/source/command.go
@@ -90,6 +90,12 @@ func (d *Definition) PrepareTemplate(s *xflags.Settings[Definition]) {
 		if info.IsDir() {
 			return nil
 		}
+
+		ext := filepath.Ext(path)
+		if ext != ".html" && ext != ".htm" {
+			return nil
+		}
+
 		return template2.PrepareHtmlFile(path, d.Template.Prepare.Output, storage)
 	})
 
-- 
GitLab