diff --git a/exampleSite/assets/images/404.png b/exampleSite/assets/images/404.png deleted file mode 100755 index fd799aa..0000000 Binary files a/exampleSite/assets/images/404.png and /dev/null differ diff --git a/exampleSite/content/english/pages/404.md b/exampleSite/content/english/pages/404.md deleted file mode 100644 index 4cc39e0..0000000 --- a/exampleSite/content/english/pages/404.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: "Page Not Found" -meta_title: "" -description: "this is meta description" -image: "/images/404.png" -draft: false - -# don't create a separate page -_build: - render: "never" ---- - -Hugoplate is a free starter template built with Hugo and TailwindCSS, providing everything you need to jumpstart your HTML project and save valuable time. diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 45f1fb5..aa0fd00 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -3,27 +3,27 @@ module hugoplate.netlify.app go 1.20 require ( - github.com/gethugothemes/hugo-modules/accordion v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/adsense v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/images v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/modal v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/pwa v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/search v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/tab v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/gethugothemes/hugo-modules/videos v0.0.0-20230723035230-6e3f9ed58472 // indirect - github.com/zeon-studio/hugoplate v0.0.0-20230723035338-3dfdf7e3efe3 // indirect + github.com/gethugothemes/hugo-modules/accordion v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/adsense v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/images v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/modal v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/pwa v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/search v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/tab v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/gethugothemes/hugo-modules/videos v0.0.0-20230727035736-e23a61ab80b4 // indirect + github.com/zeon-studio/hugoplate v0.0.0-20230727062248-6a53b8d98630 // indirect ) diff --git a/exampleSite/i18n/en.yaml b/exampleSite/i18n/en.yaml index 83fa869..ae07aa4 100755 --- a/exampleSite/i18n/en.yaml +++ b/exampleSite/i18n/en.yaml @@ -22,9 +22,6 @@ - id: share translation: Share -- id: back_to_home - translation: Back To Home - - id: search_input_placeholder translation: Search Post ... diff --git a/layouts/404.html b/layouts/404.html index 97b9c5c..d72dac4 100755 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,20 +1,24 @@ {{ define "main" }} - {{ with site.GetPage "404" }} -
-
-
-
- {{ partial "image" (dict "Src" .Params.image "Alt" .Title "Class" "mb-8") }} -

{{ .Title }}

-
- {{ .Content }} -
- - {{ i18n "back_to_home" }} - +
+
+
+
+ 404 +

Page not found

+
+ The page you are looking for might have been removed, had its name + changed, or is temporarily unavailable.
+ + Back to home +
-
- {{ end }} +
+
{{ end }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 1cab652..f2857c2 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -71,17 +71,20 @@ -
-

{{ i18n "related_posts" }}

-
- {{ $related := (where site.RegularPages "Section" "in" site.Params.mainSections) | intersect (where site.RegularPages ".Title" "!=" .Title) | union (site.RegularPages.Related . ) }} - {{ range first 3 $related }} -
- {{ partial "components/blog-card" . }} -
- {{ end }} + {{ $related := (where site.RegularPages "Section" "in" site.Params.mainSections) | intersect (where site.RegularPages ".Title" "!=" .Title) | union (site.RegularPages.Related . ) }} + {{ $related = $related | shuffle | first 3 }} + {{ with $related }} +
+

{{ i18n "related_posts" }}

+
+ {{ range . }} +
+ {{ partial "components/blog-card" . }} +
+ {{ end }} +
-
+ {{ end }}
{{ end }} diff --git a/readme.md b/readme.md index c00dc02..f886e27 100755 --- a/readme.md +++ b/readme.md @@ -119,6 +119,28 @@ https://github.com/zeon-studio/hugoplate/assets/58769763/c260c0ae-91be-42ce-b8db --- +## 📝 Customization + +We have added a lot of customization options in this template. You can customize almost everything you want. Let's see what you can customize: + +### 👉 Site Config + +You can change the site configuration from the `hugo.toml` file. You can change the site title, baseURL, language, theme, plugins, and more. + +### 👉 Site Params + +You can customize all the parameters from `config/_default/params.toml` file. Including `logo`, `favicon`, `search`, `seo metadata` and more. + +### 👉 Colors and Fonts + +You can change the colors and fonts from the `data/theme.json` file. You can change the primary color, secondary color, and more. Also you can change the font family and font size from here. + +### 👉 Social Links + +You can change the social links from the `data/social.json` file. You can add your social links here, and it will automatically show on the site. + +--- + ## 🛠 Advanced Usage We have added some custom scripts to make your life easier. You can use these scripts to help you with your development.