Quentin Schulz
f4888f6831
themes: fix URI matching used for deciding if URI's local in menu
...
We want to distinguish between URI references ("local" pages), such as
path/to/another/page/of/my/website, from the other ones, such as
https://example.com in the menu to know how to build the URL.
The issue is that we did the distinction between the two by checking if
the string starts with "http".
Unfortunately, it does not match other valid URI schemes. One example is
mailto:address@example.com to open a mail client with the recipient
being address@example.com .
There are many other valid URI schemes (tel, ftp, irc, ...).
Under the current code, we think anything that isn't started by "http"
is local, i.e. we need to append the string to the parent path of the
current page.
This means that we have
https://mywebsite.example.com/mailto:address@example.com linked in the
menu instead of the expected mailto:address@example.com.
Let's fix that with a very simple test. A URI reference is commonly
detected as anything that does not contain a scheme (which has to be
suffixed by ':') or if it does, that the given path starts with './'.
This is most likely not handling all the cases but at least most of the
common ones.
Please refer to the RFC for further information:
https://www.rfc-editor.org/rfc/rfc3986.txt
Signed-off-by: Quentin Schulz <foss@0leil.net>
2019-03-20 20:56:16 +00:00
Adrien Beudin
e184f90433
update material theme and fix responsible
2018-03-28 10:28:46 +02:00
Adrien Beudin
017af6efbb
update theme and fix
2018-03-27 13:43:34 +02:00
Adrien Beudin
3aa14884e3
update material theme
2018-03-27 10:52:52 +02:00
Adrien Beudin
c921c4420b
support night mode for material theme
2018-02-27 20:53:30 +01:00
Adrien Beudin
70b5e5e90c
night mode for exposure
2018-02-27 13:53:48 +01:00
Adrien Beudin
080e50f318
[fix] refactor encryption function
2017-10-04 00:44:47 +02:00
Adrien Beudin
f53b175939
[fix] index css
2017-10-03 05:08:56 +02:00
Adrien Beudin
f2396c32a5
[enh] auto login
2017-10-03 00:43:29 +02:00
Adrien Beudin
53775d233b
[enh] add global password
2017-10-02 11:14:50 +02:00
Adrien Beudin
1a2e692a02
[fix] update encrypt material theme
2017-09-29 03:17:44 +02:00
Adrien Beudin
3b8b989ec1
[enh] add password acces
2017-09-27 13:48:21 +02:00
Adrien Beudin
95358281ef
fix fullscreen video on click
2017-06-04 21:54:04 +02:00
Adrien Beudin
59f96c0b24
add background color for audio player
2017-06-04 16:28:09 +02:00
Adrien Beudin
fe83ad3664
add floating image in paragraph section
2017-05-23 13:44:26 +02:00
Adrien Beudin
124f4ae315
fix load only css and js if is used on material theme
2017-05-23 10:25:18 +02:00
Adrien Beudin
3da2f92049
remove youtube section on iframe
2017-05-15 14:05:26 +02:00
Adrien Beudin
a73e5730e3
only load css and js if section is used
2017-05-15 13:02:53 +02:00
Adrien Beudin
8e17843c99
Revert "only load css and js if section is used"
...
This reverts commit 91c702b299cfc896d86c355e8608ea9051a77072.
2017-05-14 21:33:39 +02:00
Adrien Beudin
91c702b299
only load css and js if section is used
2017-05-14 18:13:47 +02:00
Adrien Beudin
d6bc47a939
add quote section
2017-05-09 14:37:32 +02:00
Adrien Beudin
0749e9fec2
fix youtube section + add docs
2017-05-03 19:19:55 +02:00
Adrien Beudin
9f6148b551
add youtube support
2017-05-03 16:50:06 +02:00
Adrien Beudin
7f8942f638
update material phase 2
2017-04-28 16:46:31 +02:00
Adrien Beudin
7d06ed2792
update material theme
2017-04-27 17:59:46 +02:00
Adrien Beudin
810d9ba4c9
fix ffmpeg code
2017-04-25 16:24:41 +02:00
Adrien Beudin
0ecd4cde5f
reduce size of cover
2016-11-04 15:02:18 +01:00
Adrien Beudin
b57efe00c9
reduce size of cover
2016-11-04 14:55:04 +01:00
Adrien Beudin
1d04ef306a
fix url of og:image
2016-11-04 14:47:47 +01:00
Adrien Beudin
7c8d17fbcb
fix bug og:image
2016-11-04 14:37:46 +01:00
Adrien Beudin
a465fdfe69
add support of Open Graph
2016-11-04 12:55:02 +01:00
Laurent Peuch
8a7e5357c3
[enh] port baguette responsive to material theme
2016-11-01 12:31:08 +01:00
Laurent Peuch
1db01d43ef
[mod] fix indentation
2016-11-01 12:30:16 +01:00
Laurent Peuch
aa7121250f
[mod] fix indentation
2016-11-01 12:28:45 +01:00
Laurent Peuch
7f7d93d164
[mod] retab
2016-11-01 12:28:02 +01:00
Laurent Peuch
1c7cd448e2
[mod] fix indentation
2016-11-01 12:27:28 +01:00
Laurent Peuch
e6fd94a6c1
[mod] fix indentation
2016-11-01 12:27:08 +01:00
Laurent Peuch
5d2c521afd
[mod] trailing spaces
2016-11-01 12:25:20 +01:00
Laurent Peuch
202594d9fa
[mod] start porting baguette responsive to material theme
2016-11-01 12:25:14 +01:00
Titoko
01c5464e67
Rebase to Upstream (include light mode)
2016-10-29 21:07:02 +02:00
Adrien Beudin
b02406c606
fix light mode
2016-05-27 12:06:46 +02:00
Adrien Beudin
b7edcfcb08
enable light mode
2016-05-27 11:57:03 +02:00
Titoko
c0e7807cfa
Add rss for recursive galleries
2016-05-23 19:37:37 +02:00
Adrien Beudin
d3c0e1e466
update material theme
2016-05-20 08:47:02 +02:00
Adrien Beudin
530a524373
picture group responsible
2016-05-18 17:43:43 +02:00
Antoine Lamielle
4733ee509a
Fix twitter and facebook links in author section
...
On the material theme this time
2016-05-14 00:28:30 +02:00
Adrien Beudin
fd3eca33e8
video index material
2016-05-06 14:16:43 +02:00
Adrien Beudin
bbeeac535c
full picture video
2016-05-02 09:52:10 +02:00
Adrien Beudin
5fd7b89ca9
bordered video
2016-04-30 10:24:37 +02:00
Adrien Beudin
fc82ddc1ab
start video support
2016-04-29 12:40:34 +02:00