Skip to content

Commit

Permalink
Adicionando tag meta-description nas páginas do site
Browse files Browse the repository at this point in the history
  • Loading branch information
usergabriel committed Oct 31, 2024
1 parent affe474 commit 133fa5c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions flask_backend/routes/movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions flask_backend/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Adicionei tag meta description para receber as descriptions-->
<meta name="description" content="{{ description }}">
<title>
{% block title %}
{% endblock title %}
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 133fa5c

Please sign in to comment.