9f912f91eaf180b228bfec21da16186faf33c8c4 — Norm MacLennan 11 months ago abb8557
Render index banner properly on clients not using monospace font
2 files changed, 8 insertions(+), 1 deletions(-)

M pkg/gemserver/routes.go
M static/templates/index.gmi.tmpl
M pkg/gemserver/routes.go => pkg/gemserver/routes.go +5 -0
@@ 8,6 8,7 @@ import (


@@ 47,6 48,10 @@ func handleHome(gm *gamemanager.GameManager, version string) func(gig.Context) e
			return fmt.Errorf("couldn't load game: %w", startErr)

		sort.Slice(startStates, func(a int, b int) bool {
			return startStates[a].Description < startStates[b].Description

		return c.Render("gemif:/static/templates/index.gmi.tmpl", map[string]interface{}{
			"Stories": startStates,
			"Banner":  getRandomBanner(),

M static/templates/index.gmi.tmpl => static/templates/index.gmi.tmpl +3 -1
@@ 1,9 1,11 @@

GemIF is a simple Interactive Fiction engine for Gemini (think: twine but with fewer features).

Each story below is represented as a (relatively-) simple YAML file describing the scenes and transitions.
Each story below is written in a simple mark-up format similar to Gemini format and compiled into a (relatively-) simple YAML file describing the scenes and transitions.

Stories allow users to make choices, moving from scene to scene. Simple logic can be added in the form of "condition" tags attached to the game state. Making choices can apply those transitions, which allow for conditional text rendering and conditionally allowing use of transitions later in the story.