Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Kernel
Commits
d9f71ce1
Commit
d9f71ce1
authored
Oct 09, 2022
by
Romain Casati
Browse files
WWW: Support for multiple aux and modules file in gallery.
parent
d5eebe04
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/pelicanconf.py
View file @
d9f71ce1
...
...
@@ -80,9 +80,15 @@ def galerie(*args):
extensions
=
f
"extensions=
{
','
.
join
(
extensions
)
}
&"
if
extensions
else
""
url
=
f
"https://
{
domain
}
.basthon.fr/?
{
language
}{
extensions
}
from=
{
urllib
.
parse
.
quote
(
url
)
}
"
if
aux
is
not
None
:
url
+=
f
"&aux=
{
urllib
.
parse
.
quote
(
aux
)
}
"
if
isinstance
(
aux
,
str
):
aux
=
[
aux
]
for
a
in
aux
:
url
+=
f
"&aux=
{
urllib
.
parse
.
quote
(
a
)
}
"
if
module
is
not
None
:
url
+=
f
"&module=
{
urllib
.
parse
.
quote
(
module
)
}
"
if
isinstance
(
module
,
str
):
module
=
[
module
]
for
m
in
module
:
url
+=
f
"&module=
{
urllib
.
parse
.
quote
(
m
)
}
"
return
url
def
one_section
(
language
,
html
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment