Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amincharoliya/one-click-hugo-cms
https://github.com/amincharoliya/one-click-hugo-cms
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/amincharoliya/one-click-hugo-cms
- Owner: amincharoliya
- License: mit
- Created: 2018-10-17T06:39:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T23:20:32.000Z (almost 2 years ago)
- Last Synced: 2023-05-07T09:26:11.560Z (over 1 year ago)
- Language: CSS
- Size: 40.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hugo template for Netlify CMS with Netlify Identity
This is a small business template built with [Victor Hugo](https://github.com/netlify/victor-hugo) and [Netlify CMS](https://github.com/netlify/netlify-cms), designed and developed by [Darin Dimitroff](http://www.darindimitroff.com/), [spacefarm.digital](https://www.spacefarm.digital).
## Getting started
Use our deploy button to get your own copy of the repository.
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/one-click-hugo-cms&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 Netlify CMSOnce the initial build finishes, you can invite yourself as a user. Go to the Identity tab in your new site, click "Invite" and send yourself an invite.
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:
```
```