Add a page
Start your own site
- On GitHub, click Use this template at the top of this repository, and create your copy.
- In your copy, open Settings > Pages, and under Build and deployment choose GitHub Actions as the source.
- In
.github/workflows/pages.yml, changesite-urlto your site’s address,https://<your-name>.github.io/<repository>/. The sitemap and each page’s canonical address use it. - Push, or run the Publish site workflow from the Actions tab. Your site appears at that address.
Add or change a page
- Write the page in MDZip Studio, VS Code or Obsidian, and save it as an
.mdzin thepagesfolder. Its file name becomes its address:pages/contact.mdzis published ascontact.html. - Give it a title. The page’s title in the browser tab, and in search results, comes from the title stored in the
.mdzfile’s details (its manifest). Its description becomes the summary search engines show. - Give it a cover picture, if you like. When someone shares the page’s link, chat apps and social sites show the cover as its preview. Add a PNG or JPEG of about 1200 × 630 pixels to the
.mdz, then right-click it in the editor’s file list and choose Set as Cover Image. Link previews don’t show SVG. - Link to other pages by their file name, like
[How it works](how-it-works.mdz). The link works in your editor, and on the website it points to the web page. - Add the page to the menu in
site/template.html, if it belongs there. - Commit and push. The site updates in a minute or two.
You can also edit a page on github.com: upload the new .mdz over the old one.
Change how the site looks
- Layout:
site/template.htmlis a Pandoc template.$body$is where the page goes, and$title$its title. - Style: edit
site/style.css.
Things to know
- Pages are converted with Pandoc’s Markdown, which reads standard Markdown and GitHub-style tables and task lists.
- HTML in a page (like
<img ... align="right">) is passed through to the web page. - Pages in subfolders of
pagesare published in the same subfolders.