chill_hugoplate/readme.md

240 lines
8.6 KiB
Markdown
Raw Permalink Normal View History

2023-10-09 14:04:21 +00:00
# Specifics for CHILL website
## Using docker
**Note**: it is possible to install using this single command: `docker compose run --rm front npm i`
2023-10-09 14:04:21 +00:00
Since we are using docker to launch the website a few things must be done if you are launching it for the first time.
Follow these steps:
1. In docker-compose.yaml file replace `npm run dev` with `tail -f /dev/null`
(This allows the container to keep running while we install all the dependencies in package.json. Without this command the container would exit, because of error)
2. In another terminal window go into the container `docker-compose exec front sh`
3. Run `npm i`
4. Once all dependencies are installed exit the container and stop the container running in the other terminal window
2023-10-09 15:42:59 +00:00
5. Change the command line `tail -f /dev/null` back to `npm run dev`
6. In the package.json file change the dev command with `"hugo server --bind 0.0.0.0"`
7. Launch the container again `docker-compose up --force-recreate`
2023-10-09 14:04:21 +00:00
--------------------
2023-07-06 02:48:08 +00:00
<h1 align="center">Hugo + Tailwind CSS Starter and Boilerplate</h1>
2023-05-25 10:41:54 +00:00
2023-07-06 02:48:08 +00:00
<p align="center">Hugoplate is a free starter template built with Hugo, and TailwindCSS, providing everything you need to jumpstart your Hugo project and save valuable time.</p>
2023-05-25 10:41:54 +00:00
2023-07-22 11:04:00 +00:00
<p align="center">Made with ♥ by <a href="https://zeon.studio/"> Zeon Studio</a></p>
2023-08-12 03:01:32 +00:00
<p align=center> If you find this project useful, please give it a ⭐ to show your support.</p>
2023-07-22 11:04:00 +00:00
2023-07-18 07:37:35 +00:00
<h2 align="center"> <a target="_blank" href="https://hugoplate.netlify.app/" rel="nofollow">👀 Demo</a> | <a target="_blank" href="https://pagespeed.web.dev/analysis/https-hugoplate-netlify-app/6lyxjw6t4r?form_factor=desktop">Page Speed (95+)🚀</a>
2023-05-25 10:41:54 +00:00
</h2>
2023-07-06 02:48:08 +00:00
<p align="center">
<a href="https://github.com/gohugoio/hugo/releases/tag/v0.118.2" alt="Contributors">
<img src="https://img.shields.io/static/v1?label=min-HUGO-version&message=0.118.2&color=f00&logo=hugo" />
2023-05-25 10:41:54 +00:00
</a>
<a href="https://github.com/zeon-studio/hugoplate/blob/main/LICENSE">
2023-08-12 03:01:32 +00:00
<img src="https://img.shields.io/github/license/zeon-studio/hugoplate" alt="license">
</a>
2023-05-25 10:41:54 +00:00
2023-08-12 03:01:32 +00:00
<a href="https://github.com/zeon-studio/hugoplate">
<img src="https://img.shields.io/github/languages/code-size/zeon-studio/hugoplate" alt="code size">
</a>
2023-05-25 10:41:54 +00:00
<a href="https://github.com/zeon-studio/hugoplate/graphs/contributors">
2023-08-12 03:01:32 +00:00
<img src="https://img.shields.io/github/contributors/zeon-studio/hugoplate" alt="contributors">
</a>
2023-05-25 10:41:54 +00:00
</p>
2023-07-18 06:30:34 +00:00
## 🎁 What's Included
We have included almost everything you need to start your Hugo project. Let's see what's included in this template:
### 📌 Key Features
2023-05-25 10:41:54 +00:00
- 👥 Multi-Authors
- 🎯 Similar Posts Suggestion
- 🔍 Search Functionality
- 🌑 Dark Mode
- 🏷️ Tags & Categories
- 🔗 Netlify setting pre-configured
- 📞 Support contact form
- 📱 Fully responsive
- 📝 Write and update content in Markdown
- 💬 Disqus Comment
- 🔳 Syntax Highlighting
### 📄 15+ Pre-designed Pages
- 🏠 Homepage
- 👤 About
- 📞 Contact
- 👥 Authors
- 👤 Author Single
- 📝 Blog
- 📝 Blog Single
- 🚫 Custom 404
- 💡 Elements
- 📄 Privacy Policy
- 🏷️ Tags
- 🏷️ Tag Single
- 🗂️ Categories
- 🗂️ Category Single
- 🔍 Search
2023-07-18 05:54:19 +00:00
### 📦 Tech Stack
- [Hugo](https://gohugo.io/)
- [Tailwind CSS](https://tailwindcss.com/)
- [PostCSS](https://postcss.org/)
- [PurgeCSS](https://purgecss.com/)
- [AutoPrefixer](https://autoprefixer.github.io/)
- [Hugo Modules](https://gohugo.io/hugo-modules/)
- [Markdown](https://markdownguide.org/)
- [Prettier](https://prettier.io/)
- [Jshint](https://jshint.com/)
- [Netlify](https://www.netlify.com/)
- [Vercel](https://vercel.com/)
- [Github Actions](https://github.com/features/actions)
- [Gitlab Ci](https://docs.gitlab.com/ee/ci/)
2023-07-22 08:02:20 +00:00
- [AWS Amplify](https://aws.amazon.com/amplify/)
2023-07-18 05:54:19 +00:00
2023-07-18 03:47:53 +00:00
---
2023-05-25 10:41:54 +00:00
## 🚀 Getting Started
2023-07-31 02:52:06 +00:00
First you need to [clone](https://github.com/zeon-studio/hugoplate) or [download](https://github.com/zeon-studio/hugoplate/archive/refs/heads/main.zip) the template repository, and then let's get started with the following process:
2023-07-18 03:47:53 +00:00
### ⚙️ Prerequisites
2023-05-25 10:41:54 +00:00
2023-07-18 03:47:53 +00:00
To start using this template, you need to have some prerequisites installed on your machine.
2023-07-24 05:28:19 +00:00
- [Hugo Extended v0.115+](https://gohugo.io/installation/)
- [Node v18+](https://nodejs.org/en/download/)
- [Go v1.20+](https://go.dev/doc/install)
2023-05-25 10:41:54 +00:00
2023-07-05 09:19:52 +00:00
### 👉 Project Setup
2023-07-18 03:47:53 +00:00
We build this custom script to make your project setup easier. It will create a new Hugo theme folder, and clone the Hugoplate theme into it. Then move the exampleSite folder into the root directory. So that you can start your Hugo server without going into the exampleSite folder. Use the following command to setup your project.
```bash
2023-07-05 09:19:52 +00:00
npm run project-setup
```
2023-07-05 09:41:50 +00:00
### 👉 Install Dependencies
2023-07-18 03:47:53 +00:00
Install all the dependencies using the following command.
```bash
2023-07-05 09:41:50 +00:00
npm install
```
2023-05-25 10:41:54 +00:00
### 👉 Development Command
2023-07-18 03:47:53 +00:00
Start the development server using the following command.
```bash
2023-05-25 10:41:54 +00:00
npm run dev
```
2023-07-23 03:20:28 +00:00
### 🎬 Still Confused? Watch a Quick Video
2023-07-23 04:14:51 +00:00
https://github.com/zeon-studio/hugoplate/assets/58769763/c260c0ae-91be-42ce-b8db-aa7f11f777bd
2023-07-23 03:20:28 +00:00
2023-07-18 03:47:53 +00:00
---
## 📝 Customization
2023-08-07 02:51:17 +00:00
This template has been designed with a lot of customization options in mind. You can customize almost anything you want, including:
### 👉 Site Config
2023-08-07 02:51:17 +00:00
You can change the site title, base URL, language, theme, plugins, and more from the `hugo.toml` file.
### 👉 Site Params
2023-08-07 02:51:17 +00:00
You can customize all the parameters from the `config/_default/params.toml` file. This includes the logo, favicon, search, SEO metadata, and more.
### 👉 Colors and Fonts
2023-08-07 02:52:49 +00:00
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.
### 👉 Social Links
2023-08-07 02:51:17 +00:00
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.
---
2023-07-18 03:47:53 +00:00
## 🛠 Advanced Usage
We have added some custom scripts to make your life easier. You can use these scripts to help you with your development.
### 👉 Update Modules
2023-08-07 02:51:17 +00:00
We have added a lot of modules to this template. You can update all the modules using the following command.
2023-07-18 03:47:53 +00:00
```bash
npm run update-modules
```
### 👉 Remove Dark Mode
2023-05-25 10:41:54 +00:00
2023-08-07 02:51:17 +00:00
If you want to remove dark mode from your project, then you have to do it manually from everywhere. So we build a custom script to do it for you. you can use the following command to remove dark mode from your project.
2023-07-18 03:47:53 +00:00
```bash
npm run remove-darkmode
2023-05-25 10:41:54 +00:00
```
2023-07-18 03:47:53 +00:00
---
## 🚀 Build And Deploy
2023-08-07 02:51:17 +00:00
After you finish your development, you can build or deploy your project almost everywhere. Let's see the process:
2023-07-18 03:47:53 +00:00
### 👉 Build Command
To build your project locally, you can use the following command. It will purge all the unused CSS and minify all the files.
```bash
2023-05-25 10:41:54 +00:00
npm run build
```
2023-07-23 10:01:17 +00:00
### 👉 Deploy Site
2023-07-18 03:47:53 +00:00
2023-07-23 10:01:17 +00:00
We have provided 5 different deploy platform configurations with this template, so you can deploy easily.
2023-07-18 03:47:53 +00:00
2023-07-18 05:54:19 +00:00
- [Netlify](https://www.netlify.com/)
- [Vercel](https://vercel.com/)
- [Github Actions](https://github.com/features/actions)
- [Gitlab Ci](https://docs.gitlab.com/ee/ci/)
2023-07-22 07:53:41 +00:00
- [AWS Amplify](https://aws.amazon.com/amplify/)
2023-07-18 03:47:53 +00:00
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.
2023-07-22 07:53:41 +00:00
> **Note:** You must change the `baseURL` in the `hugo.toml` file. Otherwise, your site will not work properly.
2023-07-18 03:47:53 +00:00
---
2023-07-18 06:30:34 +00:00
## 🔒 Guide to Staying Compliant
### 🐞 Reporting Issues
2023-05-25 10:41:54 +00:00
We use GitHub Issues as the official bug tracker for this Template. Please Search [existing issues](https://github.com/zeon-studio/hugoplate/issues). Its possible someone has already reported the same problem.
If your problem or idea has not been addressed yet, feel free to [open a new issue](https://github.com/zeon-studio/hugoplate/issues).
2023-10-08 04:42:45 +00:00
## 🖼️ Showcase
List of projects people are building with **Hugoplate**! Have you built a project with Hugoplate? Submit it by creating a pull request and we'll feature it here!
| [![Open Neuromorphic](https://tinyurl.com/hp7avtje)](https://open-neuromorphic.org/) | [![AI Models](https://tinyurl.com/mu4p7dhb)](https://aimodels.org/) | [![Hugobricks](https://tinyurl.com/4x3uwhm9)](https://www.hugobricks.preview.usecue.com/) |
|:---:|:---:|:---:|
| **Open Neuromorphic** | **AI Models** | **Hugobricks** |
2023-07-18 06:30:34 +00:00
### 📝 License
2023-05-25 10:41:54 +00:00
Copyright (c) 2023 - Present, Designed & Developed by [Zeon Studio](https://zeon.studio/)
**Code License:** Released under the [MIT](https://github.com/zeon-studio/hugoplate/blob/main/LICENSE) license.
2023-05-25 10:41:54 +00:00
**Image license:** The images are only for demonstration purposes. They have their license, we don't have permission to share those images.