enable last modified info
This commit is contained in:
		
							parent
							
								
									b4e2697116
								
							
						
					
					
						commit
						e1911a58ff
					
				
					 5 changed files with 25 additions and 13 deletions
				
			
		
							
								
								
									
										2
									
								
								.github/workflows/deploy.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/deploy.yaml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -12,7 +12,7 @@ jobs:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Build Link Index
 | 
					      - name: Build Link Index
 | 
				
			||||||
        uses: jackyzha0/hugo-obsidian@v2.5
 | 
					        uses: jackyzha0/hugo-obsidian@v2.6
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          index: true
 | 
					          index: true
 | 
				
			||||||
          input: content
 | 
					          input: content
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
					@ -4,4 +4,4 @@ help: ## Show all Makefile targets
 | 
				
			||||||
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
 | 
						@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
serve: ## serve
 | 
					serve: ## serve
 | 
				
			||||||
	hugo-obsidian -input=content -output=data -index && hugo server	
 | 
						hugo-obsidian -input=content -output=data -index -root=. && hugo server
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -108,18 +108,25 @@ td, th {
 | 
				
			||||||
  margin: 0.5em 0;
 | 
					  margin: 0.5em 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
article a {
 | 
					article {
 | 
				
			||||||
  font-family: Source Sans Pro;
 | 
					 & > .meta {
 | 
				
			||||||
  font-weight: 600;
 | 
					   margin: -1.5em 0 1em 0;
 | 
				
			||||||
 | 
					   opacity: 0.7;
 | 
				
			||||||
 | 
					 }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // internal link
 | 
					 & a {
 | 
				
			||||||
  &[href^="./"], &[href^="/"] {
 | 
					   font-family: Source Sans Pro;
 | 
				
			||||||
    text-decoration: none;
 | 
					   font-weight: 600;
 | 
				
			||||||
    background-color: transparentize(#8f9fa9, 0.85);
 | 
					
 | 
				
			||||||
    padding: 0 0.1em;
 | 
					   // internal link
 | 
				
			||||||
    margin: auto -0.1em;
 | 
					   &[href^="./"], &[href^="/"] {
 | 
				
			||||||
    border-radius: 3px;
 | 
					     text-decoration: none;
 | 
				
			||||||
  }
 | 
					     background-color: transparentize(#8f9fa9, 0.85);
 | 
				
			||||||
 | 
					     padding: 0 0.1em;
 | 
				
			||||||
 | 
					     margin: auto -0.1em;
 | 
				
			||||||
 | 
					     border-radius: 3px;
 | 
				
			||||||
 | 
					   }
 | 
				
			||||||
 | 
					 }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.backlinks a {
 | 
					.backlinks a {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,6 +9,7 @@ ignoreFiles = [
 | 
				
			||||||
    "/content/private/*",
 | 
					    "/content/private/*",
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
summaryLength = 35
 | 
					summaryLength = 35
 | 
				
			||||||
 | 
					enableGitInfo = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[markup]
 | 
					[markup]
 | 
				
			||||||
    [markup.tableOfContents]
 | 
					    [markup.tableOfContents]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,6 +14,9 @@
 | 
				
			||||||
  </header>
 | 
					  </header>
 | 
				
			||||||
  <article>
 | 
					  <article>
 | 
				
			||||||
      {{if .Title}}<h1>{{ .Title }}</h1>{{end}}
 | 
					      {{if .Title}}<h1>{{ .Title }}</h1>{{end}}
 | 
				
			||||||
 | 
					      <p class="meta">
 | 
				
			||||||
 | 
					          Last updated {{ .Lastmod.Format "January 2, 2006" }}
 | 
				
			||||||
 | 
					      </p>
 | 
				
			||||||
      {{if $.Site.Data.config.enableToc}}
 | 
					      {{if $.Site.Data.config.enableToc}}
 | 
				
			||||||
      <aside class="mainTOC">
 | 
					      <aside class="mainTOC">
 | 
				
			||||||
          <h3>Table of Contents</h3>
 | 
					          <h3>Table of Contents</h3>
 | 
				
			||||||
| 
						 | 
					@ -21,6 +24,7 @@
 | 
				
			||||||
      </aside>
 | 
					      </aside>
 | 
				
			||||||
      {{end}}
 | 
					      {{end}}
 | 
				
			||||||
      {{.Content}}
 | 
					      {{.Content}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    </article>
 | 
					    </article>
 | 
				
			||||||
    {{partial "footer.html" .}}
 | 
					    {{partial "footer.html" .}}
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue