Skip to content

Hamakor/pycon-il-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website for PyCon Israel 2024

Website built with Pelican, using a PyCon-Israel-Flex theme based on Flex.

Technicalities:

The Python side is managed by Poetry. Use poetry install to get the dependencies.

The theme styling is built with gulp and other npm tools. If you want to change anything in the CSS,

  • Preparation: Go to the folder website_2024/themes/PyCon-Israel-Flex, and there run the command npm install
  • "Compilation" (mostly of the Less sources): Run the command npm run build

When you want to build the site itself, use make html from the website_2024 folder. It puts the built site in output. You can use make clean to remove everything if you want to rebuild from scratch; but it doesn't clean the theme files.

You can also use make devserver for the HTML, and npm run watch for the styling -- these create watchers which update the output as you change the source files.

The home page is currently defined in the templates website_2024/themes/PyCon-Israel-Flex/templates/homepage.html and .../homepage-he.html. In the original template that came with the Flex theme, this page lists articles (blog posts), but we don't want that. The original template was kept for reference as index.html.orig. Also for reference, we kept the PyCon Israel 2023 home-page at website_2024/content/pages/index.html.2023. Technically, the home page is defined like other pages, using files homepage.md and homepage-he.md in content/pages, but these only contain metadata (language, selection of template, etc).

Other interesting files to look at:

  • The settings are defined in website_2024/pelicanconf.py (we are not publishing yet, "production" should use publishconf.py)
  • The sidebar is defined in website_2024/themes/PyCon-Israel-Flex/templates/partial/sidebar.html
  • The footer (currently still default, to be changed) is in website_2024/themes/PyCon-Israel-Flex/templates/partial/footer.html
  • All (non-partial) templates extend website_2024/themes/PyCon-Israel-Flex/templates/base.html -- that means that template defines structure for everything.

References of software used: