summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--res/about/about.gmi33
-rw-r--r--src/gmrequest.c3
3 files changed, 37 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5583afc2..03fdb929 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,6 +44,7 @@ include (Depends.cmake)
44message (STATUS "Preparing embedded resources...") 44message (STATUS "Preparing embedded resources...")
45# Fonts are too large to comfortably embed as a C source. 45# Fonts are too large to comfortably embed as a C source.
46set (EMBED_RESOURCES 46set (EMBED_RESOURCES
47 res/about/about.gmi
47 res/about/help.gmi 48 res/about/help.gmi
48 res/about/lagrange.gmi 49 res/about/lagrange.gmi
49 res/about/license.gmi 50 res/about/license.gmi
diff --git a/res/about/about.gmi b/res/about/about.gmi
new file mode 100644
index 00000000..34eda2cf
--- /dev/null
+++ b/res/about/about.gmi
@@ -0,0 +1,33 @@
1# About Pages
2
3These are all the About pages that Lagrange uses to display built-in or dynamically generated content.
4
5=> about:blank
6A blank page.
7
8=> about:bookmarks
9List of bookmarks.
10
11=> about:bookmarks?created
12List of bookmarks with creation dates.
13
14=> about:bookmarks?tags
15List of bookmarks that have at least one tag.
16
17=> about:debug
18Runtime debug information: contents of currently open tabs, navigation history, environment variables, command line arguments, and configured MIME hooks.
19
20=> about:feeds
21List of all entries from subscribed feeds.
22
23=> about:help
24User manual.
25
26=> about:lagrange
27Default home page with a large "Lagrange" ASCII art logo.
28
29=> about:license
30Open source licenses.
31
32=> about:version
33Release notes for each version. \ No newline at end of file
diff --git a/src/gmrequest.c b/src/gmrequest.c
index ea0a2d80..4631640e 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -290,6 +290,9 @@ static void requestFinished_GmRequest_(iGmRequest *d, iTlsRequest *req) {
290 290
291static const iBlock *aboutPageSource_(iRangecc path, iRangecc query) { 291static const iBlock *aboutPageSource_(iRangecc path, iRangecc query) {
292 const iBlock *src = NULL; 292 const iBlock *src = NULL;
293 if (equalCase_Rangecc(path, "about")) {
294 return &blobAbout_Embedded;
295 }
293 if (equalCase_Rangecc(path, "lagrange")) { 296 if (equalCase_Rangecc(path, "lagrange")) {
294 return &blobLagrange_Embedded; 297 return &blobLagrange_Embedded;
295 } 298 }