refactor(layouts): move layout HTML to baseof.html
For better maintainability
This commit is contained in:
+12
-17
@@ -1,24 +1,19 @@
|
||||
{{ define "body_class" }}3-column{{ end }}
|
||||
{{ define "main" }}
|
||||
<div class="container extended flex on-phone--column align-items--flex-start">
|
||||
{{ partialCached "sidebar/left.html" . }}
|
||||
<div class="widget">
|
||||
<h3 class="widget-title">{{ .Title }}</h3>
|
||||
</div>
|
||||
|
||||
<main class="main full-width">
|
||||
<div class="widget">
|
||||
<h3 class="widget-title">{{ .Title }}</h3>
|
||||
</div>
|
||||
<section class="article-list--compact">
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ partial "article-list/compact" . }}
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
<section class="article-list--compact">
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ partial "article-list/compact" . }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{- partial "pagination.html" . -}}
|
||||
|
||||
{{- partial "pagination.html" . -}}
|
||||
|
||||
{{ partialCached "footer/footer" . }}
|
||||
</main>
|
||||
{{ partialCached "footer/footer" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "right-sidebar" }}
|
||||
{{ partialCached "sidebar/right.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user