芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/resources/js/Frontend/Pages/Blogs/Index.jsx
import Spacing from "@/Frontend/Components/Spacing"; import Div from "@/Frontend/Components/Div.jsx"; import Pagination from "@/Frontend/Components/Pagination"; import PostStyle2 from "@/Frontend/Components/Post/PostStyle2"; import limitString from "@/utils/limitString.js"; import removeHTMLTags from "@/utils/removeHTMLTags.js"; import { Head } from "@inertiajs/react"; import moment from "moment"; import BlogLayout from "@/Frontend/Layouts/BlogLayout"; export default function Index({ posts, search, filter }) { // page header data let pageHeaderData = { title: "Blog", breadcrumb: [ { label: "Home", url: "/" }, { label: "Blog", url: null }, ], }; // dynamic assigned page header data if (filter.category) { pageHeaderData.title = `Category: ${filter.category}`; pageHeaderData.breadcrumb = [ { label: "Home", url: "/" }, { label: "Blog", url: route("blog.index") }, { label: filter.category, url: null }, ]; } else if (filter.tag) { pageHeaderData.title = `Tag: ${filter.tag}`; pageHeaderData.breadcrumb = [ { label: "Home", url: "/" }, { label: "Blog", url: route("blog.index") }, { label: filter.tag, url: null }, ]; } else if (filter.author) { pageHeaderData.title = `Author: ${filter.author}`; pageHeaderData.breadcrumb = [ { label: "Home", url: "/" }, { label: "Blog", url: route("blog.index") }, { label: filter.author, url: null }, ]; } else if (search) { pageHeaderData.title = `Search Results for: ${search}`; pageHeaderData.breadcrumb = [ { label: "Home", url: "/" }, { label: `Search Results for: ${search}`, url: null }, ]; } return (
{search && !posts.data.length ? (
Nothing Found
{/* .page-header */}
Sorry, but nothing matched your search terms. Please try again with some different keywords.
{" "}
{/* .page-content */}
{/* .no-results */}
) : ( <> {posts.data.map((item, index) => (
{posts.data.length > index + 1 && (
)}
))}
> )} ); }