This repo contains the code for PyCon India 2021's website. The website is build using Hugo and contains both the hugo templates and data files related to the website
The website uses data files to fill up most of the contents in the different sections of the website. Following is a brief overview for content editors to update content in the website:
- Top Navigation(always live): The items in the top navigation are managed by data/nav.yml. The file has a list of link items with properties
nameandlink. You can add, remove or update items to decide which items to show in the top navigation. Also, there are two other keys:primary_button_textandprimary_button_link. These are used to decide what the primary button in the top navigation points to. - Hero(always live): All the content in the hero section and about section are managed by data/hero.yml. The
primary_buttonandsecondary_buttonin this file control which links and things the buttons in the hero sections points to and can be updated as needed by the content team. - Keynote speakers(optional live): The contents for this section can be found at data/keynote_speakers.yml.To make this section live, you need to mark
livekey in the file astrue. Apart from this, the file has adatakey which contains the list of keynote speaker items. Each of these items have keysname,affiliationandimage. - Tickets(optional live): The contents for this section can be found at data/tickets.yml.To make this section live, you need to mark
livekey in the file astrue. Apart from this, the file has adatakey which contains the list of ticket items. Each of these items have keys:name: ticket namedetails: details about closing date, etc. for the ticketprice: price of ticket in INRcategory:conference,workshopordevsprint. There can be only ticket each with categoryworkshopanddevsprintlink: absolute url to the ticket link
- Outreach Partners(optional live): The contents for this section can be found at data/communities.yml.To make this section live, you need to mark
livekey in the file astrue. Apart from this, the file has adatakey which contains the list of outreach partner items. Each of these items have keysname,linkandimage. - Footer(always live): The footer section has 2 sets of links -
social_linksandquick_links. The items insocial_linkshave 3 keys:name(shown as title attribute or tooltip),icon(class name of font-awesome icon),link(link to the particular social media). The items inquick_linksjust have 2 attributesnameandlink.
This site is built with Hugo. For a basic introduction to git and GitHub you can follow https://guides.github.com/introduction/git-handbook/
- Install Hugo using the steps from https://gohugo.io/getting-started/installing/.
- Fork the repository and clone to your machine by using git clone
https://github.com/- <username>/inpycon2021. cdto the repo.- Run
make dev. - Visit the local development server at http://localhost:1313/.
If you are interested in contributing to the website, please check out our Contributing Guide
As a contributor please follow the Code of Conduct to keep the community open and inclusive. Please read and follow the PyCon India Code of Conduct which governs the overall conduct for the conference.