Update: Products

This commit is contained in:
2025-12-13 11:17:30 +01:00
parent cb55973d05
commit 72d917f6ef
12 changed files with 518 additions and 133 deletions

View File

@@ -171,46 +171,4 @@
{{ end }}
{{"<!-- download -->"| safeHTML}}
{{"<!-- pricing -->"| safeHTML}}
{{ with .Params.pricing }}
{{ if .enable }}
<section class="section section-lg-bottom">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
{{ with site.GetPage (string .section) }}
<p class="subtitle" data-aos="fade-up">{{ .Params.pricing.subtitle }}</p>
<h2 class="section-title" data-aos="fade-up" data-aos-delay="100">{{ .Params.pricing.title }}</h2>
{{ end }}
</div>
{{$show_items:= .show_items}}
{{ with site.GetPage (string .section) }}
{{ range $index, $element:= first ($show_items | default 3) .Params.pricing.pricing_table }}
{{ $delay := mul $index 200}}
<div class="col-lg-4 col-md-6 mb-lg-0 mb-4" data-aos="fade-up" data-aos-delay="{{$delay}}">
<div class="pricing-table position-relative text-center px-4 py-5 rounded-lg shadow transition bg-white">
<span
class="badge badge-pill badge-light fw-medium mb-3 py-1 rounded-4 px-4 mb-4 d-inline-block text-primary">{{
.title }}</span>
<div class="h1 text-dark">{{ .price }}<span class="paragraph text-lowercase"> / {{ .unit }}</span></div>
<h3 class="h5 mb-4 fw-normal text-color">{{ .description }}</h3>
<hr>
<ul class="list-unstyled my-4">
{{ range .services }}
<li class="my-3">{{ . }}</li>
{{ end }}
</ul>
<a href="{{ .link | safeURL }}" class="btn btn-outline-primary">Select Plan</a>
</div>
</div>
{{ end }}
{{ end }}
</div>
</div>
</section>
{{ end }}
{{"<!-- pricing -->"| safeHTML}}
{{ end }}
{{ end }}

View File

@@ -52,9 +52,4 @@
</div>
</div>
{{" <!-- copyright part end -->" | safeHTML }}
</footer>
{{ "<!-- Google Map API -->" | safeHTML }}
{{ with site.Params.map.gmap_api }}
<script src="{{ . | safeURL }}"></script>
{{ end }}
</footer>

View File

@@ -10,46 +10,18 @@
<!-- favicon -->
{{ partialCached "favicon" .}}
<!-- manifest -->
{{ partialCached "manifest" . }}
<!-- site verifications -->
{{ partialCached "site-verifications.html" . }}
<!-- opengraph and twitter card -->
{{ partial "basic-seo.html" . }}
<!-- custom script -->
{{ partialCached "custom-script.html" . }}
<!-- google analytics -->
<!-- {{ template "_internal/google_analytics.html" . }} -->
<!-- google tag manager -->
<!-- {{ partialCached "gtm.html" . }} -->
<!-- matomo analytics -->
<!-- {{ partialCached "matomo-analytics.html" . }} -->
<!-- Baidu analytics -->
<!-- {{ partialCached "baidu-analytics.html" . }} -->
<!-- Plausible Analytics -->
<!-- {{ partialCached "plausible-analytics.html" . }} -->
<!-- Counter Analytics -->
<!-- {{ partialCached "counter-analytics.html" . }} -->
<!-- Crisp Chat -->
{{ partialCached "crisp-chat.html" . }}

View File

@@ -37,17 +37,16 @@
{{ $styles = $styles | append (resources.Get .link) }}
{{ end }}
{{ end }}
{{ $styles := $styles | append (resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS) }}
{{ $styles := $styles | resources.Concat "/css/style.css" }}
{{ $styles = $styles | append (resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . | toCSS) }}
{{ $styles = $styles | resources.Concat "/css/style.css" }}
<!-- Purge CSS in Production -->
{{ if and hugo.IsProduction site.Params.purge_css }}
{{ $styles = $styles | css.PostCSS | fingerprint "sha256" }}
{{ $styles = $styles | resources.PostProcess }}
{{ $styles = $styles | css.PostCSS }}
{{ end }}
{{ if hugo.IsProduction }}
{{ $styles = $styles | minify | fingerprint "sha256" }}
{{ end }}
<!-- <link rel="stylesheet" href="{{ $styles.RelPermalink }}" /> -->
<style type="text/css">{{$styles.Content | safeCSS}}</style>
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="all" />