Welcome to Markbind
This is a minimalistic template. To learn more about authoring contents in Markbind, visit the User Guide.
From b868d0267834c120123dc4757ecfcd439462c83e Mon Sep 17 00:00:00 2001
From: Parcly Taxel
Date: Sun, 1 Mar 2020 01:20:48 +0800
Subject: [PATCH 2/2] Reset page sections upon collection
---
src/Page.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Page.js b/src/Page.js
index c1713c3e21..c3cc4705d7 100644
--- a/src/Page.js
+++ b/src/Page.js
@@ -763,6 +763,7 @@ class Page {
}
collectAllPageSections() {
+ this.pageSectionsHtml = {}; // This resets the pageSectionsHTML whenever we collect.
this.collectPageSection('header');
this.collectPageSection(`#${SITE_NAV_ID}`);
this.collectPageSection('footer');