moved homepage from folder to content root

This commit is contained in:
somrat sorkar 2023-10-01 10:37:45 +06:00
parent 39e487943d
commit 957dd39565
6 changed files with 150 additions and 153 deletions

View File

@ -59,7 +59,7 @@ main {
@apply prose-p:text-base prose-p:text-text prose-p:dark:text-darkmode-text; @apply prose-p:text-base prose-p:text-text prose-p:dark:text-darkmode-text;
@apply prose-blockquote:rounded-lg prose-blockquote:border prose-blockquote:border-l-[10px] prose-blockquote:border-primary prose-blockquote:bg-theme-light prose-blockquote:px-8 prose-blockquote:py-10 prose-blockquote:font-secondary prose-blockquote:text-2xl prose-blockquote:not-italic prose-blockquote:text-dark prose-blockquote:dark:border-darkmode-primary prose-blockquote:dark:bg-darkmode-theme-light prose-blockquote:dark:text-darkmode-light; @apply prose-blockquote:rounded-lg prose-blockquote:border prose-blockquote:border-l-[10px] prose-blockquote:border-primary prose-blockquote:bg-theme-light prose-blockquote:px-8 prose-blockquote:py-10 prose-blockquote:font-secondary prose-blockquote:text-2xl prose-blockquote:not-italic prose-blockquote:text-dark prose-blockquote:dark:border-darkmode-primary prose-blockquote:dark:bg-darkmode-theme-light prose-blockquote:dark:text-darkmode-light;
@apply prose-pre:rounded-lg prose-pre:bg-theme-light prose-pre:dark:bg-darkmode-theme-light; @apply prose-pre:rounded-lg prose-pre:bg-theme-light prose-pre:dark:bg-darkmode-theme-light;
@apply prose-code:px-1; @apply prose-code:px-1 prose-code:dark:text-darkmode-light;
@apply prose-strong:text-dark prose-strong:dark:text-darkmode-text; @apply prose-strong:text-dark prose-strong:dark:text-darkmode-text;
@apply prose-a:text-text prose-a:underline hover:prose-a:text-primary prose-a:dark:text-darkmode-text hover:prose-a:dark:text-darkmode-primary; @apply prose-a:text-text prose-a:underline hover:prose-a:text-primary prose-a:dark:text-darkmode-text hover:prose-a:dark:text-darkmode-primary;
@apply prose-li:text-text prose-li:dark:text-darkmode-text; @apply prose-li:text-text prose-li:dark:text-darkmode-text;

View File

@ -3,26 +3,27 @@ module hugoplate.netlify.app
go 1.20 go 1.20
require ( require (
github.com/gethugothemes/hugo-modules/accordion v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/accordion v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/adsense v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/images v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/images v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/modal v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/modal v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/pwa v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/search v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/search v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/tab v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/tab v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20230913031841-c3e6f1eb8b7b // indirect github.com/gethugothemes/hugo-modules/videos v0.0.0-20231001043352-2e720c5b7e8b // indirect
github.com/zeon-studio/hugoplate v0.0.0-20230919033707-39e487943d6d // indirect
) )

View File

@ -1,142 +1,139 @@
{{ define "main" }} {{ define "main" }}
{{ with site.GetPage "homepage" }} <!-- Banner -->
<!-- Banner --> {{ with .Params.banner }}
{{ with .Params.banner }} <section class="section pt-14">
<section class="section pt-14"> <div class="container">
<div class="container"> <div class="row justify-center">
<div class="row justify-center"> <div class="lg:col-7 mb-8 text-center">
<div class="lg:col-7 mb-8 text-center"> <h1 class="mb-4">
<h1 class="mb-4"> {{ .title | markdownify }}
{{ .title | markdownify }} </h1>
</h1> <p class="mb-8">
<p class="mb-8"> {{ .content | markdownify }}
{{ .content | markdownify }} </p>
</p> {{ with .button }}
{{ with .button }} {{ if .enable }}
{{ if .enable }} <a class="btn btn-primary" href="{{ .link | absURL }}">
<a class="btn btn-primary" href="{{ .link | absURL }}"> {{ .label }}
{{ .label }} <i class="fa fa-arrow-right pl-2"></i>
<i class="fa fa-arrow-right pl-2"></i> </a>
</a>
{{ end }}
{{ end }} {{ end }}
{{ end }}
</div>
<div class="col-12">
{{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto" "Size" "800x") }}
</div>
</div>
</div>
</section>
{{ end }}
<!-- /Banner -->
<!-- Features -->
{{ range $i, $e:= .Params.features }}
<section class="section-sm {{ if (modBool $i 2) }}bg-gradient{{ end }}">
<div class="container">
<div class="row items-center justify-between">
<div
class="mb:md-0 {{ if not (modBool $i 2) }}
md:order-2
{{ end }} md:col-5 mb-6">
{{ partial "image" (dict "Src" .image "Alt" "feature image") }}
</div>
<div
class="{{ if not (modBool $i 2) }}
md:order-1
{{ end }} md:col-7 lg:col-6">
<h2 class="mb-4">
{{ .title | markdownify }}
</h2>
<p class="mb-8 text-lg">
{{ .content | markdownify }}
</p>
<ul>
{{ range .bulletpoints }}
<li class="relative mb-4 pl-6">
<i class="fa fa-check absolute left-0 top-1.5"></i>
{{ . | markdownify }}
</li>
{{ end }}
</ul>
{{ with .button }}
{{ if .enable }}
<a class="btn btn-primary mt-6" href="{{ .link | absURL }}">
{{ .label }}
<i class="fa fa-arrow-right pl-2"></i>
</a>
{{ end }}
{{ end }}
</div>
</div>
</div>
</section>
{{ end }}
<!-- /Features -->
<!-- Testimonials -->
{{ with site.GetPage "sections/testimonial" }}
{{ if .Params.enable }}
<section class="section">
<div class="container">
<div class="row">
<div class="md:col-10 lg:col-8 xl:col-6 mx-auto mb-12 text-center">
<h2 class="mb-4">
{{ .Title | markdownify }}
</h2>
<p>
{{ .Params.description | markdownify }}
</p>
</div> </div>
<div class="col-12"> <div class="col-12">
{{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto" "Size" "800x") }} <div class="swiper testimonial-slider">
</div> <div class="swiper-wrapper">
</div> {{ range .Params.testimonials }}
</div> <div class="swiper-slide">
</section> <div
{{ end }} class="bg-theme-light dark:bg-darkmode-theme-light rounded-lg px-7 py-10">
<!-- /Banner --> <div class="text-dark dark:text-white">
<svg
<!-- Features --> width="33"
{{ range $i, $e:= .Params.features }} height="20"
<section class="section-sm {{ if (modBool $i 2) }}bg-gradient{{ end }}"> viewBox="0 0 33 20"
<div class="container"> fill="none"
<div class="row items-center justify-between"> xmlns="http://www.w3.org/2000/svg">
<div <path
class="mb:md-0 {{ if not (modBool $i 2) }} d="M1.28375 19.41L0.79375 18.64C1.21375 17.0067 1.75042 15.07 2.40375 12.83C3.05708 10.5433 3.75708 8.28 4.50375 6.04C5.29708 3.75333 6.06708 1.77 6.81375 0.0899959H15.3538C14.9338 2.09666 14.4904 4.26667 14.0238 6.6C13.5571 8.88666 13.1371 11.15 12.7638 13.39C12.4371 15.5833 12.1571 17.59 11.9238 19.41H1.28375ZM31.69 0.0899959L32.18 0.859998C31.76 2.54 31.2233 4.5 30.57 6.74C29.9167 8.98 29.2167 11.2433 28.47 13.53C27.7233 15.77 26.9533 17.73 26.16 19.41H17.69C18.0167 17.9167 18.3433 16.33 18.67 14.65C18.9967 12.9233 19.3 11.22 19.58 9.54C19.9067 7.81333 20.1867 6.15667 20.42 4.57C20.7 2.93666 20.91 1.44333 21.05 0.0899959H31.69Z"
md:order-2 fill="currentColor" />
{{ end }} md:col-5 mb-6"> </svg>
{{ partial "image" (dict "Src" .image "Alt" "feature image") }} </div>
</div> <blockquote class="mt-8">
<div {{ .content | markdownify }}
class="{{ if not (modBool $i 2) }} </blockquote>
md:order-1 <div class="mt-11 flex items-center">
{{ end }} md:col-7 lg:col-6">
<h2 class="mb-4">
{{ .title | markdownify }}
</h2>
<p class="mb-8 text-lg">
{{ .content | markdownify }}
</p>
<ul>
{{ range .bulletpoints }}
<li class="relative mb-4 pl-6">
<i class="fa fa-check absolute left-0 top-1.5"></i>
{{ . | markdownify }}
</li>
{{ end }}
</ul>
{{ with .button }}
{{ if .enable }}
<a class="btn btn-primary mt-6" href="{{ .link | absURL }}">
{{ .label }}
<i class="fa fa-arrow-right pl-2"></i>
</a>
{{ end }}
{{ end }}
</div>
</div>
</div>
</section>
{{ end }}
<!-- /Features -->
<!-- Testimonials -->
{{ with site.GetPage "sections/testimonial" }}
{{ if .Params.enable }}
<section class="section">
<div class="container">
<div class="row">
<div
class="md:col-10 lg:col-8 xl:col-6 mx-auto mb-12 text-center">
<h2 class="mb-4">
{{ .Title | markdownify }}
</h2>
<p>
{{ .Params.description | markdownify }}
</p>
</div>
<div class="col-12">
<div class="swiper testimonial-slider">
<div class="swiper-wrapper">
{{ range .Params.testimonials }}
<div class="swiper-slide">
<div
class="bg-theme-light dark:bg-darkmode-theme-light rounded-lg px-7 py-10">
<div class="text-dark dark:text-white"> <div class="text-dark dark:text-white">
<svg {{ partial "image" (dict "Src" .avatar "Size" "50x50" "Class" "rounded-full" "Alt" .name) }}
width="33"
height="20"
viewBox="0 0 33 20"
fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
d="M1.28375 19.41L0.79375 18.64C1.21375 17.0067 1.75042 15.07 2.40375 12.83C3.05708 10.5433 3.75708 8.28 4.50375 6.04C5.29708 3.75333 6.06708 1.77 6.81375 0.0899959H15.3538C14.9338 2.09666 14.4904 4.26667 14.0238 6.6C13.5571 8.88666 13.1371 11.15 12.7638 13.39C12.4371 15.5833 12.1571 17.59 11.9238 19.41H1.28375ZM31.69 0.0899959L32.18 0.859998C31.76 2.54 31.2233 4.5 30.57 6.74C29.9167 8.98 29.2167 11.2433 28.47 13.53C27.7233 15.77 26.9533 17.73 26.16 19.41H17.69C18.0167 17.9167 18.3433 16.33 18.67 14.65C18.9967 12.9233 19.3 11.22 19.58 9.54C19.9067 7.81333 20.1867 6.15667 20.42 4.57C20.7 2.93666 20.91 1.44333 21.05 0.0899959H31.69Z"
fill="currentColor" />
</svg>
</div> </div>
<blockquote class="mt-8"> <div class="ml-4">
{{ .content | markdownify }} <h3 class="h5 font-primary font-semibold">
</blockquote> {{ .name }}
<div class="mt-11 flex items-center"> </h3>
<div class="text-dark dark:text-white"> <p class="text-dark dark:text-white">
{{ partial "image" (dict "Src" .avatar "Size" "50x50" "Class" "rounded-full" "Alt" .name) }} {{ .designation | markdownify }}
</div> </p>
<div class="ml-4">
<h3 class="h5 font-primary font-semibold">
{{ .name }}
</h3>
<p class="text-dark dark:text-white">
{{ .designation | markdownify }}
</p>
</div>
</div> </div>
</div> </div>
</div> </div>
{{ end }} </div>
</div> {{ end }}
<div
class="testimonial-slider-pagination mt-9 flex items-center justify-center text-center"></div>
</div> </div>
<div
class="testimonial-slider-pagination mt-9 flex items-center justify-center text-center"></div>
</div> </div>
</div> </div>
</div> </div>
</section> </div>
{{ end }} </section>
{{ end }} {{ end }}
<!-- /Testimonials -->
{{ end }} {{ end }}
<!-- /Testimonials -->
{{ end }} {{ end }}

View File

@ -1,5 +1,4 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>{{ .Title | default site.Title }}</title>
<!-- responsive meta --> <!-- responsive meta -->
<meta <meta

View File

@ -1,7 +1,7 @@
{ {
"name": "hugoplate", "name": "hugoplate",
"description": "hugo tailwindcss boilerplate", "description": "hugo tailwindcss boilerplate",
"version": "1.7.7", "version": "1.8.0",
"license": "MIT", "license": "MIT",
"author": "zeon.studio", "author": "zeon.studio",
"scripts": { "scripts": {
@ -21,8 +21,8 @@
"@fullhuman/postcss-purgecss": "^5.0.0", "@fullhuman/postcss-purgecss": "^5.0.0",
"@tailwindcss/forms": "^0.5.6", "@tailwindcss/forms": "^0.5.6",
"@tailwindcss/typography": "^0.5.10", "@tailwindcss/typography": "^0.5.10",
"autoprefixer": "^10.4.15", "autoprefixer": "^10.4.16",
"postcss": "^8.4.29", "postcss": "^8.4.31",
"postcss-cli": "^10.1.0", "postcss-cli": "^10.1.0",
"prettier": "^3.0.3", "prettier": "^3.0.3",
"prettier-plugin-go-template": "0.0.15", "prettier-plugin-go-template": "0.0.15",