Basically
@include('partials.content-page')
inserts the rendered content of the file, ./resources/views/partials/content-page.blade.php
, where the @include
appears.
get_post_type()
is acting like a variable here to complete the string “partials.content-_______”.
So, to answer your question about home.blade.php
(I use front-page.blade.php
instead… you can read the lengthy WordPress Documentation on Template Hierarchy for a good time): Try not using get_post_type()
— if things break, put it back. If not, leave it deleted.