From c20da99a9860fa5cab9fdbcf84d2cec8f50ed2d9 Mon Sep 17 00:00:00 2001 From: straightupjac Date: Tue, 3 May 2022 01:51:15 -0400 Subject: [PATCH] fix github info --- .github/workflows/deploy.yaml | 2 ++ config.toml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6a223674..ee51d3ee 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -10,6 +10,8 @@ jobs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Build Link Index uses: jackyzha0/hugo-obsidian@v2.12 diff --git a/config.toml b/config.toml index 5c4dfcb4..5efa9f34 100644 --- a/config.toml +++ b/config.toml @@ -28,3 +28,6 @@ enableGitInfo = true lineNumbersInTable = true style = "dracula" tabWidth = 4 + [frontmatter] + lastmod = ["lastmod", ":git", "date", "publishDate"] + publishDate = ["publishDate", "date"] \ No newline at end of file