-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
51 lines (38 loc) · 1.39 KB
/
README
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
40
41
42
43
44
45
46
47
48
49
50
51
This is a Gemini (https://gemini.circumlunar.space/) plugin for Dillo.
Please refer to the Dillo documentation on how to install a plugin and
bind it to an URI scheme. In short, I have this:
$ tail -n 1 ~/.dillo/dpidrc
proto.gemini=gemini/gemini.filter.dpi
$ ls ~/.dillo/dpi/gemini
gemini.filter.dpi
$ cat ~/.dillo/gemini/config.json
{ "autoPin": true }
By default, the plugin prompts you to pin the certificate whenever you
visit a previously unknown host. The pinned certificates are stored in
~/.dillo/gemini/pinned. You can configure the plugin to override this
behavior by writing the following content to
~/.dillo/gemini/config.json :
{ "autoPin": true }
or by copying the provided config.json to said location.
The plugin renders to plain, unstyled HTML, so it should be possible
to style the output in the standard Dillo way. The body used in
generated documents has the ID "gemini-plugin-body" so that you can
style just dillo in ~/.dillo/style.css. I currently use these rules
for a pleasant color scheme:
#gemini-plugin-body {
background-color: #fec;
color: black;
}
#gemini-plugin-body div {
padding: 2em;
padding-top: 1em;
padding-bottom: 1em;
}
#gemini-plugin-body h1,h2,h3,ul {
margin: 0;
padding: 0;
}
#gemini-plugin-body ul { margin-left: 1em; }
#gemini-plugin-body h1 { color: #624; }
#gemini-plugin-body h2 { color: #462; }
#gemini-plugin-body h3 { color: #246; }