https://github.com/staticjscms/static-cms-hugo-netlify-template
Hugo template with Static CMS on Netlify
https://github.com/staticjscms/static-cms-hugo-netlify-template
cms hugo netlify static template
Last synced: 4 months ago
JSON representation
Hugo template with Static CMS on Netlify
- Host: GitHub
- URL: https://github.com/staticjscms/static-cms-hugo-netlify-template
- Owner: StaticJsCMS
- License: mit
- Created: 2022-10-27T17:47:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T20:05:08.000Z (over 1 year ago)
- Last Synced: 2024-05-01T11:23:39.846Z (over 1 year ago)
- Topics: cms, hugo, netlify, static, template
- Language: SCSS
- Homepage: https://static-cms-hugo.netlify.app/
- Size: 21.1 MB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Hugo template for Static CMS with Netlify Identity
This is a small business template built with [Hugo](https://gohugo.io) and [Static CMS](https://github.com/StaticJsCMS/static-cms).
## Getting started
Use our deploy button to get your own copy of the repository.
[](https://app.netlify.com/start/deploy?repository=https://github.com/StaticJsCMS/static-cms-hugo-netlify-template&stack=cms)
This will setup everything needed for running the CMS:
* A new repository in your GitHub account with the code
* Full Continuous Deployment to Netlify's global CDN network
* Control users and access with Netlify Identity
* Manage content with Static CMS
Once the initial build finishes, you will receive an "Invite" email to login to Static CMS.
Now you're all set, and you can start editing content!
## Local Development
Clone this repository, and run `yarn` or `npm install` from the new folder to install all required dependencies.
Then start the development server with `yarn start` or `npm start`.
## Layouts
The template is based on small, content-agnostic partials that can be mixed and matched. The pre-built pages showcase just a few of the possible combinations. Refer to the `site/layouts/partials` folder for all available partials.
Use Hugo’s `dict` functionality to feed content into partials and avoid repeating yourself and creating discrepancies.
## CSS
The template uses a custom fork of Tachyons and PostCSS with cssnext and cssnano. To customize the template for your brand, refer to `src/css/imports/_variables.css` where most of the important global variables like colors and spacing are stored.
## SVG
All SVG icons stored in `site/static/img/icons` are automatically optimized with SVGO (gulp-svgmin) and concatenated into a single SVG sprite stored as a a partial called `svg.html`. Make sure you use consistent icons in terms of viewport and art direction for optimal results. Refer to an SVG via the `` tag like so:
```
```