Jacky Zhao
2021-12-27 e1911a58fff3b96754b3b49837ac2d4dd4fcf5aa
enable last modified info
5 files modified
38 ■■■■■ changed files
.github/workflows/deploy.yaml 2 ●●● patch | view | raw | blame | history
Makefile 2 ●●● patch | view | raw | blame | history
assets/base.scss 29 ●●●●● patch | view | raw | blame | history
config.toml 1 ●●●● patch | view | raw | blame | history
layouts/_default/single.html 4 ●●●● patch | view | raw | blame | history
.github/workflows/deploy.yaml
@@ -12,7 +12,7 @@
      - uses: actions/checkout@v2
      - name: Build Link Index
        uses: jackyzha0/hugo-obsidian@v2.5
        uses: jackyzha0/hugo-obsidian@v2.6
        with:
          index: true
          input: content
Makefile
@@ -4,4 +4,4 @@
    @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
serve: ## serve
    hugo-obsidian -input=content -output=data -index && hugo server
    hugo-obsidian -input=content -output=data -index -root=. && hugo server
assets/base.scss
@@ -108,18 +108,25 @@
  margin: 0.5em 0;
}
article a {
  font-family: Source Sans Pro;
  font-weight: 600;
article {
 & > .meta {
   margin: -1.5em 0 1em 0;
   opacity: 0.7;
 }
  // internal link
  &[href^="./"], &[href^="/"] {
    text-decoration: none;
    background-color: transparentize(#8f9fa9, 0.85);
    padding: 0 0.1em;
    margin: auto -0.1em;
    border-radius: 3px;
  }
 & a {
   font-family: Source Sans Pro;
   font-weight: 600;
   // internal link
   &[href^="./"], &[href^="/"] {
     text-decoration: none;
     background-color: transparentize(#8f9fa9, 0.85);
     padding: 0 0.1em;
     margin: auto -0.1em;
     border-radius: 3px;
   }
 }
}
.backlinks a {
config.toml
@@ -9,6 +9,7 @@
    "/content/private/*",
]
summaryLength = 35
enableGitInfo = true
[markup]
    [markup.tableOfContents]
layouts/_default/single.html
@@ -14,6 +14,9 @@
  </header>
  <article>
      {{if .Title}}<h1>{{ .Title }}</h1>{{end}}
      <p class="meta">
          Last updated {{ .Lastmod.Format "January 2, 2006" }}
      </p>
      {{if $.Site.Data.config.enableToc}}
      <aside class="mainTOC">
          <h3>Table of Contents</h3>
@@ -21,6 +24,7 @@
      </aside>
      {{end}}
      {{.Content}}
    </article>
    {{partial "footer.html" .}}
</div>