1 .TH PAGE 1 "2024-03-13" "1.3.1" "Page Manual"
3 page \- gemtext based static website generation tool for gemini and http.
8 page is a tool that lets you create a static website from a directory of
11 To use, go to the directory containing the site, and run \fBpage\fR. It will
12 create two directories in the parent directory using the same name but
13 appending \fB_html\fR and \fB_gemini\fR.
15 The website directory has some requirements for page to work correctly. It
16 must contain \fIgemtext\fR and a \fIlayout\fR, and optionally may contain
20 Any file with ending \fI.gmi\fR is interpreted as gemtext and will be parsed
21 as html with the following rules:
23 \- The first two lines are checked for front matter
25 \- If the first or second line starts with \fB--- title:\fR, the text following will be treated as the title of the page and the line will be removed from the output.
27 \- If the first or second line starts with \fB--- description:\fR, the text following will be treated as the description of the page and the line will be removed from the output.
29 \- URLs that end with the extension \fI.gmi\fR will be replaced with \fI.html\fR unless the url begins with \fIgemini:\fR
31 Example, this could be index.gmi. The first link will be converted to html but the second won't:
35 --- description: Clemland is dedicated to all things sound
39 My projects are located here:
41 => /projects.gmi Projects
43 This is a good gemini page:
45 => gemini://r.bdr.sh/page.gmi
49 A file called _layout.html at the root of the element. It must be present. It
50 should include the three following keywords, \fBexactly as shown\fR.
53 will get replaced with the front matter title of the gemtext file.
56 will get replaced with the front matter description of the gemtext file.
59 will get replaced with the body of the gemtext file.
68 <meta charset="utf-8">
69 <meta name="viewport" content="width=device-width, initial-scale=1">
70 <meta name="author" content="Clem Fandango">
71 <meta name="description" content="{{ description }}">
73 <title>Clemland {{ title }}</title>
75 <link rel="stylesheet" type="text/css" href="/style.css">
86 Any file that isn't gemtext or the layout will be copied as-is. This includes
87 hidden files! The only ones that are excluded are .git and .gitignore.
91 .I https://r.bdr.sh/page.html
93 \ Rubén Beltrán del Río <\fIpage@r.bdr.sh\fP>