"""A blueprint module for the main page of the website.

This module provides a route for the home page.

Routes:
    home(): Renders the home page.
"""
import logging
from flask import Blueprint, render_template

LOG = logging.getLogger(__name__)

main = Blueprint("main", __name__)


@main.route("/")
@main.route("/home")
def home():
    """Renders the home page."""
    LOG.info("Logging is working")
    return render_template("home.html", active_page="home")


@main.route("/home/receipe")
def receipe():
    """Renders the receipe of the week page."""
    return render_template("receipe.html", active_page="home")


@main.route("/home/quote")
def quote():
    return render_template("quote.html", active_page="home")


@main.route("/home/features")
def features():
    return render_template("features.html", active_page="home")
