Website for Prof. Matias Cattaneo. Updated via HTML, compiled via Jekyll, and served via GitHub Pages.
- Top-level files like
index.html,publications.html,research.htmlcorrespond to/,/publications/, and/research/respectively. - Each HTML file has YAML front-matter at the top for Jekyll to process.
- Reusable fragments live in
_includes/, e.g. header, footer, etc. - Page layouts are in
_layouts/; the site only uses a single layout. - Menus are built and controlled by the
_data/navigation.ymlfile. - CSS, JS, and images are grouped under
assets/. - The site is built with Jekyll with a push to the
mainbranch and then automatically published via GitHub Pages (live when the green checkmark appears). - A Docker-based workflow is provided as a local development option.
- Pages are plain HTML. Edit the HTML as you normally would.
- The YAML front-matter block at the top of each page are directives to Jekyll and can otherwise be ignored.
- Jekyll will process Liquid syntax for asset/link paths. When adding new images for example, prefer
{{ 'assets/images/award.jpg' | relative_url }}so Jekyll injects the correctbaseurlfor GitHub Pages.
- 404s for assets on GitHub Pages: first check that
baseurlis set in_config.ymland that templates userelative_url. Inspect the page source and confirm asset URLs begin with/cattaneo/assets/.... - Absolute
0.0.0.0in console warnings during local dev: use_config.local.yml(already in repo) so generated absolute links point tohttp://localhost:4000, avoiding 0.0.0.0 addresses the browser blocks. - If a page needs to keep its old
/page.htmlURL, addredirect_fromto the page front-matter (thejekyll-redirect-fromplugin is enabled).