-
Ely Flores
- Software Engineer @ Nearsoft
- UABC / ENSEIRB
- Code. Java. Web. Star Wars. Books. Coffee. Wine. Love.
-
Fernando Montes
- Senior Software Engineer @ Nearsoft
- ITESM - CEM
- Code. Web. Videogames. Books. Coffee. Wine. Love
- Intro
- The tools
- Setup
- Coding time
- Create base site
- Personalize!
- Publish to Github pages
- What is next?
- What are we going to do?
- What is the expectation?
- What is the motivation?
- Git
- Github
- Hugo
- Github Pages
- Markdown
- Any text editor
- Install Git (https://git-scm.com/downloads)
- Install Hugo (http://gohugo.io/overview/installing/)
- Create a Github Account!
- Create a Github repository (e.g. my-profile-com-mx)
- git clone
github_repository_url
- cd
github_repository_folder
- hugo new site mysite
- cd mysite
- git clone https://github.com/gcushen/hugo-academic.git themes/academic
- cp -av themes/academic/exampleSite/* .
- Copy the example site from themes/academic into current directory, this will give us our base site to work on.
- hugo server --watch
- Site must be accessible at this URL: http://localhost:1313/
- Commit and push your changes!
- Personalize your name (mysite/config.toml)
- Personalize your picture (mysite/static/img/portrait.jpg)
- Update personal data (mysite/config.toml)
- e.g. [[params.social]]
- Update the sections you would like to include
- [[menu.main]]
- Update the content of your site
- Modify mysite/config.toml file to add the lines that will allow your site to be published.
- Make sure all your latest changes are committed and pushed.
- Create a new repo where your site will be published (
username.github.io
) - Clone that repo in a separate folder (different from
my-profile-com-mx
) - cd
my-profile-com-mx/mysite
- hugo -t "academic"
- cd ..
- mv mysite/public/* ../username.github.io/
- cd
username.github.io
- git add -A
- git commit -m "Publish site"
- git push
- Go to to http://username.github.io to see your site live! :-)
- Repeat steps from 5 to 12 to update / re-publish your site.
- This is the start of a new path for you. Use your power wisely.
- We recommend you to visit: https://gohugo.io/ to learn more about Hugo.
- We used the Academic theme for the purposes of this workshop, go ahead and visit http://themes.gohugo.io/ to see more sites or even better, create your own theme!
- Continue adding content, keep your site updated! Anything you learn, go ahead and publish it! You never know who will read it and find it useful!
- Be Happy & keep learning new things :-)
- http://gohugo.io/tutorials/github-pages-blog/
- https://pages.github.com/
- http://themes.gohugo.io/academic/
- https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
- http://codethejason.github.io/blog/setupghpages/
- Visit http://nearsoft.com/about/
- http://nearsoft.com/join-us/
- Nearsoft Jobs: https://github.com/Nearsoft/jobs
- Looking for a Nearsoftian? Visit this map