Skip to content
Public template

About

Publish your ElfHosted Saga on GitHub Pages

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

Saga template

A Saga is your own written account of running apps on ElfHosted. You draft it with Sam, ElfHosted's assistant, and publish it on your own GitHub Pages site. Honest, accurate Sagas from qualifying accounts earn hosting credit, whether they're positive or critical: see the guide. This template turns the files from your ElfBot Saga export into a clean, readable site.

Watch: how to publish your Saga on GitHub Pages (2 minutes)

Watch it done start to finish in two minutes, or read the guide in the ElfHosted docs.

Set it up

ElfBot's Saga page walks you through this, with links filled in for your account.

  1. In ElfBot, check your Saga and choose Download my Saga. You get up to three files: index.md, and availability.svg and og.png when your Saga has a chart and a share picture.
  2. Click Use this template at the top of this page, then Create a new repository. Make it public.
  3. In your new repository, choose Add file, then Upload files. Click choose your files, open your Downloads folder and select the files together (hold Cmd on a Mac or Ctrl on Windows as you click), or drag them onto the page. Choose Commit changes. Your index.md replaces the sample Saga, and the sample chapter drops out of the list. If your browser added a number to a name because you downloaded it before, such as index (1).md, use the newest copy and rename it back to exactly index.md, availability.svg or og.png first.
  4. Go to the Settings tab at the top, then Pages in the menu on the left. Under Build and deploy, choose Deploy from a branch, pick the main branch and the / (root) folder, then save. Your site appears at https://USERNAME.github.io/REPO within a minute or two.
  5. Back in ElfBot, paste that address into Send us your link. ElfBot checks the page for your Saga ID and the note, then sends it to ElfHosted to confirm your reward.

Choose a look

Open index.md and set two lines near the top:

style: long-read
palette: forest
  • style is long-read (an essay), uptime-log (a log of short entries with the chart up front) or at-a-glance (cards in a grid).
  • palette is forest, dusk, ember, tide or graphite. Each one has a light and a dark version that follow the reader's device.

If a value is missing or misspelled, the site uses long-read and forest. Your description there is what search engines and link previews show.

Add a chapter

Create a file in chapters/ named for the year and month, such as chapters/2027-01.md:

---
layout: chapter
title: "January 2027"
date: 2027-01-20
---

What happened this month.

It shows up in the chapter list on your Saga page, newest first. To use a chart, put an .svg file in assets/ and add ![A short description](assets/name.svg) to the chapter.

Keep it pseudonymous

  • Set author near the top of index.md to a pseudonym, or remove the line to show no name.
  • Commits carry the git author name and email you used. Check them with git config user.name and git config user.email, and use a pseudonym and your GitHub noreply address if you want to stay private.
  • Your GitHub profile and username are visible too. Check them before you share the link. Your username is part of the default site address.

It's yours

The repository and the site belong to you. Edit the text freely, and delete the repository or turn off Pages at any time to take it down.

The disclosure stays

Every page shows a short note that you wrote it for ElfHosted's Saga programme, which offers hosting credit for an honest account, and that your opinions are your own. It lives in _layouts/default.html, not in your content, so editing index.md doesn't change it. It has to stay in place for the reward, and so does the Saga ID at the foot of the page, which shows the site is yours.

Licence

MIT. See LICENSE.

About

Publish your ElfHosted Saga on GitHub Pages

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages