from django.shortcuts import render
from blog.models import Post

# Create your views here.

def landing(request):
    recent_posts = Post.objects.order_by('-pk')[:3]

    return render(
        request,
        'single_pages/landing.html',
        {
            'recent_posts': recent_posts,
        }
    )


def about(request):
    return render(
        request,
        'single_pages/about.html'
    )