CHANGE from config to md files for index page
This commit is contained in:
parent
80feba5acc
commit
db7ec5795f
12 changed files with 37 additions and 54 deletions
|
@ -1,9 +1,9 @@
|
|||
{{- $contact := .contact }}
|
||||
{{- $id := "contact"}}
|
||||
{{if $contact.id}}
|
||||
{{- $id := $contact.id}}
|
||||
{{- $id = $contact.id}}
|
||||
{{else if .id}}
|
||||
{{- $id := .id }}
|
||||
{{- $id = .id }}
|
||||
{{end}}
|
||||
<div id="{{ $id }}" class="section section-highlight">
|
||||
<div class="section-content contact">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{- $footer := .Site.Params.footer }}
|
||||
{{- $social := index $footer "social" }}
|
||||
{{- $links := index $footer "links" }}
|
||||
{{- $footer := .Site.Params.footer }}
|
||||
{{- $social := index $footer "social" }}
|
||||
{{- $links := index $footer "links" }}
|
||||
{{ $template := resources.Get "scss/footer.scss" }}
|
||||
{{ if $template }}
|
||||
{{ $footer := $template | resources.ExecuteAsTemplate "css/footer.scss" . | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{{- $hero := .hero }}
|
||||
{{- $content := .content }}
|
||||
{{- $color := .color }}
|
||||
{{- $odd := .odd }}
|
||||
{{- $id := "hero"}}
|
||||
|
@ -19,7 +20,7 @@
|
|||
<h1 class="content-title">{{ $hero.title }}</h1>
|
||||
<div class="divider"></div>
|
||||
</div>
|
||||
<p>{{ $hero.subtitle }}</p>
|
||||
<p>{{ $content }}</p>
|
||||
{{if $hero.button.visible}}
|
||||
<a class="hero-button" href="{{ $hero.button.url }}">{{ $hero.button.text }}</a>
|
||||
{{end}}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{- $links := .links }}
|
||||
{{- $odd := .odd }}
|
||||
{{- $odd := .odd }}
|
||||
{{- $defaultimage := .defaultimage}}
|
||||
{{- $id := "links"}}
|
||||
{{if $links.id}}
|
||||
{{- $id := $links.id}}
|
||||
{{- $id = $links.id}}
|
||||
{{else if .id}}
|
||||
{{- $id := .id }}
|
||||
{{- $id = .id }}
|
||||
{{end}}
|
||||
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
|
||||
<div class="section-content">
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{{- $logos := .logos }}
|
||||
{{- $odd := .odd }}
|
||||
{{- $odd := .odd }}
|
||||
{{- $id := "logos"}}
|
||||
{{if $logos.id}}
|
||||
{{- $id := $logos.id}}
|
||||
{{- $id = $logos.id}}
|
||||
{{else if .id}}
|
||||
{{- $id := .id }}
|
||||
{{- $id = .id }}
|
||||
{{end}}
|
||||
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
|
||||
<div class="section-content funding">
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
{{- $odd := .odd }}
|
||||
{{- $id := "posts"}}
|
||||
{{if $posts.id}}
|
||||
{{- $id := $posts.id}}
|
||||
{{- $id = $posts.id}}
|
||||
{{else if .id}}
|
||||
{{- $id := .id }}
|
||||
{{- $id = .id }}
|
||||
{{end}}
|
||||
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
|
||||
<div class="section-content posts">
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
{{- $odd := .odd }}
|
||||
{{- $id := "service"}}
|
||||
{{if $service.id}}
|
||||
{{- $id := $service.id}}
|
||||
{{- $id = $service.id}}
|
||||
{{else if .id}}
|
||||
{{- $id := .id }}
|
||||
{{- $id = .id }}
|
||||
{{end}}
|
||||
<div id="{{$id}}" class="section {{if eq $odd 0}} section-even {{end}} row">
|
||||
<div class="section-content services">
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
{{ $length := len $slider.images }}
|
||||
{{- $id := "slider"}}
|
||||
{{if $slider.id}}
|
||||
{{- $id := $slider.id}}
|
||||
{{- $id = $slider.id}}
|
||||
{{else if .id}}
|
||||
{{- $id := .id }}
|
||||
{{- $id = .id }}
|
||||
{{end}}
|
||||
{{ $template := resources.Get "scss/slider.scss" }}
|
||||
{{ if $template }}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
{{- $odd := .odd }}
|
||||
{{- $id := "team"}}
|
||||
{{if $team.id}}
|
||||
{{- $id := $team.id}}
|
||||
{{- $id = $team.id}}
|
||||
{{else if .id}}
|
||||
{{- $id := .id }}
|
||||
{{- $id = .id }}
|
||||
{{end}}
|
||||
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
|
||||
<div class="section-content team">
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
{{- $odd := .odd }}
|
||||
{{- $id := "video"}}
|
||||
{{if $video.id}}
|
||||
{{- $id := $video.id}}
|
||||
{{- $id = $video.id}}
|
||||
{{else if .id}}
|
||||
{{- $id := .id }}
|
||||
{{- $id = .id }}
|
||||
{{end}}
|
||||
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
|
||||
<div class="section-content">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue