Skip to content

Commit

Permalink
move index content out of layouts/ into content/
Browse files Browse the repository at this point in the history
  • Loading branch information
eighthave committed Jul 23, 2020
1 parent b2b39d5 commit 6888273
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion site/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
--> */ -}}
{{ partial "head.html" . }}
{{ partial "nav.html" . }}
{{ partial "landing.html" . }}
{{ .Content }}
{{ partial "footer.html" . }}
2 changes: 1 addition & 1 deletion site/layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
</nav>
{{- $slug := "" -}}
{{- with .File -}}{{ $slug = replace (.TranslationBaseName | lower) " " "_" }}{{ end }}
{{- if not $slug -}}{{ $slug = "index" }}{{ end }}
{{- if or (not $slug) (eq $slug "_index") -}}{{ $slug = "index" }}{{ end }}
<div class="content-section-b">
<div class="container page-{{ $slug }}">

0 comments on commit 6888273

Please sign in to comment.