Jacky Zhao
2021-12-27 612c44d719f1b47b3c7b3fc5b6ffb48ccec33ded
modify obsidian
2 files modified
6 ■■■■ changed files
content/notes/obsidian.md 2 ●●● patch | view | raw | blame | history
layouts/_default/section.html 4 ●●●● patch | view | raw | blame | history
content/notes/obsidian.md
@@ -21,7 +21,7 @@
![Obsidian Settings](/notes/images/obsidian-settings.png)*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!**
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>