From 8c306b2102557eb76479ac12817ae04b6b4ec958 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 15 Oct 2023 22:30:35 +0200 Subject: [PATCH] fix the fix and template the cards of portfolio --- src/routes/portfolio.rs | 2 +- templates/portfolio/card.html | 10 ++++++++ .../{portfolio.html => portfolio/index.html} | 24 +++---------------- 3 files changed, 14 insertions(+), 22 deletions(-) create mode 100644 templates/portfolio/card.html rename templates/{portfolio.html => portfolio/index.html} (60%) diff --git a/src/routes/portfolio.rs b/src/routes/portfolio.rs index 77cc21d..0df913d 100644 --- a/src/routes/portfolio.rs +++ b/src/routes/portfolio.rs @@ -60,7 +60,7 @@ fn build_page(config: Config, url: String) -> String { }; config.tmpl.render( - "portfolio.html", + "portfolio/index.html", PortfolioTemplate { navbar: NavBar { portfolio: true, diff --git a/templates/portfolio/card.html b/templates/portfolio/card.html new file mode 100644 index 0000000..957e6c6 --- /dev/null +++ b/templates/portfolio/card.html @@ -0,0 +1,10 @@ +{{#metadata}} {{#info}} +
  • +
    +

    {{title}}

    + {{&content}} {{#language}} +

    + {{/language}} +
    +
  • +{{/info}} {{/metadata}} diff --git a/templates/portfolio.html b/templates/portfolio/index.html similarity index 60% rename from templates/portfolio.html rename to templates/portfolio/index.html index 777eb8d..3e71a59 100644 --- a/templates/portfolio.html +++ b/templates/portfolio/index.html @@ -23,31 +23,13 @@

    Projets

    {{#archived_apps_exists}}

    Archives

    {{/archived_apps_exists}} {{/location_apps}} {{/data}} @@ -55,7 +37,7 @@