forked from nodejh/hugo-theme-mini
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
243 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}" class="anchor">🔗</a></h{{ .Level }}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
<p class="markdown-image"> | ||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} /> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{{ partial "head.html" . }} | ||
<body> | ||
{{ partial "navigation.html" . }} | ||
|
||
<section id="wrapper" class="post"> | ||
<article> | ||
<header> | ||
<h1> | ||
{{ .Title }} | ||
</h1> | ||
<h2 class="headline"> | ||
{{ .Date.Format "Jan 2, 2006 15:04" }} | ||
· {{ if lt 1 .WordCount }}{{ .WordCount }} words{{ else }}{{ .WordCount }} word{{ end }} | ||
· {{ .ReadingTime }} minute read | ||
<span class="tags"> | ||
{{ with .Params.tags }} | ||
{{ if ge (len .) 1 }} | ||
{{ range . }} | ||
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">{{ . }}</a> | ||
{{ end }} | ||
{{ end }} | ||
{{ end}} | ||
</span> | ||
</h2> | ||
</header> | ||
{{ if .Site.Params.enableToc }} | ||
{{ if .TableOfContents }} | ||
<div id="toc"> | ||
{{ .TableOfContents }} | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
<section id="post-body"> | ||
{{ .Content }} | ||
</section> | ||
</article> | ||
|
||
{{ if .Site.Params.enableShare }} | ||
{{ partial "share.html" . }} | ||
{{ end }} | ||
|
||
{{ if .Site.Params.enableDisqus }} | ||
{{ partial "disqus.html" . }} | ||
{{ end }} | ||
|
||
{{ if .Site.Params.showLatestPosts }} | ||
{{ partial "latest-posts.html" . }} | ||
{{ end }} | ||
|
||
{{ partial "footer.html" . }} | ||
</section> | ||
|
||
{{ partial "js.html" . }} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,44 @@ | ||
{{ partial "head.html" . }} | ||
<body> | ||
{{ partial "navigation.html" . }} | ||
{{ define "main" }} | ||
|
||
<section id="wrapper" class="post"> | ||
<article> | ||
<header> | ||
<h1> | ||
{{ .Title }} | ||
</h1> | ||
<h2 class="headline"> | ||
{{ .Date.Format "Jan 2, 2006 15:04" }} | ||
· {{ if lt 1 .WordCount }}{{ .WordCount }} words{{ else }}{{ .WordCount }} word{{ end }} | ||
· {{ .ReadingTime }} minute read | ||
<span class="tags"> | ||
{{ with .Params.tags }} | ||
{{ if ge (len .) 1 }} | ||
{{ range . }} | ||
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">{{ . }}</a> | ||
{{ end }} | ||
{{ end }} | ||
{{ end}} | ||
</span> | ||
</h2> | ||
</header> | ||
{{ if .Site.Params.enableToc }} | ||
{{ if .TableOfContents }} | ||
<div id="toc"> | ||
{{ .TableOfContents }} | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
<section id="post-body"> | ||
{{ .Content }} | ||
</section> | ||
</article> | ||
<section id="single"> | ||
<h1 class="title">{{ .Title }}</h1> | ||
|
||
{{ if .Site.Params.enableShare }} | ||
{{ partial "share.html" . }} | ||
{{ end }} | ||
<div class="tip"> | ||
<span> | ||
{{ .Date.Format "Jan 2, 2006 15:04" }} | ||
</span> | ||
<span class="split"> | ||
· | ||
</span> | ||
<span> | ||
{{ if lt 1 .WordCount }} | ||
{{ .WordCount }} words | ||
{{ else }} | ||
{{ .WordCount }} word | ||
{{ end }} | ||
</span> | ||
<span class="split"> | ||
· | ||
</span> | ||
<span> | ||
{{ .ReadingTime }} minute read | ||
</span> | ||
</div> | ||
|
||
{{ if .Site.Params.enableDisqus }} | ||
{{ partial "disqus.html" . }} | ||
{{ end }} | ||
<div class="content"> | ||
{{ .Content }} | ||
</div> | ||
|
||
{{ if .Site.Params.showLatestPosts }} | ||
{{ partial "latest-posts.html" . }} | ||
{{ with .Params.tags }} | ||
<div class="tags"> | ||
{{ range . }} | ||
<a href="{{ "tags/" | absURL }}{{ . | urlize }}">{{ . }}</a> | ||
{{ end }} | ||
</div> | ||
{{ end}} | ||
|
||
{{ partial "comment.html" . }} | ||
</section> | ||
|
||
{{ partial "footer.html" . }} | ||
</section> | ||
{{ end }} | ||
|
||
{{ partial "js.html" . }} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div id="comment"> | ||
<!-- https://gohugo.io/templates/internal/#use-the-disqus-template --> | ||
{{ template "_internal/disqus.html" . }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.