Skip to content

Repository files navigation

Hugolify Admin

This module is allowing the build of the config file for different Headless CMS for Hugo.

share-hugolify-admin

CMS available

Install

Edit config/_default/module.yaml to install the hugolify-admin module:

imports:
- path: github.com/hugolify/hugolify-admin

E.g: Hugolify setting for a blog

imports:
- path: github.com/hugolify/hugolify-posts-categories
- path: github.com/hugolify/hugolify-posts
- path: github.com/hugolify/hugolify-theme
- path: github.com/hugolify/hugolify-admin

Build Pages CMS and Cloudcannon config files

Copy scripts directory to your project root directory.

Then run the corresponding command:

node scripts/build-config-cloudcannon.js

or

node scripts/build-config-pages.js

Params

Edit config/_default/params.yaml to customize this module:

params:
admin:
cms: decapcms # All CMS available https://www.hugolify.io/docs/cms/admin/cms/config:
id: false # set true to use ID for dir/name files and relation# Configbranch: main # Branch to update git: git-gateway # or gitlab, gitea…repo: # Repository like owner-name/repo-name (optional)i18n:
default_locale: en # master lang for an i18n websitelocales: false # "[en,fr]" for an i18n website# Media configmedia:
media_folder: '/assets/images/uploads'public_folder: '/images/uploads'audio_max_file_size: 700000# 700komax_file_size: 700000# 700kopdf_max_file_size: 5000000# 5Mospecific_filter: false # set true to add a selected filter by imagevideo_max_file_size: 5000000# 5Mo# Cloud asset config (optional)config:
name: # cloudinary or uploadcarecloud_name: # for cloudinaryapi_key: # for cloudinarypublic_key: # for uploadcaretabs: # for uploadcareproviders: # for sveltia-cmsnested:
depth: 5# set minimum 2# Authauth:
app_id: # The Client ID provided by Gitea/GitLabapi_root: # API URL of your Gitea/GitLab instanceauth_endpoint: # Auth endpoint of your Gitea/GitLab instancebase_url: # Root URL of your Gitea/GitLab instancenetlify_identity: true # Add Netlify identitypreview: falsepublish_mode: simple # simple or editorial_workflow# Blocksblocks:
# All blocks available https://www.hugolify.io/docs/blocks/enable:
- alert
- cta
- editorial
- faq
- figure
- form
- information
- images
- latest
- paragraph
- quote
- selected
- title# Collectionscollections:
# Collections (except config, indexes and pages) are automatically added based on Hugo modules config, but you can hide a collection if needed.config:
enable: trueindexes:
enable: truepages:
enable: true# Override fields of collection fieldsfields:
- is_page
- draft
- title_page
- description
- body# Fieldsfields:
# Override fields of hugolify fieldshero:
fields:
- title
- text_markdown

Documentation

https://www.hugolify.io/docs/cms/admin/

Licensing

Hugolify is free for personal or commercial services (MIT license)

About

Admin for Hugolify allowing the build of the config file for different Headless (CloudCannon, Decap, Netlify, Pages, Static, Sveltia and Tina CMS)

Topics

Resources

Stars

14 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages