Skip to content
Permalink
Browse files

Add different layout for pages like about

  • Loading branch information...
calintat committed Oct 6, 2019
1 parent 6bc3f62 commit 2662c63c6c4d06b548f146941dcbf8081cb5d230
Showing with 21 additions and 1 deletion.
  1. +10 −1 layouts/_default/single.html
  2. +11 −0 layouts/page/single.html
@@ -2,7 +2,16 @@

<main>

{{ partial "list-item" . }}
{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006") | $.Scratch.Set "subtitle" }}
{{ with .Description }} {{ $.Scratch.Set "subtitle" . }} {{ end }}

<div class="item">
<h2>{{ .Title }}</h2>
<h5>{{ $.Scratch.Get "subtitle" }}</h5>
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
{{ end }}
</div>

<br> <div class="text-justify">{{ .Content }}</div>

@@ -0,0 +1,11 @@
{{ partial "header" . }}

<main>

<h2>{{ .Title }}</h2>

<br> <div class="text-justify">{{ .Content }}</div>

</main>

{{ partial "footer.html" . }}

0 comments on commit 2662c63

Please sign in to comment.
You can’t perform that action at this time.