from django.shortcuts import render
from .models import PageIntro
# Create your views here.


def index(request):
    """
    Display homepage with PageIntro's
    """
    page_intros = PageIntro.objects.all().order_by('display_order')

    template = 'home/index.html'
    context = {
        'page_intros': page_intros,
    }
    return render(request, template, context)
