from home.models import LatestPage, TrendingPage


def navigation_pages(request):
    """
    Provide Latest/Trending page references for site-wide navigation.
    """
    return {
        "nav_latest_page": LatestPage.objects.live().first(),
        "nav_trending_page": TrendingPage.objects.live().first(),
    }
