Layouts reorganisation, moving images, new layout for single app!
This commit is contained in:
parent
9c4d84b35b
commit
ff89fb94a2
21 changed files with 222 additions and 22 deletions
44
layouts/_default/app.html
Normal file
44
layouts/_default/app.html
Normal file
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{ partial "section-app-header.html" (dict "Data" .Params.SectionHeader "Site" .Site) }}
|
||||
<br>
|
||||
<!-- About section -->
|
||||
<section class="center content-center padding-container">
|
||||
<h1>{{ .Params.About.Title }}</h1>
|
||||
<p>{{ .Params.About.Content | markdownify }}</p>
|
||||
</section>
|
||||
<!--<img class="center" src="{{ .Params.About.Screenshot | safeHTMLAttr }}"/>-->
|
||||
<!-- other sections -->
|
||||
{{ range .Params.Sections }}
|
||||
<section class="center content-center columns-container padding-container">
|
||||
{{ if eq .Type "text|image" }}
|
||||
<div class="column col2 text-right vertical-center">
|
||||
{{ .Content | markdownify }}
|
||||
</div>
|
||||
<div class="column col2">
|
||||
<img class="vertical-center fill-width" src="/img/{{ .Image }}.png"/>
|
||||
</div>
|
||||
{{ else if eq .Type "image|text" }}
|
||||
<div class="column col2">
|
||||
<img class="vertical-center fill-width" src="/img/{{ .Image }}.png"/>
|
||||
</div>
|
||||
<div class="column col2 text-left vertical-center">
|
||||
{{ .Content | markdownify }}
|
||||
</div>
|
||||
{{ else if eq .Type "text-image" }}
|
||||
<div class="column text-center">
|
||||
{{ .Content | markdownify }}
|
||||
<img src="/img/{{ .Image }}"/>
|
||||
</div>
|
||||
{{ end }}
|
||||
</section>
|
||||
<br>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue