This is the source for the Monash Data Fluency website.
git clone --recurse-submodules https://github.com/MonashDataFluency/data-fluency-website
cd data-fluency-website
# For hugo v0.41, currently used version
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/b1e187384baf6b50960ceed7d0964c151d14eada/Formula/hugo.rb
# brew install hugo
# sudo apt-get install hugo
hugo server
To update the site:
- Edit the Markdown in
content
(and possibly files instatic
orconfig.toml
) - Check that the site builds and looks correct by locally running
hugo server
. git commit
your changes andgit push
.
Deployment to the live site at monashdatafluency.github.io happens automatically, via Travis CI.
You'll need Hugo.
git clone --recurse-submodules https://github.com/MonashDataFluency/data-fluency-website.git
hugo server
# or if you want to see pages marked as drafts
# hugo server -D
- Content is in
content/
- Images and CSS are in
static/
- Some theme customization and overrides lives in
layouts/
We want past events to automatically appear as a list of 'posts' at the bottom of the events page. To do this:
- Create a new page in the
content/events
folder (eglaunch-workshop-20-mar-2018.md
). Include the date at the end of the file as shown. - Copy the content for the past event on
content/events/_index.md
into the new page dedicated to the past event. - Replace the content on
content/events/_index.md
with info about any upcoming events.
Commits pushed to the master branch are deployed to the live site automatically. You can monitor the build and deployment process on Travis CI.
# Hide the site title in the top navigation area
show_title_in_navigation = false
# list Sections here (by filename minus .md) that you want to exclude from the front page navigation
hide_sections_in_main_menu = ["intro_to_python"]
Adding the tag no_sidebar
to a page hides the sidebar
listing all pages in that section, for that page.
Normally, deployment of the live site will happen automatically with every commit pushed to the master
branch -
you don't need to do anything but wait until the site goes live. You can monitor the build and deployment process on
Travis CI.
If for some reason you need to build and deploy the live site manually, do:
# This builds the static pages, commits and pushes to the Github pages site (using the 'public' git submodule).
# It doesn't commit or push any changes to your Markdown source - do that yourself.
./deploy.sh