Skip to content

dhzh/dhzh

Repository files navigation

Source

This website was built based on code from Gautam Rao, available here. My adaptations to the code including adding invited presentations/media coverage for working papers, as well as to auto-expand the abstract of the first working paper (my JMP). If you'd prefer not to expand the first paper, it can be changed in themes/academimal/layouts/partials/publications.html, lines 8-12.

The website is deployed using a Github Action, with instructions here.

How to Edit Each Section

Sidebar

Sidebar is controlled by the file config.toml.

  • title is the title of the website.
  • shortbio is the text displayed right under the title.
  • logo is the filename of the picture. The file is placed in content/. For example, if logo = "gr.jpg" then the picture should be placed at content/gr.jpg (as it is now).

Bio, Contact, From Another Life, and Personal

Those four sections are controlled by content/sections/{aboutme.md, contact.md, from-another-life.md, personal.md}. The files are formatted using "Markdown" (.md), a lightweight markup language. A quick guide is available here. To modify those sections, simply edit the corresponding Markdown file.

Publications, Working Papers, and Work in Progress

Those four sections are controlled and automatically generated by "data files" placed under data/ directory. For example, data/work_in_progress/ contains the entries displayed in the "Work in Progress" section. Each directory (for example, data/work_in_progress/) may contain multiple data files, and data files under the same directory will be combined, so you may group entries by year, book, affiliation, etc. and place them in individual data files.

Syntax of Data Files

All data files follow the same format:

works:
- title: "The title of the article"
  pdflink: "http://example.com/link-to-the.pdf"
  book: "Where and when does the article appear"
  note: "A short note displayed under the title"
  coauthors: "Coauthor A, Coauthor B and Coauthor C"
  links:
    - url: "http://example.com/external-link-1"
      text: "Text of the link"
      note: "A short description of the link"
    - url: "http://example.com/external-link-2"
      text: "Text of the link"
      note: "An unlimited number of links are supported!"
  abstract: >
    Abstract of the article. Don't forget the ">" above.

- title: "The second article"
  note: "The same syntax as the first article"

Everything in the data files are optional, except the title. So you may have an article without abstract and links, and another one without note and PDF link.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published