From 133fa5ca388a7f422bd6e482823573d1790b1452 Mon Sep 17 00:00:00 2001 From: usergabriel Date: Thu, 31 Oct 2024 04:41:59 +0000 Subject: [PATCH] =?UTF-8?q?Adicionando=20tag=20meta-description=20nas=20p?= =?UTF-8?q?=C3=A1ginas=20do=20site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_backend/routes/movie.py | 12 +++++++++--- flask_backend/templates/base.html | 2 ++ requirements.txt | 1 - 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/flask_backend/routes/movie.py b/flask_backend/routes/movie.py index 03c01f0..aca90db 100644 --- a/flask_backend/routes/movie.py +++ b/flask_backend/routes/movie.py @@ -17,24 +17,30 @@ def index(): user_logged_in = g.user is not None movies = get_all_movies(user_logged_in) + # adicionado variavel description para aba movie teste + description = "Explore uma coleção diversificada de pôsteres de filmes de todos os gêneros e épocas. Descubra obras icônicas e raras que representam o melhor do cinema." return render_template( - "movie/index.html", movies=movies, show_drafts=user_logged_in + "movie/index.html", movies=movies, show_drafts=user_logged_in, description=description + + ) @bp.route("/movies/posters") def posters(): user_logged_in = g.user is not None + description = "Uma galeria única de pôsteres de filmes inspirados no cubismo. Mergulhe em uma estética artística inovadora que transforma pôsteres de filmes em verdadeiras obras de arte." images = [] return render_template( - "movie/movies.html", images=images, show_drafts=user_logged_in + "movie/movies.html", images=images, show_drafts=user_logged_in,description=description ) @bp.route("/movies/posters/cubism") def posters_cubism(): crop_position = request.args.get("crop_position", "maintain") - return render_template("movie/cubism.html", crop_position=crop_position) + description = "Uma galeria única de pôsteres de filmes inspirados no cubismo. Mergulhe em uma estética artística inovadora que transforma pôsteres de filmes em verdadeiras obras de arte." + return render_template("movie/cubism.html", crop_position=crop_position,description=description) @bp.route("/movies/posters/images") diff --git a/flask_backend/templates/base.html b/flask_backend/templates/base.html index 11b327d..a2bb75b 100644 --- a/flask_backend/templates/base.html +++ b/flask_backend/templates/base.html @@ -11,6 +11,8 @@ + + {% block title %} {% endblock title %} diff --git a/requirements.txt b/requirements.txt index 50803a4..7c5e70a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,6 @@ itsdangerous==2.1.2 Jinja2==3.1.3 jsbeautifier==1.15.1 json5==0.9.25 -Levenshtein==0.21.1 MarkupSafe==2.1.5 nodeenv==1.9.1 packaging==24.0