From 612c44d719f1b47b3c7b3fc5b6ffb48ccec33ded Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 27 Dec 2021 22:34:53 +0000
Subject: [PATCH] modify obsidian
---
layouts/_default/section.html | 4 ++--
content/notes/obsidian.md | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/content/notes/obsidian.md b/content/notes/obsidian.md
index d37ba6c..ff2c982 100644
--- a/content/notes/obsidian.md
+++ b/content/notes/obsidian.md
@@ -21,7 +21,7 @@
*Obsidian Settings*
## Templates
-Inserting front matter everytime you want to create a new Note gets really annoying really quickly. Luckily, Obsidian supports templates which makes inserting new content really easily.
+Inserting front matter everytime you want to create a new Note gets annoying really quickly. Luckily, Obsidian supports templates which makes inserting new content really easily.
**If you decide to overwrite the `/content` folder completely, don't remove the `/content/templates` folder!**
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index d6e24b4..8845fc5 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -15,7 +15,7 @@
<article>
<h1>All {{.Title}}</h1>
<ul class="section-ul">
- {{- range .Pages -}}
+ {{- range .Pages.ByLastmod -}}
<li class="section-li">
<div class="section">
<div class="desc">
@@ -23,7 +23,7 @@
<p>{{- .Summary -}}{{if .Truncated}}...{{end}}</p>
</div>
<p class="meta">
- {{ .ReadingTime }} minute read
+ {{ .ReadingTime }} minute read, Last updated {{ .Lastmod.Format "January 2, 2006" }}
</p>
</div>
</li>
--
Gitblit v1.10.0