First you need to clone your repository and install the dependencies:
git clone https://github.com/zeon-studio/repo_name
cd repo_nameTo start using this template, you need to have some prerequisites installed on your machine.
Install all the dependencies using the following command.
npm installStart the development server using the following command.
npm run devYou can change the site title, base URL, language, theme, plugins, and more from the hugo.toml file.
You can customize all the parameters from the config/_default/params.toml file. This includes the logo, favicon, search, SEO metadata, newslatter submission, contact form submission and more.
You can change page header configuration from the config/_default/params.toml file.
# Page Header
[page_header]
enable = true
bg_color_lightmode = "#e9fff8"
text_color_lightmode = "#000"
bg_color_darkmode = "#384343"
text_color_darkmode = "#fff"You can change the menu from the config/_default/menus.toml file.
if you want to add new item in menu then add it like:
[[main]]
name = "Blog"
url = "posts"
weight = 100
if you want to add sub menu then add it like:
[[main]]
weight = 4
name = "Pages"
[[main]]
parent = "Pages"
name = "Blog"
url = "/blog"if you want to add more country in submenu then add it like:
[[main]]
parent = "ζη« "
name = "ε°ε³Ά"
url = "country/ε°ε³Ά"You can change the newslatter configuration from the config/_default/params.toml file.
contact_form_action = "https://formsubmit.co/contact@exittaiwan.com"
newsletter = "https://formsubmit.co/contact@exittaiwan.com"if you want to change the form service provider you just need to change the contact_form_action and newsletter value with the form service provider url.
You can change the colors and fonts from the data/theme.json file. This includes the primary color, secondary color, font family, and font size.
Primary font use for body and secondary font use for heading.
You can change the social links from the data/social.json file. Add your social links here, and they will automatically be displayed on the site.
You can use the following code to add a button in your blog post:
{{< button label="ζζζη« " link="/posts" style="solid" >}}
### Use other shortcodes
if you want to use other shortcodes you can check the `content/zh/pages/elements.md` file.
## Update Content
You can update the content from the `content/zh` directory. This includes the posts, pages, and other content.To connect your newsletter form to Mailchimp, youβll need two values:
mailchimp_form_actionmailchimp_form_name
-
Log into Mailchimp
Go to mailchimp.com and log into your account. -
Go to Your Audience
Click on Audience from the left-hand menu.
If you have more than one audience, choose the correct one. -
Create or View Signup Form
- Click on Signup forms > Embedded forms.
- Customize the form if you want.
- Copy the embed code shown in the box.
-
Extract the Info from the Embed Code
Look for something like this in the embed code:<form action="https://gmail.us16.list-manage.com/subscribe/post?u=c1d6227ee0ca00a18e4cdac71&id=347604ba0d&f_id=00fdc2e1f0" method="post"> <input type="hidden" name="b_c1d6227ee0ca00a18e4cdac71_347604ba0d" tabindex="-1" value=""> </form>
-
The form action URL is your
mailchimp_form_action
β Example:
https://gmail.us16.list-manage.com/subscribe/post?u=c1d6227ee0ca00a18e4cdac71&id=347604ba0d&f_id=00fdc2e1f0 -
The name of the hidden input field is your
mailchimp_form_name
β Example:
b_c1d6227ee0ca00a18e4cdac71_347604ba0d
-
Replace your current values with the ones you just copied.
mailchimp_form_action = "YOUR_FORM_ACTION_URL"
mailchimp_form_name = "YOUR_FORM_NAME"We have added some custom scripts to make your life easier. You can use these scripts to help you with your development.
We have added a lot of modules to this template. You can update all the modules using the following command.
npm run update-modulesAfter you finish your development, you can build or deploy your project almost everywhere. Let's see the process:
To build your project locally, you can use the following command.
npm run buildWe have provided 5 different deploy platform configurations with this template, so you can deploy easily.
And if you want to Host some other hosting platforms. then you can build your project, and you will get a public folder. that you can copy and paste on your hosting platform.
Note: You must change the
baseURLin thehugo.tomlfile. Otherwise, your site will not work properly.