From 8310ac8e8a235c48ec611c746c72d9d086712366 Mon Sep 17 00:00:00 2001 From: Maciej Ziaja Date: Sun, 30 Jul 2023 12:37:42 +0200 Subject: [PATCH 1/3] Enclose within main tag using generated header and footer --- ssb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ssb b/ssb index 9c50cd1..06ab03f 100755 --- a/ssb +++ b/ssb @@ -123,6 +123,7 @@ echo_header_template() email +
' } @@ -130,7 +131,9 @@ echo_header_template() echo_footer_template() { echo \ -'
+' +
+ From 496a83bb4733468fc841a869f1cbde8e98a96a78 Mon Sep 17 00:00:00 2001 From: Maciej Ziaja Date: Sun, 30 Jul 2023 12:38:58 +0200 Subject: [PATCH 2/3] Use footer and header htmls as deps in makefile example in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dbd84c1..584407d 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ generated_files += $(foreach post,$(markdown_posts),$(patsubst $(posts_dir)/%.md compile: $(generated_files) -$(generated_files): $(markdown_pages) $(markdown_posts) +$(generated_files): header.html footer.html $(markdown_pages) $(markdown_posts) ssb -p $(posts_dir) -o $(output_dir) $(markdown_pages) .PHONY: clean From 78c13a08cb999f2f72a2fc16080b73d22fc277dd Mon Sep 17 00:00:00 2001 From: Maciej Ziaja Date: Sun, 30 Jul 2023 12:40:18 +0200 Subject: [PATCH 3/3] Add empty main tag styles to styles template --- ssb | 1 + 1 file changed, 1 insertion(+) diff --git a/ssb b/ssb index 06ab03f..e5186b9 100755 --- a/ssb +++ b/ssb @@ -148,6 +148,7 @@ echo_css_template() 'body { max-width: 40em; margin: auto; padding: 1.5em } header { font-size: 1.2em; } footer { text-align: right; } +main { } nav { } h1 { } h2 { }