This site has been built with GatsbyJS
- Clone this repo
- yarn install
- gatsby develop
- Open site at localhost:8000
- You need write access to this repo
- Just git push - this will kick off a deployment on netlify
- The netlify account is owned by Martin Brochhaus (mbrochh)
- The
layouts
folder contains the main template fileindex.js
- That file uses
Header.js
andFooter.js
. - The
pages
folder contains all the pages:index.js
is the homepage- All other filenames become the slug of the page
- You can link to each page via
import Link from 'gatsby-link'
- Use it like so:
<Link to="/about">About</Link>
- You can link to each page via
- The news module was implemented following this tutorial:
https://www.gatsbyjs.org/blog/2017-07-19-creating-a-blog-with-gatsby/
After the conference, we usually want to archive the site into static pages, so that we can kick-off a new repo for the next year's conference and can easily host all our old sites without being bound to any software stack.
- Disable Login/Signup/Archive links in
Header.js
and deploy - Create folder
static/archive/YYYY
cd
into that folder- Now run
wget
:
wget
--recursive
--no-clobber
--page-requisites
--html-extension
--convert-links
--restrict-file-names=windows
--domains pycon.sg
--no-parent
https://pycon.sg