Collection of shell scripts for Hugo.
|
iamyaash
c66620743a
chore: indendation changes to match with HUGO v0.147.5
Signed-off-by: iamyaash <iamyaash@noreply.codeberg.org> |
||
|---|---|---|
| after-clone.sh | chore: replace https clone link with ssh | |
| new-content.sh | chore: indendation changes to match with HUGO v0.147.5 | |
| README.md | chore: README contents added for adding hugo-script as submodule | |
| theme-sync.sh | feat: 3 scripts added | |
hugo-scripts
Head inside your Hugo site project directory where you want to add the submodule:
cd hugo-site
- Add
hugo-scriptsas a Submodule
Add the hugo-scripts repository as a submodule with a shallow clone for faster download:
git submodule add --depth=1 https://codeberg.org/clforge/hugo-scripts.git scripts/
This will create a submodule directory inside your hugo-site project pointing to the hugo-scripts repository.
- Synchronize Submodule Configuration (Recommended)
To ensure your submodule configuration is correctly synchronized with the .gitmodules file, run:
# Sync submodules config (safety)
git submodule sync --recursive
- Initialize and Update Submodules
Download and initialize the submodule, including any nested submodules recursively:
# Initialize and update submodules
git submodule update --init --recursive