82 lines
3.3 KiB
HTML
82 lines
3.3 KiB
HTML
{{ define "main" }}
|
|
<section class="section container-fluid mt-n3 pb-3">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-12 text-center">
|
|
<h1>{{ .Title | safeHTML }}</h1>
|
|
</div>
|
|
<div class="col-lg-9 col-xl-8 text-center">
|
|
<p class="lead">{{ .Params.lead | safeHTML }}</p>
|
|
{{/* <a class="btn btn-primary btn-cta rounded-pill btn-lg my-3" href="/docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}guides/example-guide/" role="button">{{ i18n "get_started" }}</a> */}}
|
|
{{/* {{ .Content }} */}}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ define "sidebar-prefooter" }}
|
|
{{ if site.Params.doks.backgroundDots -}}
|
|
<div class="d-flex justify-content-start">
|
|
<div class="bg-dots"></div>
|
|
</div>
|
|
{{ end -}}
|
|
<section class="section section-md section-features">
|
|
<div class="container">
|
|
<div class="row justify-content-center text-center">
|
|
{{ range $service := index site.Data.services }}
|
|
{{ $defaultValues := index site.Data.portails.services $service.name }}
|
|
<div class="col-lg-5">
|
|
<h2 class="h4">
|
|
{{- $icon := $service.icon | default $defaultValues.icon -}}
|
|
{{- partial "inline-svg" $icon -}}
|
|
{{- $service.title | default $defaultValues.title -}}
|
|
{{- partial "service/title-after.html" $service -}}
|
|
</h2>
|
|
<p>{{ $service.description | default $defaultValues.description }}</p>
|
|
<div class="btn-group" role="group" aria-label="Basic outlined example">
|
|
<a href="{{ $service.doc | default $defaultValues.doc }}" class="btn btn-outline-primary">Guide</a>
|
|
{{ $url := "" }}
|
|
{{ if $service.subdomain }}
|
|
{{ $url = print "https://" $service.subdomain "." site.Params.domain "/" }}
|
|
{{ else if $service.link }}
|
|
{{ $url = print $service.link "/" }}
|
|
{{ else }}
|
|
{{ $url = print "https://" $defaultValues.subdomain "." site.Params.domain "/" }}
|
|
{{ end }}
|
|
<a
|
|
href="{{ $url }}{{ if $service.path }}{{ $service.path }}{{ else if $defaultValues.path }}{{ $defaultValues.path }}{{ end }}"
|
|
class="btn btn-primary"
|
|
>
|
|
Accéder au service
|
|
</a>
|
|
</div>
|
|
{{ if site.Params.poweredBy }}
|
|
<p class="text-muted"><small>Propulsé par <a href="{{ $defaultValues.tool.link }}">{{ $defaultValues.tool.name }}</a></small></p>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<hr>
|
|
<section class="section container-fluid mt-n3 pb-3">
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-9 col-xl-8 text-center">
|
|
{{ .Content }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ define "sidebar-footer" }}
|
|
{{ if site.Params.doks.sectionFooter -}}
|
|
<section class="section section-md container-fluid bg-light">
|
|
<div class="row justify-content-center text-center">
|
|
<div class="col-lg-7">
|
|
<h2 class="mt-2">Start building with Doks today</h2>
|
|
<a class="btn btn-primary rounded-pill px-4 my-2" href="/docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}prologue/introduction/" role="button">{{ i18n "get-started" }}</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{ end -}}
|
|
{{ end }}
|