Ajout des balises meta og et twitter (à tester) #39

This commit is contained in:
Colin Maudry
2025-09-28 20:13:20 +02:00
parent 4081b369d9
commit c1955ac807
4 changed files with 48 additions and 9 deletions
-3
View File
@@ -1,14 +1,11 @@
import os
from dash import dcc, html, register_page
from dotenv import load_dotenv
from src.figures import get_sources_tables
title = "À propos"
load_dotenv()
register_page(
__name__, path="/a-propos", title=f"decp.info - {title}", name=title, order=5
)
+8 -3
View File
@@ -3,7 +3,6 @@ from datetime import datetime
import polars as pl
from dash import Input, Output, State, callback, dash_table, dcc, html, register_page
from dotenv import load_dotenv
from src.utils import (
add_org_links,
@@ -14,8 +13,6 @@ from src.utils import (
sort_table_data,
)
load_dotenv()
update_date = os.path.getmtime(os.getenv("DATA_FILE_PARQUET_PATH"))
update_date = datetime.fromtimestamp(update_date).strftime("%d/%m/%Y")
@@ -56,6 +53,14 @@ datatable = html.Div(
"lineHeight": "14px",
"whiteSpace": "normal",
},
{
"if": {"column_id": "titulaire_nom"},
"minWidth": "250px",
"textAlign": "left",
"overflow": "hidden",
"lineHeight": "14px",
"whiteSpace": "normal",
},
],
data_timestamp=0,
markdown_options={"html": True},