~nromdotcom/gemif

ref: 73f32fca6ddc83433128bd62edc6e2dff4e6716d gemif/static/templates/index.gmi.tmpl -rw-r--r-- 1.4 KiB
73f32fcaNorm MacLennan Make homepage customizable in config.toml 1 year, 3 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{{- if ne .Config.Title "" }}
# {{.Config.Title}}
{{- else}}
```
{{.Banner}}
```
{{ end -}}

{{- if .Config.DisplayPoweredBy }}
Powered by GemIF v{{.Version}}
{{ end -}}
{{- if ne .Config.PageBody "" }}
{{.Config.PageBody}}
{{- else }}
GemIF is a simple Interactive Fiction engine for Gemini (think: twine but with fewer features).

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.
{{ end -}}

## Stories

{{- range $key, $value := .Stories}}
=> /story/{{$value.ID}} {{$value.Name}} - 
{{- if gt (len $value.Description) 75}} {{slice $value.Description 0 74}}...
{{- else}} {{$value.Description}}
{{- end}} (by {{$value.Author}})
{{- end}}

{{- if .Config.DisplayProjectInfo}}
## Learn More
=> https://git.sr.ht/~nromdotcom/gemif [https] source at sr.ht
=> mailto:~nromdotcom/gemif@lists.sr.ht [mailto] Send in your stories for free hosting
{{end}}
{{ if ne .Config.ContactEmail ""}}
Contact the operator of this capsule:
=> mailto:{{.Config.ContactEmail}}
{{end}}