Skip to content

Instantly share code, notes, and snippets.

@buiquangduc
Created January 24, 2018 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buiquangduc/8495777f06a5918369acac23f060ab91 to your computer and use it in GitHub Desktop.
Save buiquangduc/8495777f06a5918369acac23f060ab91 to your computer and use it in GitHub Desktop.
Index template of Sage 9 starter theme
@extends('layouts.app')
@section('content')
@include('partials.page-header')
@if (!have_posts())
<div class="alert alert-warning">
{{ __('Sorry, no results were found.', 'sage') }}
</div>
{!! get_search_form(false) !!}
@endif
@while (have_posts()) @php(the_post())
@include('partials.content-'.get_post_type())
@endwhile
{!! get_the_posts_navigation() !!}
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment