diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/single.html | 20 | ||||
| -rw-r--r-- | layouts/blog/single.html | 9 | ||||
| -rw-r--r-- | layouts/guide/single.html | 14 |
3 files changed, 23 insertions, 20 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 27f3c24..366e181 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,23 +1,3 @@ {{ define "main" }} -{{ with .Params.icon }} -<img src="{{ . }}" class="icon"> -{{ end }} -{{ if .Params.deprecated }} -<br> -<blockquote class="deprecated"> - <p>I don't like this guide. I just leave it in case, avoid using it.</p> -</blockquote> -{{ end }} -{{ if .Params.table }} -<h2>Table of Contents</h2> -{{.TableOfContents}} -{{ end }} {{- .Content }} -{{ with .Params.copied }} -<p style="text-align: right;"> - <small> - <i>This article is copied from <a href="{{ index . 1 }}">{{ index . 0}}</a></i> - </small> -</p> -{{ end }} {{ end }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..926afb4 --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,9 @@ +{{ define "main" }} +{{ if .Params.deprecated }} +<br> +<blockquote class="deprecated"> + <p>I don't like this article anymore, consider it deprecated.</p> +</blockquote> +{{ end }} +{{- .Content }} +{{ end }} diff --git a/layouts/guide/single.html b/layouts/guide/single.html new file mode 100644 index 0000000..f1eca27 --- /dev/null +++ b/layouts/guide/single.html @@ -0,0 +1,14 @@ +{{ define "main" }} +{{ with .Params.icon }} +<img src="{{ . }}" class="icon"> +{{ end }} +{{ if .Params.deprecated }} +<br> +<blockquote class="deprecated"> + <p>I don't like this guide. I just leave it in case, avoid using it.</p> +</blockquote> +{{ end }} +<h2>Table of Contents</h2> +{{ .TableOfContents }} +{{- .Content }} +{{ end }} |
