From a8315b95b79e3e5d0c5ded405bb8851430522ec8 Mon Sep 17 00:00:00 2001 From: Dima Marhitych Date: Sat, 16 Dec 2023 17:37:00 +0100 Subject: [PATCH 1/4] Create hugo.yaml --- .github/workflows/hugo.yaml | 79 +++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 .github/workflows/hugo.yaml diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml new file mode 100644 index 0000000..0ad96cd --- /dev/null +++ b/.github/workflows/hugo.yaml @@ -0,0 +1,79 @@ +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Deploy Hugo site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: + - main + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.121.0 + steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Install Dart Sass + run: sudo snap install dart-sass + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + - name: Setup Pages + id: pages + uses: actions/configure-pages@v4 + - name: Install Node.js dependencies + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Build with Hugo + env: + # For maximum backward compatibility with Hugo modules + HUGO_ENVIRONMENT: production + HUGO_ENV: production + run: | + hugo \ + --gc \ + --minify \ + --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v3 + From 6be652ec9970c26ee6218e23e009cc32c0af4f92 Mon Sep 17 00:00:00 2001 From: Dima Marhitych Date: Sat, 16 Dec 2023 17:37:14 +0100 Subject: [PATCH 2/4] Update hugo.yaml --- .github/workflows/hugo.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 0ad96cd..066ceeb 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -38,8 +38,6 @@ jobs: run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ && sudo dpkg -i ${{ runner.temp }}/hugo.deb - - name: Install Dart Sass - run: sudo snap install dart-sass - name: Checkout uses: actions/checkout@v4 with: From 2f639cb061b309e289d991b175ccc286837e23b1 Mon Sep 17 00:00:00 2001 From: Dima Marhitych Date: Sat, 16 Dec 2023 17:37:43 +0100 Subject: [PATCH 3/4] Delete .github/workflows/hugo.yaml --- .github/workflows/hugo.yaml | 77 ------------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 .github/workflows/hugo.yaml diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml deleted file mode 100644 index 066ceeb..0000000 --- a/.github/workflows/hugo.yaml +++ /dev/null @@ -1,77 +0,0 @@ -# Sample workflow for building and deploying a Hugo site to GitHub Pages -name: Deploy Hugo site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: - - main - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -# Default to bash -defaults: - run: - shell: bash - -jobs: - # Build job - build: - runs-on: ubuntu-latest - env: - HUGO_VERSION: 0.121.0 - steps: - - name: Install Hugo CLI - run: | - wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ - && sudo dpkg -i ${{ runner.temp }}/hugo.deb - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - - name: Setup Pages - id: pages - uses: actions/configure-pages@v4 - - name: Install Node.js dependencies - run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - - name: Build with Hugo - env: - # For maximum backward compatibility with Hugo modules - HUGO_ENVIRONMENT: production - HUGO_ENV: production - run: | - hugo \ - --gc \ - --minify \ - --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./public - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v3 - From cc9dd2f1cf26b3110606bcf274862ab5aef26256 Mon Sep 17 00:00:00 2001 From: Dima Marhitych Date: Sat, 16 Dec 2023 17:40:49 +0100 Subject: [PATCH 4/4] Update readme.md --- readme.md | 224 +----------------------------------------------------- 1 file changed, 1 insertion(+), 223 deletions(-) diff --git a/readme.md b/readme.md index 6072648..6d45f94 100755 --- a/readme.md +++ b/readme.md @@ -1,223 +1 @@ -

Hugo + Tailwind CSS Starter and Boilerplate

- -

Hugoplate is a free starter template built with Hugo, and TailwindCSS, providing everything you need to jumpstart your Hugo project and save valuable time.

- -

Made with β™₯ by Zeon Studio

-

If you find this project useful, please give it a ⭐ to show your support.

- -

πŸ‘€ Demo | Page Speed (95+)πŸš€ -

- -

- - - - - - license - - - - code size - - - - contributors - -

- -## 🎁 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 - -- πŸ‘₯ 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 - -### πŸ“¦ 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/) -- [AWS Amplify](https://aws.amazon.com/amplify/) - ---- - -## πŸš€ Getting Started - -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: - -### βš™οΈ Prerequisites - -To start using this template, you need to have some prerequisites installed on your machine. - -- [Hugo Extended v0.115+](https://gohugo.io/installation/) -- [Node v18+](https://nodejs.org/en/download/) -- [Go v1.20+](https://go.dev/doc/install) - -### πŸ‘‰ Project Setup - -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 -npm run project-setup -``` - -### πŸ‘‰ Install Dependencies - -Install all the dependencies using the following command. - -```bash -npm install -``` - -### πŸ‘‰ Development Command - -Start the development server using the following command. - -```bash -npm run dev -``` - -### 🎬 Still Confused? Watch a Quick Video - -https://github.com/zeon-studio/hugoplate/assets/58769763/c260c0ae-91be-42ce-b8db-aa7f11f777bd - ---- - -## πŸ“ Customization - -This template has been designed with a lot of customization options in mind. You can customize almost anything you want, including: - -### πŸ‘‰ Site Config - -You can change the site title, base URL, language, theme, plugins, and more from the `hugo.toml` file. - -### πŸ‘‰ Site Params - -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 - -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 - -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. - ---- - -## πŸ›  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 - -We have added a lot of modules to this template. You can update all the modules using the following command. - -```bash -npm run update-modules -``` - -### πŸ‘‰ Remove Dark Mode - -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. - -```bash -npm run remove-darkmode -``` - -> **Note:** This command will work before running `project-setup` script. If you already run the `project-setup` command, then you have to run `npm run theme-setup` first, and then you can run this command. afterward, you can run `npm run project-setup` again. - ---- - -## πŸš€ Build And Deploy - -After you finish your development, you can build or deploy your project almost everywhere. Let's see the process: - -### πŸ‘‰ 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 -npm run build -``` - -### πŸ‘‰ Deploy Site - -We have provided 5 different deploy platform configurations with this template, so you can deploy easily. - -- [Netlify](https://www.netlify.com/) -- [Vercel](https://vercel.com/) -- [Github Actions](https://github.com/features/actions) -- [Gitlab Ci](https://docs.gitlab.com/ee/ci/) -- [AWS Amplify](https://aws.amazon.com/amplify/) - -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 `baseURL` in the `hugo.toml` file. Otherwise, your site will not work properly. - ---- - -## πŸ”’ Guide to Staying Compliant - -### 🐞 Reporting Issues - -We use GitHub Issues as the official bug tracker for this Template. Please Search [existing issues](https://github.com/zeon-studio/hugoplate/issues). It’s 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). - -### πŸ“ License - -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. - -**Image license:** The images are only for demonstration purposes. They have their license, we don't have permission to share those images. - ---- - -## πŸ–ΌοΈ 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** | +# Fusion Engine Website