Commit f0939df5 by Madhankumar

code changes

parent 82e10e1f
...@@ -19,7 +19,7 @@ export default function PageHeader({ searchParams }) { ...@@ -19,7 +19,7 @@ export default function PageHeader({ searchParams }) {
} }
}; };
const handleClose = () => { const handleClear = () => {
router.push(`/?page=${currentPage}`, undefined, { shallow: true }); router.push(`/?page=${currentPage}`, undefined, { shallow: true });
}; };
...@@ -29,7 +29,7 @@ export default function PageHeader({ searchParams }) { ...@@ -29,7 +29,7 @@ export default function PageHeader({ searchParams }) {
currentTheme={theme} currentTheme={theme}
onThemeChange={toggleTheme} onThemeChange={toggleTheme}
onSearch={handleSearch} onSearch={handleSearch}
onClose={handleClose} onClear={handleClear}
value={urlParams} value={urlParams}
/> />
); );
......
...@@ -4,35 +4,33 @@ import { getPosts, getPostsBySearch } from "@lib/api"; ...@@ -4,35 +4,33 @@ import { getPosts, getPostsBySearch } from "@lib/api";
import styles from "./page.module.css"; import styles from "./page.module.css";
const Home = async ({ searchParams }) => { const Home = async ({ searchParams }) => {
let blogs = []; let blogs;
let pageNo = searchParams.page || 1; let pageNo = searchParams.page || 1;
let search = searchParams.search; let search = searchParams.search;
let response; if ("search" in searchParams) {
response = await getPosts("posts", pageNo);
blogs = response.data;
if ("search" in searchParams && pageNo !== "") {
if (search !== "") { if (search !== "") {
response = await getPostsBySearch("posts", pageNo, search); blogs = await getPostsBySearch("posts", pageNo, search);
blogs = response.data;
} else { } else {
blogs.length = 0; blogs.data.length = 0;
} }
} else {
blogs = await getPosts("posts", pageNo);
} }
return ( return (
<div className={styles.container}> <div className={styles.container}>
{blogs?.length ? ( {blogs.data?.length ? (
<div> <div>
<BlogLists <BlogLists
title="Lifestyle" title="Lifestyle"
description="Lorem ipsum dolor sit amet elit. Id quaerat amet ipsum sunt et quos dolorum." description="Lorem ipsum dolor sit amet elit. Id quaerat amet ipsum sunt et quos dolorum."
blogs={blogs} blogs={blogs.data}
/> />
<div className={styles.pagination}> <div className={styles.pagination}>
<Pagination <Pagination
currentPage={Number(pageNo)} currentPage={Number(pageNo)}
total={Number(response.total)} total={Number(blogs.total)}
perPage={6} perPage={6}
search={search} search={search}
/> />
......
...@@ -10,10 +10,12 @@ export const card = { ...@@ -10,10 +10,12 @@ export const card = {
title: "How to get a perfect start for beginning runners", title: "How to get a perfect start for beginning runners",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle1.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle1.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
......
...@@ -8,7 +8,7 @@ const Card = ({ ...@@ -8,7 +8,7 @@ const Card = ({
id, id,
title, title,
description, description,
image, images,
publishedDate, publishedDate,
author, author,
readingTime, readingTime,
...@@ -19,9 +19,9 @@ const Card = ({ ...@@ -19,9 +19,9 @@ const Card = ({
<Link href={`singleblog/${id}`}> <Link href={`singleblog/${id}`}>
<Image <Image
className={styles.img} className={styles.img}
src={image.url} src={images.card.url}
height={image.height} height={images.card.height}
width={image.width} width={images.card.width}
loading="eager" loading="eager"
alt={title} alt={title}
/> />
...@@ -57,10 +57,12 @@ const Card = ({ ...@@ -57,10 +57,12 @@ const Card = ({
Card.propTypes = { Card.propTypes = {
title: PropTypes.string, title: PropTypes.string,
description: PropTypes.string, description: PropTypes.string,
image: PropTypes.shape({ images: PropTypes.shape({
url: PropTypes.string, card: PropTypes.shape({
height: PropTypes.number, url: PropTypes.string,
width: PropTypes.number, height: PropTypes.number,
width: PropTypes.number,
}),
}), }),
publishedDate: PropTypes.string, publishedDate: PropTypes.string,
author: PropTypes.shape({ author: PropTypes.shape({
......
...@@ -8,7 +8,7 @@ function Header({ ...@@ -8,7 +8,7 @@ function Header({
name, name,
currentTheme, currentTheme,
onSearch, onSearch,
onClose, onClear,
onThemeChange, onThemeChange,
value, value,
}) { }) {
...@@ -18,15 +18,15 @@ function Header({ ...@@ -18,15 +18,15 @@ function Header({
const handleSearch = (value) => { const handleSearch = (value) => {
onSearch(value); onSearch(value);
}; };
const handleClose = () => { const handleClear = () => {
onClose(""); onClear("");
}; };
return ( return (
<header className={styles.header}> <header className={styles.header}>
<div className={styles.container}> <div className={styles.container}>
<nav className={styles.navbar}> <nav className={styles.navbar}>
<Link className={styles["navbar-brand"]} href={`/?page=1`}> <Link className={styles["navbar-brand"]} href="/">
<Icons name="newspaper" size="large" classes="newspaper-icon" /> <Icons name="newspaper" size="large" classes="newspaper-icon" />
<h3>{name}</h3> <h3>{name}</h3>
</Link> </Link>
...@@ -34,7 +34,7 @@ function Header({ ...@@ -34,7 +34,7 @@ function Header({
<div className={styles.search}> <div className={styles.search}>
<Search <Search
onSearch={handleSearch} onSearch={handleSearch}
onClose={handleClose} onClear={handleClear}
value={value} value={value}
/> />
</div> </div>
......
...@@ -3,11 +3,11 @@ import PropTypes from "prop-types"; ...@@ -3,11 +3,11 @@ import PropTypes from "prop-types";
import Icons from "@components/base/icons"; import Icons from "@components/base/icons";
import styles from "./styles.module.css"; import styles from "./styles.module.css";
const Search = ({ onSearch, onClose, value }) => { const Search = ({ onSearch, onClear, value }) => {
const [inputValue, setInputValue] = useState(value); const [inputValue, setInputValue] = useState(value);
const handleCustomClear = () => { const handleCustomClear = () => {
onClose(""); onClear("");
setInputValue(""); // Reset the input value setInputValue(""); // Reset the input value
}; };
...@@ -46,7 +46,7 @@ const Search = ({ onSearch, onClose, value }) => { ...@@ -46,7 +46,7 @@ const Search = ({ onSearch, onClose, value }) => {
Search.propTypes = { Search.propTypes = {
onSearch: PropTypes.func, onSearch: PropTypes.func,
onClose: PropTypes.func, onClear: PropTypes.func,
}; };
export default Search; export default Search;
...@@ -4,7 +4,7 @@ export default { ...@@ -4,7 +4,7 @@ export default {
component: Search, component: Search,
argTypes: { argTypes: {
onSearch: { actions: "onSearch" }, onSearch: { actions: "onSearch" },
onClose: { actions: "onClose" }, onClear: { actions: "onClear" },
}, },
}; };
export const search = {}; export const search = {};
...@@ -14,10 +14,12 @@ export const blogLists = { ...@@ -14,10 +14,12 @@ export const blogLists = {
title: "How to get perfect start for beginning runners", title: "How to get perfect start for beginning runners",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle1.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle1.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
...@@ -36,10 +38,12 @@ export const blogLists = { ...@@ -36,10 +38,12 @@ export const blogLists = {
title: "Great tools to improve your personal blogging experience", title: "Great tools to improve your personal blogging experience",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle2.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle2.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
...@@ -59,10 +63,12 @@ export const blogLists = { ...@@ -59,10 +63,12 @@ export const blogLists = {
title: "Blog Guide: How to Start a Personal blog on WordPress", title: "Blog Guide: How to Start a Personal blog on WordPress",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle3.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle3.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
...@@ -81,10 +87,12 @@ export const blogLists = { ...@@ -81,10 +87,12 @@ export const blogLists = {
title: "The technical setup when starting a personal blog", title: "The technical setup when starting a personal blog",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle4.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle4.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
...@@ -102,10 +110,12 @@ export const blogLists = { ...@@ -102,10 +110,12 @@ export const blogLists = {
title: "3 New outfit Formulas To Add to your Capsule Wardrobe", title: "3 New outfit Formulas To Add to your Capsule Wardrobe",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle5.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle5.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
...@@ -124,10 +134,12 @@ export const blogLists = { ...@@ -124,10 +134,12 @@ export const blogLists = {
title: "3 New outfit Formulas To Add to your Capsule Wardrobe", title: "3 New outfit Formulas To Add to your Capsule Wardrobe",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle6.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle6.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
...@@ -145,10 +157,12 @@ export const blogLists = { ...@@ -145,10 +157,12 @@ export const blogLists = {
title: "3 New outfit Formulas To Add to your Capsule Wardrobe", title: "3 New outfit Formulas To Add to your Capsule Wardrobe",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle6.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle6.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
...@@ -166,10 +180,12 @@ export const blogLists = { ...@@ -166,10 +180,12 @@ export const blogLists = {
title: "3 New outfit Formulas To Add to your Capsule Wardrobe", title: "3 New outfit Formulas To Add to your Capsule Wardrobe",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle6.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle6.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
...@@ -187,10 +203,12 @@ export const blogLists = { ...@@ -187,10 +203,12 @@ export const blogLists = {
title: "3 New outfit Formulas To Add to your Capsule Wardrobe", title: "3 New outfit Formulas To Add to your Capsule Wardrobe",
description: description:
"Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.", "Lorem ipsum dolor sit amet consectetur ipsum adipisicing elit. Quis vitae sit.",
image: { images: {
url: require("@img/lifestyle6.jpg").default.src, card: {
width: 470, url: require("@img/lifestyle6.jpg").default.src,
height: 300, width: 470,
height: 300,
},
}, },
publishedDate: "July 13, 2020.", publishedDate: "July 13, 2020.",
author: { author: {
......
...@@ -2,10 +2,8 @@ import PropTypes from "prop-types"; ...@@ -2,10 +2,8 @@ import PropTypes from "prop-types";
import Button from "@components/base/button"; import Button from "@components/base/button";
import styles from "./styles.module.css"; import styles from "./styles.module.css";
function Pagination({ total, currentPage, perPage, search }) { function Pagination({ total, currentPage, search }) {
const totalPages = Math.ceil(total / perPage); const totalPage = total <= 1 ? 1 : total;
const totalPage = totalPages <= 1 ? 1 : totalPages;
const numberOfPages = []; const numberOfPages = [];
for (let i = 1; i <= totalPage; i++) { for (let i = 1; i <= totalPage; i++) {
numberOfPages.push(i); numberOfPages.push(i);
...@@ -89,8 +87,7 @@ function Pagination({ total, currentPage, perPage, search }) { ...@@ -89,8 +87,7 @@ function Pagination({ total, currentPage, perPage, search }) {
Pagination.propTypes = { Pagination.propTypes = {
total: PropTypes.number.isRequired, total: PropTypes.number.isRequired,
currentPage: PropTypes.number, currentPage: PropTypes.number.isRequired,
onPageChange: PropTypes.func,
}; };
export default Pagination; export default Pagination;
...@@ -2,15 +2,12 @@ import Pagination from "@components/top-level/pagination/index"; ...@@ -2,15 +2,12 @@ import Pagination from "@components/top-level/pagination/index";
export default { export default {
title: "Top-Level/Pagination", title: "Top-Level/Pagination",
component: Pagination, component: Pagination,
argTypes: { argTypes: {},
onPageChange: { actions: "onPageChange" },
},
}; };
export const pagination = { export const pagination = {
args: { args: {
total: 10, total: 10,
currentPage: 1, currentPage: 1,
perPage: 2,
}, },
}; };
...@@ -8,7 +8,7 @@ function SingleBlog({ ...@@ -8,7 +8,7 @@ function SingleBlog({
title, title,
publishedDate, publishedDate,
author, author,
blogImage, images,
category, category,
readingTime, readingTime,
categories, categories,
...@@ -49,10 +49,10 @@ function SingleBlog({ ...@@ -49,10 +49,10 @@ function SingleBlog({
<div className={styles.blogImage}> <div className={styles.blogImage}>
<Image <Image
className={styles.img} className={styles.img}
src={blogImage.url} src={images.banner.url}
alt={author.name} alt={author.name}
width={blogImage.width} width={images.banner.width}
height={blogImage.height} height={images.banner.height}
/> />
</div> </div>
<div className={styles.blogContent}> <div className={styles.blogContent}>
......
...@@ -10,10 +10,12 @@ export const singleBlog = { ...@@ -10,10 +10,12 @@ export const singleBlog = {
author: { author: {
name: "Charlotte mia", name: "Charlotte mia",
}, },
blogImage: { images: {
url: require("@img/blogsingle.jpg").default.src, banner: {
width: 1920, url: require("@img/blogsingle.jpg").default.src,
height: 500, width: 1920,
height: 500,
},
}, },
category: "Fashion", category: "Fashion",
......
...@@ -7,7 +7,6 @@ export const useAppContext = () => useContext(ThemeContext); ...@@ -7,7 +7,6 @@ export const useAppContext = () => useContext(ThemeContext);
export const ThemeProvider = ({ children }) => { export const ThemeProvider = ({ children }) => {
const [theme, setTheme] = useState("light"); const [theme, setTheme] = useState("light");
const [input, setInput] = useState("");
useEffect(() => { useEffect(() => {
const storedTheme = localStorage.getItem("theme") || "light"; const storedTheme = localStorage.getItem("theme") || "light";
...@@ -25,8 +24,6 @@ export const ThemeProvider = ({ children }) => { ...@@ -25,8 +24,6 @@ export const ThemeProvider = ({ children }) => {
const contextValue = { const contextValue = {
theme, theme,
toggleTheme, toggleTheme,
input,
setInput,
}; };
return ( return (
......
...@@ -59,7 +59,9 @@ function getSlicedPost(post, page) { ...@@ -59,7 +59,9 @@ function getSlicedPost(post, page) {
const slicedData = Array.isArray(post) const slicedData = Array.isArray(post)
? post.slice(startIndex, endIndex) ? post.slice(startIndex, endIndex)
: []; : [];
const response = { data: slicedData, total: post?.length }; const totalPages = Math.ceil(post?.length / itemsPerPage);
const response = { data: slicedData, total: totalPages };
return response; return response;
} }
......
--- ---
id: 1 id: 1
image: { url: "/images/lifestyle1.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle1.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "How to get a perfect start for beginning runners" title: "How to get a perfect start for beginning runners"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -12,7 +16,6 @@ publishedDate: "2023-05-14." ...@@ -12,7 +16,6 @@ publishedDate: "2023-05-14."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
--- ---
id: 2 id: 2
image: { url: "/images/lifestyle2.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle2.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "Great tools to improve your personal blogging experience" title: "Great tools to improve your personal blogging experience"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -12,7 +16,6 @@ publishedDate: "2023-03-24." ...@@ -12,7 +16,6 @@ publishedDate: "2023-03-24."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
--- ---
id: 3 id: 3
image: { url: "/images/lifestyle3.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle3.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "Blog Guide: How to Start a Personal Blog on WordPress" title: "Blog Guide: How to Start a Personal Blog on WordPress"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -12,7 +16,6 @@ publishedDate: "2023-07-18." ...@@ -12,7 +16,6 @@ publishedDate: "2023-07-18."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
--- ---
id: 4 id: 4
image: { url: "/images/lifestyle4.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle4.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "The technical setup when starting a personal blog" title: "The technical setup when starting a personal blog"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -12,7 +16,6 @@ publishedDate: "2023-07-12." ...@@ -12,7 +16,6 @@ publishedDate: "2023-07-12."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
--- ---
id: 5 id: 5
image: { url: "/images/lifestyle5.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle5.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "3 New Outfit Formulas To Add To Your Capsule Wardrobe" title: "3 New Outfit Formulas To Add To Your Capsule Wardrobe"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -9,7 +13,6 @@ publishedDate: "2023-01-09." ...@@ -9,7 +13,6 @@ publishedDate: "2023-01-09."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
--- ---
id: 6 id: 6
image: { url: "/images/lifestyle6.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle6.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "Blog Guide: How to Start a Personal Blog on WordPress" title: "Blog Guide: How to Start a Personal Blog on WordPress"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -12,7 +16,6 @@ publishedDate: "2023-09-20." ...@@ -12,7 +16,6 @@ publishedDate: "2023-09-20."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
--- ---
id: 7 id: 7
image: { url: "/images/lifestyle7.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle7.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "How to get a perfect start for beginning runners" title: "How to get a perfect start for beginning runners"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -9,7 +13,6 @@ publishedDate: "2023-08-28." ...@@ -9,7 +13,6 @@ publishedDate: "2023-08-28."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
--- ---
id: 8 id: 8
image: { url: "/images/lifestyle8.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle8.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "Great tools to improve your personal blogging experience" title: "Great tools to improve your personal blogging experience"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -9,7 +13,6 @@ publishedDate: "2023-02-16." ...@@ -9,7 +13,6 @@ publishedDate: "2023-02-16."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
--- ---
id: 9 id: 9
image: { url: "/images/lifestyle2.jpg", width: 470, height: 300 } images:
{
card: { url: "/images/lifestyle2.jpg", width: 470, height: 300 },
banner: { url: "/images/blogsingle.jpg", width: 1920, height: 500 },
}
title: "How to get a perfect start for beginning runners" title: "How to get a perfect start for beginning runners"
description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum" description: "Fusce faucibus ante vitae justo efficitur elementum.Donec et ipsum"
author: author:
...@@ -12,7 +16,6 @@ publishedDate: "2023-10-11." ...@@ -12,7 +16,6 @@ publishedDate: "2023-10-11."
readingTime: "1 min" readingTime: "1 min"
category: "Fashion" category: "Fashion"
categories: ["Fashion", "Beauty"] categories: ["Fashion", "Beauty"]
blogImage: { url: "/images/blogsingle.jpg", width: 1920, height: 500 }
--- ---
### How to create an Art that shows the beauty in everyone ideas of flaws. ### How to create an Art that shows the beauty in everyone ideas of flaws.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment