1
0
Fork
You've already forked intro
0
generated from leouieda/talk-template
Slides for a quick introduction about me.
  • JavaScript 54.3%
  • HTML 27.6%
  • CSS 9.3%
  • Less 7.2%
  • Python 1.6%
2026年02月06日 12:50:37 -03:00
assets Add slides about research 2026年02月06日 12:44:01 -03:00
css Add link to these slides so people can follow 2026年02月06日 12:50:37 -03:00
fonts Initial commit 2026年02月03日 13:14:38 +01:00
packages Initial commit 2026年02月03日 13:14:38 +01:00
.domains Set the correct domain 2026年02月03日 13:15:07 +01:00
environment.yml Initial commit 2026年02月03日 13:14:38 +01:00
index.html Add slides about research 2026年02月06日 12:44:01 -03:00
LICENSE.md Initial commit 2026年02月03日 13:14:38 +01:00
Makefile Initial commit 2026年02月03日 13:14:38 +01:00
README.md Initial commit 2026年02月03日 13:14:38 +01:00
serve.py Initial commit 2026年02月03日 13:14:38 +01:00
slides.md Add link to these slides so people can follow 2026年02月06日 12:50:37 -03:00

Template for my reveal.js based slides

This is a template I use to make reveal.js slides for talks and lectures. It adds some custom styling and CSS classes for making columns, footnotes, and more.

Preview: https://talk-template.leouieda.com

The original inspiration is this template by Matthew Turk: https://github.com/matthewturk/mjt-talk-template

Using

  1. Click on the "Use this template" button or go to https://codeberg.org/repo/create?template_id=1218098 to create a new repository for your slides.
  2. Change the HTML title (the one that appears on the browser tab) in index.html.
  3. Preview the presentation by serving the slides locally.
  4. Add your content to slides.md and images to assets (remove the images you don't want to use).
  5. Commit and push your changes.
  6. Edit or remove the .domains file depending on how you use Codeberg Pages.

What's included

index.html: This is the master document that sets up reveal.js and its plugins and loads the slide content from slides.md. Change the HTML <title> tag here.

slides.md: Markdown file with the actual slide content. The template includes some slides that demo the custom CSS classes available. Add your content here.

css/style.less: Custom styling and CSS classes (using Less). Edit to tweak colours, sizes, fonts, spacing, etc.

assets: Images used in the presentation. You can probably delete all of these when making your slides. Replace the favicon.png with a 32 x 32 px image to customize the icon (this is set in index.html).

fonts: Sources for the fonts used: FontAwesome, Atkinson Hyperlegible, Ubuntu Mono. Included in the repository for offline access. You could remove them and include fonts from a CDN (like Google Fonts) in index.html.

packages: "Vendored" versions of reveal.js, Less, and KaTeX (for maths) that are used. Having them in the repository is important for using the slides offline (on a plane or lecture room without easy internet access).

serve.py: Python script that serves the slides and reloads them whenever the source files change. Very handy for development. See below for instructions.

Serving the slides locally

Unfortunately, you can't just open the index.html file on browser to view your slides. Reveal.js requires an actual local server. You can set one up however you'd like. Below, I provide instructions for doing so in Python (which is what I use most of the time) but it would work with any other local server.

First, install the livereload Python package:

pip install livereload

or

conda install livereload -c conda-forge

Then, start a server at http://localhost:8008 by running:

python serve.py

The slides will open on your default browser and will automatically reload when you update any of the files in the repository.

Exporting to PDF

You can save your slides to PDF for a backup or to distribute (I find students like this because they can annotate the PDF). To do so, add ?print-pdf to the end of the URL (either local server or hosted) and then print the page to PDF.

This works best on Chrome/Chromium. The slides tend to be distorted on Firefox for some reason.

WARNING: Videos and gifs don't work on PDFs.

License

The template (slides.md, index.html, and css/style.less) is licensed under a Creative Commons Attribution 4.0 International License.