Skip to content

Commit

Permalink
Merge pull request #316 from 1chooo/refactor/#297
Browse files Browse the repository at this point in the history
refactor(blog): move POSTS_PER_PAGE to the lib (#297)
  • Loading branch information
1chooo authored Sep 23, 2024
2 parents b8a3c97 + df6a9ca commit 65dde57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/web/src/app/blog/page.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import Link from "next/link";
import Image from "next/image";
import Skeleton from "react-loading-skeleton";
import { SkeletonTheme } from "react-loading-skeleton";
import PageHeader from "@/components/page-header";
import FilterSelectBox from "@/components/blog/filter-select-box";
import FilterList from "@/components/blog/filter-list";
import MarkdownRenderer from "@/components/markdown/markdown-renderer";
import { getBlogPosts } from "@/lib/db/blog";
import Skeleton, { SkeletonTheme } from "react-loading-skeleton";
import { POSTS_PER_PAGE } from "@/lib/constants";

import "react-loading-skeleton/dist/skeleton.css";

export const metadata = {
title: "Blog | Hugo ChunHo Lin (1chooo) | Open Source Enthusiast",
description: "Read my thoughts on software development, design, and more.",
};

const POSTS_PER_PAGE = 4;

export default function BlogPage({
searchParams,
}: {
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export const TWITTER_USERNAME = '1chooo___';
export const LINKEDIN_USERNAME = '1chooo';
export const EMAIL = '[email protected]';

export const POSTS_PER_PAGE = 4;

export const DEVOPS = {
linux: "linux",
aws: "aws",
Expand Down

0 comments on commit 65dde57

Please sign in to comment.