|
8 months ago | |
---|---|---|
content | 8 months ago | |
data | 8 months ago | |
layouts/kids | 1 year ago | |
static | 8 months ago | |
themes | 8 months ago | |
tools | 8 months ago | |
.firebaserc | 1 year ago | |
.gitignore | 1 year ago | |
.gitlab-ci.yml | 1 year ago | |
.gitmodules | 9 months ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
config.toml | 9 months ago | |
firebase.json | 1 year ago | |
package.json | 1 year ago | |
yarn.lock | 1 year ago |
Install Hugo Note: you need to install the extended version.
If you need to use tools, or deploy, you also need NodeJS and Yarn.
git submodule init
git submodule update themes/devfest-theme-hugo
When you have made changes on the theme, you need to add the
git add themes/devfest-theme-hugo
Just run
hugo server -D
Notice that the -D
flag is used to rendrer draft elements.
More information here
Just run
hugo
More information here
You can edit
config.toml
file.data/*.yml
files, like header or footer informationcontent/**
files.static/*
folderYou can use hugo new blog/i-create-a-new-entry.md
command and then edit it.
Or just copy an already existing blog entry, and update the content.
If you need to touch file of the theme (i.e. into ./themes/devfest-theme-hugo/
) you to know one more thing:
The theme is in another Git repository https://github.com/GDGToulouse/devfest-theme-hugo, it’s using git submodules, so you need to handle this two repository.
So this is an example of workflow:
./themes/devfest-theme-hugo/
yarn
npm start
to launch automatically the build when a file changehugo server
into the site folder)npm run build
git add themes/devfest-theme-hugo
To publish the site on firebase, just run firebase deploy
.
Note that you need to authenticate once with firebase login
YOU DON’T NEED to publish manually the website, it’s already done by pushing on develop
or master
branches.
You could take a look at the .gitlab-ci.yml
file
TODO...