Content for my website which includes the theme, templates, and how-to.
-
install
hugo
$ snap install hugo --channel=extended
-
check installation
$ hugo version Hugo Static Site Generator v0.52/extended linux/amd64 BuildDate: 2018-11-28T18:27:35Z
-
clone this repo
$ git clone --recurse-submodules https://github.com/amintahmasbi/personal_website.git
- or create a new site:
$ hugo new site personal_website $ cd personal_website $ git init
-
Add and modify
README.md
and.gitignore
-
Make the first commit
-
Add a theme
$ git submodule add https://github.com/cboettig/hugo-now-ui themes/hugo-now-ui $ echo 'theme = "hugo-now-ui"' >> config.toml
-
Develop before deploy. Hugo does not remove generated files before building.
-
Start a server that builds draft content to check and modify the content with e.g., a
dev/
directory:
$ hugo server -D -d dev
- Run
hugo
to deploy to thepublic
folder (or any personalizedpublishDir
inconfig.toml
file)
Note: You can skip this section if you do not have any dynamic content to add.
- FLask
- Flask run
- Flask
- Install the heroku command line tools and login:
(venv) $ sudo snap install --classic heroku
(venv) $ heroku login
-
Clone an existing app
(venv) $ heroku git:clone --recurse-submodules -a (my-unique-app-name)
- Or create a new heroku app: (name is optional)
(venv) $ heroku create (my-unique-app-name)
-
Find and add the
hugo
buildpack:$ heroku buildpacks:search hugo $ heroku buildpacks:add roperzh/hugo $ heroku config:set HUGO_VERSION=0.52
-
Commit the changes
-
Finally, deploy!
$ git push heroku master $ heroku open
This project is licensed under the MIT License - see the LICENSE file for details