From ba7a968881083b9d3b3b6ecd65df076e76bcb164 Mon Sep 17 00:00:00 2001
From: Mattia Ippoliti <Ippolitimattia@gmail.com>
Date: Sat, 01 Apr 2023 20:50:08 +0000
Subject: [PATCH] fix: padding for empty title callouts (#308)
---
layouts/index.html | 31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/layouts/index.html b/layouts/index.html
index 73c5979..c7871e9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,19 +1,20 @@
-{{define "head"}}
+<!DOCTYPE html>
+<html lang="{{ .Lang }}">
{{ partial "head.html" . }}
-{{end}}
-{{define "main"}}
-{{$content := replaceRE `a href="\.\.\/(.+%20.+)+"` `$1` .Content}}
-{{$content = replace $content "%20" "-"}}
-{{$content = $content | safeHTML}}
-<!-- Main Page -->
+<body>
+{{partial "search.html" .}}
<div class="singlePage">
- {{partial "darkmode.html" .}}
- {{$content}}
-
- <!-- Contact Info -->
- <div>
- {{partial "footer.html" .}}
- </div>
+ <!-- Begin actual content -->
+ {{partial "header.html" .}}
+ <article>
+ {{partial "toc.html" .}}
+ {{partial "textprocessing.html" . }}
+ {{if $.Site.Data.config.enableRecentNotes}}
+ {{partial "recent.html" . }}
+ {{end}}
+ </article>
+ {{partial "footerIndex.html" .}}
</div>
-{{end}}
+</body>
+</html>
--
Gitblit v1.10.0