diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | res/about/about.gmi | 33 | ||||
-rw-r--r-- | src/gmrequest.c | 3 |
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) | |||
44 | message (STATUS "Preparing embedded resources...") | 44 | message (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. |
46 | set (EMBED_RESOURCES | 46 | set (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 | |||
3 | These are all the About pages that Lagrange uses to display built-in or dynamically generated content. | ||
4 | |||
5 | => about:blank | ||
6 | A blank page. | ||
7 | |||
8 | => about:bookmarks | ||
9 | List of bookmarks. | ||
10 | |||
11 | => about:bookmarks?created | ||
12 | List of bookmarks with creation dates. | ||
13 | |||
14 | => about:bookmarks?tags | ||
15 | List of bookmarks that have at least one tag. | ||
16 | |||
17 | => about:debug | ||
18 | Runtime debug information: contents of currently open tabs, navigation history, environment variables, command line arguments, and configured MIME hooks. | ||
19 | |||
20 | => about:feeds | ||
21 | List of all entries from subscribed feeds. | ||
22 | |||
23 | => about:help | ||
24 | User manual. | ||
25 | |||
26 | => about:lagrange | ||
27 | Default home page with a large "Lagrange" ASCII art logo. | ||
28 | |||
29 | => about:license | ||
30 | Open source licenses. | ||
31 | |||
32 | => about:version | ||
33 | Release 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 | ||
291 | static const iBlock *aboutPageSource_(iRangecc path, iRangecc query) { | 291 | static 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 | } |