Skip to content

Commit

Permalink
Add different layout for pages like about
Browse files Browse the repository at this point in the history
  • Loading branch information
calintat committed Oct 6, 2019
1 parent 6bc3f62 commit 2662c63
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 10 additions & 1 deletion layouts/_default/single.html
Expand Up @@ -2,7 +2,16 @@


<main> <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> <br> <div class="text-justify">{{ .Content }}</div>


Expand Down
11 changes: 11 additions & 0 deletions layouts/page/single.html
@@ -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.