Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
funkwhale.audio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
funkwhale.audio
Commits
1897d080
Verified
Commit
1897d080
authored
3 years ago
by
Georg Krause
Browse files
Options
Downloads
Patches
Plain Diff
Make sure a default page is available in each language
parent
e10a8e73
No related branches found
No related tags found
No related merge requests found
Pipeline
#19169
passed
3 years ago
Stage: lint
Stage: test
Stage: review
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+1
-0
1 addition, 0 deletions
Makefile
pelicanconf.py
+6
-1
6 additions, 1 deletion
pelicanconf.py
scripts/create_default_pages.sh
+8
-0
8 additions, 0 deletions
scripts/create_default_pages.sh
with
15 additions
and
1 deletion
Makefile
+
1
−
0
View file @
1897d080
...
@@ -46,6 +46,7 @@ help:
...
@@ -46,6 +46,7 @@ help:
html
:
html
:
"
$(
PELICAN
)
"
"
$(
INPUTDIR
)
"
-o
"
$(
OUTPUTDIR
)
"
-s
"
$(
CONFFILE
)
"
$(
PELICANOPTS
)
"
$(
PELICAN
)
"
"
$(
INPUTDIR
)
"
-o
"
$(
OUTPUTDIR
)
"
-s
"
$(
CONFFILE
)
"
$(
PELICANOPTS
)
./scripts/create_default_pages.sh
clean
:
clean
:
[
!
-d
"
$(
OUTPUTDIR
)
"
]
||
rm
-rf
"
$(
OUTPUTDIR
)
"
[
!
-d
"
$(
OUTPUTDIR
)
"
]
||
rm
-rf
"
$(
OUTPUTDIR
)
"
...
...
This diff is collapsed.
Click to expand it.
pelicanconf.py
+
6
−
1
View file @
1897d080
AUTHOR
=
"
Funkwhale Collective
"
AUTHOR
=
"
Funkwhale Collective
"
SITENAME
=
"
Funkwhale
"
SITENAME
=
"
Funkwhale
"
SITEURL
=
"
http://localhost:8000
"
SITEURL
=
""
PATH
=
"
content
"
PATH
=
"
content
"
OUTPUT_PATH
=
"
public/
"
OUTPUT_PATH
=
"
public/
"
...
@@ -41,6 +41,11 @@ THEME = "theme"
...
@@ -41,6 +41,11 @@ THEME = "theme"
PAGE_PATHS
=
[
""
]
PAGE_PATHS
=
[
""
]
ARTICLE_PATHS
=
[
"
articles
"
]
ARTICLE_PATHS
=
[
"
articles
"
]
PAGE_LANG_URL
=
"
{slug}
"
# We write all pages in their language and have a rule in the makefile to
# use the english one as fallback if there is no translated version for a
# language
PAGE_LANG_SAVE_AS
=
"
{slug}/{lang}.html
"
PAGE_URL
=
"
{slug}
"
PAGE_URL
=
"
{slug}
"
PAGE_SAVE_AS
=
"
{slug}/index.html
"
PAGE_SAVE_AS
=
"
{slug}/index.html
"
...
...
This diff is collapsed.
Click to expand it.
scripts/create_default_pages.sh
0 → 100755
+
8
−
0
View file @
1897d080
#!/bin/bash
for
f
in
$(
find public
-name
en.html
)
;
do
newfile
=
${
f
/en.html/index.html
}
if
[
!
-f
"
$newfile
"
]
;
then
mv
$f
$newfile
fi
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment