Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ai-safety-saclay/site
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Nov 19, 2024
2 parents 1fd1815 + 9869e92 commit 945a41a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
8 changes: 3 additions & 5 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ def write_html(path: str, template):
with open(f"build/{path}", "w") as f:
f.write(template.render())

def generate_home():
def generate_home(title):
page="index.html"
title="PIAF"

globals = dict(GLOBALS, page=page, title=title)
globals = dict(GLOBALS, title=title, page=page)
template = env.get_template("home.html", globals=globals)

write_html("index.html", template)
Expand Down Expand Up @@ -132,7 +130,7 @@ def generate_blog():

dir_util.copy_tree("./bootstrap-icons/font/fonts", "./build/fonts")

generate_home()
generate_home("PIAF")
generate_page("Asimov : les dangers du numérique", "asimov.html", video_ids=ASIMOV_VIDEO_IDS)

lectures = read_yml("lectures.yml")
Expand Down
4 changes: 2 additions & 2 deletions components/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="footer-nav">
<ul list-inline="">
<li class="list-inline-item"><a class="nav-link" href="/mentions-legales.html">Mention légales</a></li>
<li class="list-inline-item"><a class="nav-link" href="/mentions-legales.html">Mentions légales</a></li>
<li class="list-inline-item"><a class="nav-link" href="/confidentialite.html">Confidentialité</a></li>
<li class="list-inline-item"><a class="nav-link" href="/nous-aider.html">Nous aider</a></li>
</ul>
Expand All @@ -26,4 +26,4 @@
<div class="footer-copyright">
<p>© 2024 <strong>Pour une Intelligence Artificielle Fiable - PIAF</strong></p>
</div>
</div>
</div>
3 changes: 2 additions & 1 deletion pages/asimov.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

{% endmarkdown %}

{% set link="{{YOUTUBE_CHANNEL}}" %}
{% set link=YOUTUBE_CHANNEL %}
{% set link_icon_class="bi-youtube" %}
{% set btn_text="Chaîne YouTube" %}
{% include "button.html" %}
Expand Down Expand Up @@ -54,6 +54,7 @@
{% endmarkdown %}

{% set link="/contact.html#nous-rejoindre" %}
{% set link_icon_class="" %}
{% set btn_text="Nous rejoindre" %}
{% include "button.html" %}

Expand Down
2 changes: 1 addition & 1 deletion pages/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Vous pouvez venir discuter avec nous, pour approfondir la sûreté de l'IA et pa

Nous communiquons principalement sur Discord :

{% set link="{{DISCORD_SERVER}}" %}
{% set link=DISCORD_SERVER %}
{% set link_icon_class="bi-discord" %}
{% set btn_text="Rejoindre la discussion" %}
{% include "button.html" %}
Expand Down
2 changes: 1 addition & 1 deletion pages/groupe-de-lecture.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% endmarkdown %}
</div>

{% set link="{{DISCORD_SERVER}}" %}
{% set link=DISCORD_SERVER %}
{% set link_icon_class="bi-discord" %}
{% set btn_text="Rejoindre la discussion" %}
{% include "button.html" %}
Expand Down
6 changes: 3 additions & 3 deletions pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% set title="Notre mission" %}
{% set link="/presentation.html" %}
{% set content %}{% markdown %}
Nous organisons **Asimov**, un cycle de conférences dans les écoles du plateau de Saclay.
Nous voulons sensibiliser les étudiants aux enjeux de la sûreté de l'IA afin de démocratiser ce domaine dans les écoles d'ingénieurs.
{% endmarkdown %}{% endset %}
{% include "home_card.html" %}

Expand All @@ -43,15 +43,15 @@
<h2 class="display-4 m-3"> Rejoindre la communauté</h2>
<div class="row card-container">
{% set title="Discord" %}
{% set link="{{DISCORD_SERVER}}" %}
{% set link=DISCORD_SERVER %}
{% set content="Rejoignez la communauté, discutez avec les membres de l'association et tenez-vous au courant des activités du PIAF." %}
{% set link_icon_class="bi-discord" %}
{% set btn_text="Rejoindre la discussion "%}
{% include "home_card.html" %}


{% set title="Github" %}
{% set link="{{GITHUB_PAGE}}" %}
{% set link=GITHUB_PAGE %}
{% set content="Contribuez à notre projet sur la sécurité de l'IA dans les écoles de Paris-Saclay." %}
{% set link_icon_class="bi-github" %}
{% set btn_text="Notre organisation"%}
Expand Down

0 comments on commit 945a41a

Please sign in to comment.