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

@ -36,11 +36,6 @@ hasChildren = true
name = "Authors"
url = "authors/"
[[main]]
parent = "Pages"
name = "Search"
url = "search/"
[[main]]
parent = "Pages"
name = "Categories"

View File

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

View File

@ -4,9 +4,17 @@ email: johndoe@email.com
image: "/images/avatar.png"
description: this is meta description
social:
facebook: https://www.facebook.com/
twitter: https://www.twitter.com/
instagram: https://www.instagram.com/
- name: github
icon: fa-brands fa-github
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.

View File

@ -4,9 +4,17 @@ email: samwilson@email.com
image: "/images/avatar.png"
description: this is meta description
social:
facebook: https://www.facebook.com/
twitter: https://www.twitter.com/
instagram: https://www.instagram.com/
- name: github
icon: fa-brands fa-github
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.

View File

@ -4,9 +4,17 @@ email: williamjacob@email.com
image: "/images/avatar.png"
description: this is meta description
social:
facebook: https://www.facebook.com/
twitter: https://www.twitter.com/
instagram: https://www.instagram.com/
- name: github
icon: fa-brands fa-github
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.

View File

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

View File

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

View File

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

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

@ -1,7 +1,9 @@
---
title: "Search"
meta_title: ""
description: "this is meta description"
title: "Elements"
# meta title
layout: "search"
# meta description
description: "This is meta description"
# save as draft
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 }}
</div>
<ul class="social-icons ml-4 mt-10 text-center">
{{ if .Params.social.facebook }}
{{ range .Params.social }}
<li>
<a
href="{{ . | safeURL }}"
href="{{ .link | safeURL }}"
target="_blank"
rel="noopener nofollow">
<i class="fa-brands fa-facebook-f"></i>
</a>
</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>
<span class="sr-only">{{ .title }}</span>
<i class="{{ .icon }}"></i>
</a>
</li>
{{ end }}

View File

@ -1,4 +1,5 @@
{{ define "main" }}
{{ with site.GetPage "homepage" }}
<!-- Banner -->
{{ with .Params.banner }}
<section class="section pt-14">
@ -71,7 +72,8 @@
<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">
<div
class="md:col-10 lg:col-8 xl:col-6 mx-auto mb-12 text-center">
<h2 class="mb-4">
{{ .Title | markdownify }}
</h2>
@ -129,3 +131,4 @@
{{ end }}
<!-- /Testimonials -->
{{ end }}
{{ end }}

View File

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

View File

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