diff --git a/all_paw_care/pages/routes.py b/all_paw_care/pages/routes.py index b5f14e9..95b36bb 100644 --- a/all_paw_care/pages/routes.py +++ b/all_paw_care/pages/routes.py @@ -1,17 +1,18 @@ from all_paw_care.pages import pages +from all_paw_care.content import pages as site_pages from flask import render_template,url_for @pages.route('/') @pages.route('/home') def home(): - return render_template("pages/index.html") + return render_template("pages/index.html", page=site_pages.home) @pages.route('/faq') def faq(): - return render_template("pages/faq.html") + return render_template("pages/faq.html", page=site_pages.faqs) @pages.route('/services') def services(): - return render_template("pages/services.html") + return render_template("pages/services.html", page=site_pages.services) diff --git a/all_paw_care/templates/pages/faq.html b/all_paw_care/templates/pages/faq.html index 1e38b81..897cb45 100644 --- a/all_paw_care/templates/pages/faq.html +++ b/all_paw_care/templates/pages/faq.html @@ -1,6 +1,6 @@ {% extends "jinja/types/page.html" %} -{% set title %}FAQ{% endset %} +{% set title %}{{ page.get_title() }}{% endset %} {% block content %}
- {{ row[1] }} + {{ page.get_content()[row]['content'] }}
- {{ service[1][2] }} +
+ Service includes: +
- {{ service[1][2] }} - -