update about, contact, author-social, and remove search page

This commit is contained in:
somrat sorkar 2023-07-31 09:41:53 +06:00
parent 2e9a23387f
commit 8b50622a2b
17 changed files with 196 additions and 211 deletions

View File

@ -21,35 +21,30 @@ weight = 4
name = "Pages" name = "Pages"
hasChildren = true hasChildren = true
[[main]] [[main]]
parent = "Pages" parent = "Pages"
name = "Blog" name = "Blog"
url = "blog/" url = "blog/"
[[main]] [[main]]
parent = "Pages" parent = "Pages"
name = "Contact" name = "Contact"
url = "contact/" url = "contact/"
[[main]] [[main]]
parent = "Pages" parent = "Pages"
name = "Authors" name = "Authors"
url = "authors/" url = "authors/"
[[main]] [[main]]
parent = "Pages" parent = "Pages"
name = "Search" name = "Categories"
url = "search/" url = "categories/"
[[main]] [[main]]
parent = "Pages" parent = "Pages"
name = "Categories" name = "404 Page"
url = "categories/" url = "404/"
[[main]]
parent = "Pages"
name = "404 Page"
url = "404/"
# footer menu # footer menu

View File

@ -3,7 +3,6 @@ title: "Hey, I am John Doe!"
meta_title: "About" meta_title: "About"
description: "this is meta description" description: "this is meta description"
image: "/images/avatar.png" image: "/images/avatar.png"
layout: "about"
draft: false draft: false
--- ---

View File

@ -4,9 +4,17 @@ email: johndoe@email.com
image: "/images/avatar.png" image: "/images/avatar.png"
description: this is meta description description: this is meta description
social: social:
facebook: https://www.facebook.com/ - name: github
twitter: https://www.twitter.com/ icon: fa-brands fa-github
instagram: https://www.instagram.com/ link: https://github.com
- name: twitter
icon: fa-brands fa-twitter
link: https://twitter.com
- name: linkedin
icon: fa-brands fa-linkedin
link: https://linkedin.com
--- ---
lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua. lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua.

View File

@ -4,9 +4,17 @@ email: samwilson@email.com
image: "/images/avatar.png" image: "/images/avatar.png"
description: this is meta description description: this is meta description
social: social:
facebook: https://www.facebook.com/ - name: github
twitter: https://www.twitter.com/ icon: fa-brands fa-github
instagram: https://www.instagram.com/ link: https://github.com
- name: twitter
icon: fa-brands fa-twitter
link: https://twitter.com
- name: linkedin
icon: fa-brands fa-linkedin
link: https://linkedin.com
--- ---
lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua. lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua.

View File

@ -4,9 +4,17 @@ email: williamjacob@email.com
image: "/images/avatar.png" image: "/images/avatar.png"
description: this is meta description description: this is meta description
social: social:
facebook: https://www.facebook.com/ - name: github
twitter: https://www.twitter.com/ icon: fa-brands fa-github
instagram: https://www.instagram.com/ link: https://github.com
- name: twitter
icon: fa-brands fa-twitter
link: https://twitter.com
- name: linkedin
icon: fa-brands fa-linkedin
link: https://linkedin.com
--- ---
lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua. lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostr navigation et dolore magna aliqua.

View File

@ -2,6 +2,5 @@
title: "Contact" title: "Contact"
meta_title: "" meta_title: ""
description: "this is meta description" description: "this is meta description"
layout: "contact"
draft: false draft: false
--- ---

View File

@ -1,5 +1,6 @@
--- ---
title: "Elements" title: "Elements"
# meta title
meta_title: "" meta_title: ""
# meta description # meta description
description: "This is meta description" description: "This is meta description"

View File

@ -1,7 +1,10 @@
--- ---
title: "Privacy" title: "Privacy"
# meta title
meta_title: "" meta_title: ""
description: "this is meta description" # meta description
description: "This is meta description"
# save as draft
draft: false draft: false
--- ---

8
exampleSite/content/english/pages/search.md Normal file → Executable file
View File

@ -1,7 +1,9 @@
--- ---
title: "Search" title: "Elements"
meta_title: "" # meta title
description: "this is meta description"
layout: "search" layout: "search"
# meta description
description: "This is meta description"
# save as draft
draft: false draft: false
--- ---

View File

@ -1,9 +0,0 @@
{{ define "main" }}
<div class="container">
<div class="row">
<div class="col-12">
{{ partial "search-page.html" (dict "Context" . "Class" "your-custom-class") }}
</div>
</div>
</div>
{{ end }}

View File

@ -20,33 +20,14 @@
{{ .Content }} {{ .Content }}
</div> </div>
<ul class="social-icons ml-4 mt-10 text-center"> <ul class="social-icons ml-4 mt-10 text-center">
{{ if .Params.social.facebook }} {{ range .Params.social }}
<li> <li>
<a <a
href="{{ . | safeURL }}" href="{{ .link | safeURL }}"
target="_blank" target="_blank"
rel="noopener nofollow"> rel="noopener nofollow">
<i class="fa-brands fa-facebook-f"></i> <span class="sr-only">{{ .title }}</span>
</a> <i class="{{ .icon }}"></i>
</li>
{{ end }}
{{ if .Params.social.twitter }}
<li>
<a
href="{{ . | safeURL }}"
target="_blank"
rel="noopener nofollow">
<i class="fa-brands fa-twitter"></i>
</a>
</li>
{{ end }}
{{ if .Params.social.instagram }}
<li>
<a
href="{{ . | safeURL }}"
target="_blank"
rel="noopener nofollow">
<i class="fa-brands fa-instagram"></i>
</a> </a>
</li> </li>
{{ end }} {{ end }}

View File

@ -1,131 +1,134 @@
{{ define "main" }} {{ define "main" }}
<!-- Banner --> {{ with site.GetPage "homepage" }}
{{ with .Params.banner }} <!-- Banner -->
<section class="section pt-14"> {{ with .Params.banner }}
<div class="container"> <section class="section pt-14">
<div class="row justify-center">
<div class="lg:col-7 mb-8 text-center">
<h1 class="mb-4">
{{ .title | markdownify }}
</h1>
<p class="mb-8">
{{ .content | markdownify }}
</p>
{{ with .button }}
{{ if .enable }}
<a class="btn btn-primary" href="{{ .link | absURL }}">
{{ .label }}
<i class="fa fa-arrow-right"></i>
</a>
{{ 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>
</div>
</div>
</div>
</section>
{{ end }}
<!-- /Features -->
<!-- Testimonials -->
{{ with site.GetPage "sections/testimonial" }}
{{ if .Params.enable }}
<section class="section">
<div class="container"> <div class="container">
<div class="row"> <div class="row justify-center">
<div class="md:col-10 lg:col-8 xl:col-6 mx-auto mb-12 text-center"> <div class="lg:col-7 mb-8 text-center">
<h2 class="mb-4"> <h1 class="mb-4">
{{ .Title | markdownify }} {{ .title | markdownify }}
</h2> </h1>
<p> <p class="mb-8">
{{ .Params.description | markdownify }} {{ .content | markdownify }}
</p> </p>
{{ with .button }}
{{ if .enable }}
<a class="btn btn-primary" href="{{ .link | absURL }}">
{{ .label }}
<i class="fa fa-arrow-right"></i>
</a>
{{ end }}
{{ end }}
</div> </div>
<div class="col-12"> <div class="col-12">
<div class="swiper testimonial-slider"> {{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto" "Size" "800x") }}
<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">
<svg
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>
<blockquote class="mt-8">
{{ .content | markdownify }}
</blockquote>
<div class="mt-11 flex items-center">
<div class="text-dark dark:text-white">
{{ partial "image" (dict "Src" .avatar "Size" "50x50" "Class" "rounded-full" "Alt" .name) }}
</div>
<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>
{{ end }}
</div>
<div
class="testimonial-slider-pagination mt-9 flex items-center justify-center text-center"></div>
</div>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
{{ end }} {{ 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>
</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">
<svg
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>
<blockquote class="mt-8">
{{ .content | markdownify }}
</blockquote>
<div class="mt-11 flex items-center">
<div class="text-dark dark:text-white">
{{ partial "image" (dict "Src" .avatar "Size" "50x50" "Class" "rounded-full" "Alt" .name) }}
</div>
<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>
{{ end }}
</div>
<div
class="testimonial-slider-pagination mt-9 flex items-center justify-center text-center"></div>
</div>
</div>
</div>
</div>
</section>
{{ end }}
{{ end }}
<!-- /Testimonials -->
{{ end }} {{ end }}
<!-- /Testimonials -->
{{ end }} {{ end }}

View File

@ -18,24 +18,11 @@
{{ .Summary }} {{ .Summary }}
</p> </p>
<ul class="social-icons"> <ul class="social-icons">
{{ if .Params.social.facebook }} {{ range .Params.social }}
<li> <li>
<a href="{{ . | safeURL }}" target="_blank" rel="noopener nofollow"> <a href="{{ .link | safeURL }}" target="_blank" rel="noopener nofollow">
<i class="fa-brands fa-facebook-f"></i> <span class="sr-only">{{ .title }}</span>
</a> <i class="{{ .icon }}"></i>
</li>
{{ end }}
{{ if .Params.social.twitter }}
<li>
<a href="{{ . | safeURL }}" target="_blank" rel="noopener nofollow">
<i class="fa-brands fa-twitter"></i>
</a>
</li>
{{ end }}
{{ if .Params.social.instagram }}
<li>
<a href="{{ . | safeURL }}" target="_blank" rel="noopener nofollow">
<i class="fa-brands fa-instagram"></i>
</a> </a>
</li> </li>
{{ end }} {{ end }}

View File

@ -1,7 +1,7 @@
{ {
"name": "hugoplate", "name": "hugoplate",
"description": "hugo tailwindcss boilerplate", "description": "hugo tailwindcss boilerplate",
"version": "1.6.3", "version": "1.7.0",
"license": "MIT", "license": "MIT",
"author": "zeon.studio", "author": "zeon.studio",
"scripts": { "scripts": {