Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Personal Website
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TheJoeCoder
Personal Website
Commits
24fdf9dd
Verified
Commit
24fdf9dd
authored
1 year ago
by
TheJoeCoder
Browse files
Options
Downloads
Patches
Plain Diff
Sort reversed to start with
parent
5b647f14
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build_site.py
+1
-3
1 addition, 3 deletions
build_site.py
with
1 addition
and
3 deletions
build_site.py
+
1
−
3
View file @
24fdf9dd
...
...
@@ -21,7 +21,7 @@ shutil.copytree("static", "public/", dirs_exist_ok=True)
# Load projects
projects
=
[]
files
=
os
.
listdir
(
"
templates/projects
"
)
files
.
sort
()
files
.
sort
(
reverse
=
True
)
for
filename
in
files
:
filepath
=
os
.
path
.
join
(
"
templates
"
,
"
projects
"
,
filename
)
if
os
.
path
.
isfile
(
filepath
)
and
filepath
.
endswith
(
"
.json
"
):
...
...
@@ -38,8 +38,6 @@ for filename in files:
# Add to projects
projects
.
append
(
project
)
projects
.
reverse
()
# Reverse items so newest is at the top
# Format template
template
=
env
.
get_template
(
"
index.html
"
)
with
open
(
"
public/index.html
"
,
"
w
"
)
as
f
:
...
...
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