web/themes/hugo-serif-theme/layouts/index.html

74 строки
2.8 KiB
HTML
Исходник Обычный вид История

{{ define "title" }}SVQtech{{ end}}
2020-02-14 01:24:23 +03:00
{{ define "header_css" }}{{ end }}
{{ define "body_classes" }}page-home{{ end }}
{{ define "header_classes" }}header-transparent{{ end }}
{{ define "meta_tags" }}
<meta name="description" content="{{ .Site.Params.homepage_meta_tags.meta_description }}" />
<meta property="og:title" content="{{ .Site.Params.homepage_meta_tags.meta_og_title }}" />
<meta property="og:type" content="{{ .Site.Params.homepage_meta_tags.meta_og_type }}" />
<meta property="og:url" content="{{ .Site.Params.homepage_meta_tags.meta_og_url }}" />
<meta property="og:image" content="{{ .Site.Params.homepage_meta_tags.meta_og_image }}" />
<meta property="og:description" content="{{ .Site.Params.homepage_meta_tags.meta_og_description }}" />
<meta name="twitter:card" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_card }}" />
<meta name="twitter:site" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_site }}" />
<meta name="twitter:creator" content="{{ .Site.Params.homepage_meta_tags.meta_twitter_creator }}" />
{{ end }}
{{ define "main" }}
<div class="intro">
<div class="container">
<div class="row justify-content-start">
<div class="col-12 col-md-7 col-lg-6 order-2 order-md-1">
{{ .Content }}
{{ partial "call.html" . }}
</div>
<div class="col-12 col-md-5 col-lg-6 order-1 order-md-2 position-relative">
<img class="intro-image-flying" src="{{ .Params.intro_image | relURL }}" />
</div>
</div>
{{ partial "evento.html" . }}
2020-02-14 01:24:23 +03:00
</div>
</div>
{{ $services := where (where .Site.RegularPages "Type" "services") ".Params.featured" true }}
{{if gt (len $services) 0}}
<div class="container pt-6 pb-md-12">
<div class="row justify-content-start">
{{ $services := where (where .Site.RegularPages "Type" "services") ".Params.featured" true }}
{{ range first 6 (sort $services ".Params.weight") }}
<div class="col-12 col-md-4 mb-1">
{{ .Render "summary" }}
</div>
{{ end }}
<div class="col-12 text-center">
<a class="button button-primary" href="{{ .Site.BaseURL }}services">View All Services</a>
</div>
</div>
</div>
{{end}}
<div class="strip strip-grey">
<div class="container pt-6 pb-6 pt-md-12 pb-md-12">
<div class="row justify-content-center">
{{ range .Site.Data.features }}
<div class="col-12 col-md-6 col-lg-4 mb-2">
<div class="feature">
{{ if .image }}
<div class="feature-image"><img alt="{{ .title }} logo" src="{{ .image | relURL }}" /></div>
{{ end }}
<h2 class="feature-title">{{ .title }}</h2>
<div class="feature-content">
<p>{{ .description }}</p>
</div>
</div>
</div>
{{end}}
</div>
</div>
</div>
{{ end }}
{{ define "footer_js" }}
{{ end }}