Hi, I have a repository with hugo project (link below) and I’d like to use github pages, there is a simple way to do this?
https://github.com/ecouto/ecouto
Thanks.
Hi, I have a repository with hugo project (link below) and I’d like to use github pages, there is a simple way to do this?
https://github.com/ecouto/ecouto
Thanks.
Have you tried https://gohugo.io/tutorials/github-pages-blog/ ?
I saw this tutorial, but I almost delete my repository =D …
is there other tutorial?
Try that. It uses Wercker to deploy to github pages.
Personally, I use a variation of this to deply via rsync to digital ocean.
Just follow the Deployment via /docs folder on master branch part. It’s the easiest way. And also, it’s completely safe, i.e. no chance for your repository to go kaboom.
ok Guys I’ll try again …
Thank you
Hey Guys Have you tried installing https://desktop.github.com/ ???
Only for windows and mac
I’m using Linux Mint.
I think the simplest way of doing the deployment is using Travis. Once you’ve Travis set up, you only need a small travis file which takes care of everything.
I tried the Wercker approach in the past. I had to go away from this approach because it is too complicated (at least for me) to make changes to the steps involved.
A complete travis file which takes care of rendering the site, getting the latest theme version and deploy the site to GitHub Pages looks like this: https://github.com/mgmart/SchnuddelHuddel/blob/master/.travis.yml.
To get started with Travis is very easy if you’re already on Github and is described here: Redirecting…
@mgmart I’m getting this error when I try to build on travis.
The command “git submodule update --init --recursive” exited with 0.
0.03s$ hugo -v
INFO 2017/07/01 17:11:11 Using config file:
WARN 2017/07/01 17:11:11 Unable to find Static Directory: /home/travis/build/ecouto/ecouto/static/
WARN 2017/07/01 17:11:11 No static directories found to sync
WARN 2017/07/01 17:11:11 No translation bundle found for default language “en”
WARN 2017/07/01 17:11:11 Translation func for language en not found, use default.
WARN 2017/07/01 17:11:11 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
Started building sites …
WARN 2017/07/01 17:11:11 Failed to read data from images/playlearn.jpg/playlearn.jpg: Data not supported for extension ‘jpg’
WARN 2017/07/01 17:11:11 Failed to read data from images/playlearn_1.jpg/playlearn_1.jpg: Data not supported for extension ‘jpg’
WARN 2017/07/01 17:11:11 Failed to read data from images/playlearn_2.jpg/playlearn_2.jpg: Data not supported for extension ‘jpg’
WARN 2017/07/01 17:11:11 Failed to read data from images/playlearn_3.jpg/playlearn_3.jpg: Data not supported for extension ‘jpg’
WARN 2017/07/01 17:11:11 Failed to read data from images/profile.jpg/profile.jpg: Data not supported for extension ‘jpg’
INFO 2017/07/01 17:11:11 found taxonomies: map[string]string{“tag”:“tags”, “category”:“categories”}
WARN 2017/07/01 17:11:11 [en] Unable to locate layout for “taxonomyTerm”: [taxonomy/category.terms.html.html taxonomy/category.terms.html _default/terms.html.html _default/terms.html indexes/indexes.html.html indexes/indexes.html theme/taxonomy/category.terms.html.html theme/taxonomy/category.terms.html theme/_default/terms.html.html theme/_default/terms.html theme/indexes/indexes.html.html theme/indexes/indexes.html]
ERROR 2017/07/01 17:11:11 Error while rendering “page”: template: work/single.html:1:3: executing “work/single.html” at <partial “head.html” …>: error calling partial: template: partials/head.html:9:41: executing “partials/head.html” at <index .Site.Data.css…>: error calling index: index of untyped nil
The command “hugo -v” exited with 255.
Done. Your build exited with 1.
As you do not use any theme, it is safe to remove the line
git submodule update --init --recursive
.
Actually it causes the fail because it tries to init a nonexistent submodule.
If you would have cloned a theme using as a submodule, this line would get the latest version of the theme.
The same goes for - pygmentize -V
. Pygments is a library used by some themes for syntax highlighting. If you don’t use pygments. you are safe to delete that line and also:
- sudo pip install pygments
and
python:
- "2.7"```
But that's probably for a later step just to clean up. It should not do any harm for the moment.
not working yet …
I did some modify using the tutorial Setup Hugo blog on Github Pages with Travis CI , but now I get:
The command "eval go get -t -v ./… " failed. Retrying, 2 of 3.
github.com/ecouto/ecouto (download)
warning: “./…” matched no packages
can’t load package: package github.com/ecouto/ecouto: no buildable Go source files in /home/travis/gopath/src/github.com/ecouto/ecouto
The command "eval go get -t -v ./… " failed. Retrying, 3 of 3.
github.com/ecouto/ecouto (download)
warning: “./…” matched no packages
can’t load package: package github.com/ecouto/ecouto: no buildable Go source files in /home/travis/gopath/src/github.com/ecouto/ecouto
The command "eval go get -t -v ./… " failed 3 times.
The run you’ve made after removing the line
git submodule update --init --recursive
would have worked.
If you look in your log at https://travis-ci.org/ecouto/ecouto/jobs/249241968, you see that hugo exited with an error.
The command "hugo -v" exited with 255.
Done. Your build exited with 1.```
I would suppose that you try to get the site up and running locally.
It’s working locally … I tried to run only deleting the line git submodule update --init --recursive
but not worked.
I’ll try to do something to working well…
@mgmart thank you
Are you using the same version of Hugo on both places?
I did not get error now on travis, but how Can I access my website?
https://ecouto.github.io/ecouto/ not working.
@MunifTanjim locally
Hugo Static Site Generator v0.16-DEV BuildDate: 2016-02-06T15:14:17-02:00