fix: skill issue
All checks were successful
Deploy via SSH on push / deploy-via-ssh (push) Successful in 20s
All checks were successful
Deploy via SSH on push / deploy-via-ssh (push) Successful in 20s
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import os,random
|
import os,random
|
||||||
from flask import Flask, render_template, send_from_directory
|
from flask import Flask, render_template, send_from_directory
|
||||||
from projects import projects
|
from projects import projects_list
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@ app = Flask(__name__)
|
|||||||
def home():
|
def home():
|
||||||
bg_files = os.listdir("static/img/backgrounds")
|
bg_files = os.listdir("static/img/backgrounds")
|
||||||
bg = random.choice(bg_files)
|
bg = random.choice(bg_files)
|
||||||
return render_template("index.html", title="Accueil", background=bg, projects=projects[:3])
|
return render_template("index.html", title="Accueil", background=bg, projects=projects_list[:3])
|
||||||
|
|
||||||
@app.route("/projects")
|
@app.route("/projects")
|
||||||
def projects():
|
def projects():
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
projects = [
|
projects_list = [
|
||||||
{
|
{
|
||||||
"title": "Kernel From Scratch",
|
"title": "Kernel From Scratch",
|
||||||
"description": "Création d'un kernel en Zig 0.13 avec pilotes claviers et graphiques, IDT, GDT, gestion mémoire et shell intégré",
|
"description": "Création d'un kernel en Zig 0.13 avec pilotes claviers et graphiques, IDT, GDT, gestion mémoire et shell intégré",
|
||||||
|
|||||||
Reference in New Issue
Block a user