Skip to content

Commit

Permalink
Merge pull request #42 from tangly1024/theme-medium
Browse files Browse the repository at this point in the history
修复翻页按钮
  • Loading branch information
tangly1024 authored Jan 28, 2022
2 parents 6baa16a + 3f03eeb commit 4778d8f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
**🕸  网址美观、搜索引擎优化**
- 更多特性、欢迎移步[我的博客](https://tangly1024.com/article/notion-next)查看

## 主题样式
|||
|--|--|
| ![Next Theme](/docs/theme-next.png) | ![Hexo Theme](/docs/theme-hexo.png) |
| ![Medium Theme](/docs/theme-medium.png) | ![Fukasawa Theme](/docs/theme-fukasawa.png) |

## 更新日志
请移步 [更新文档](https://docs.tangly1024.com/zh/changelog)查看

Expand Down Expand Up @@ -83,9 +89,6 @@ yarn run start # 本地启动NextJS服务
- **评论**: Gitalk, Cusdis, Utterances
- **图标**[fontawesome](https://fontawesome.com/v5.15/icons?d=gallery)

## 页面样式主题
正在开发中..将支持配置文件切换主题

## License

The MIT License.
Binary file removed docs/screenshot-fukasawa.png
Binary file not shown.
Binary file removed docs/screenshot-youtube.png
Binary file not shown.
Binary file added docs/theme-fukasawa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/theme-hexo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/theme-medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/theme-next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions themes/Medium/components/PaginationSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import { useGlobal } from '@/lib/global'
/**
* 简易翻页插件
* @param page 当前页码
* @param showNext 是否有下一页
* @param totalPage 是否有下一页
* @returns {JSX.Element}
* @constructor
*/
const PaginationSimple = ({ page, showNext }) => {
const PaginationSimple = ({ page, totalPage }) => {
const { locale } = useGlobal()
const router = useRouter()
const currentPage = +page
const showNext = currentPage <= totalPage
return (
<div className='my-10 flex justify-between font-medium text-black dark:text-gray-100 space-x-2'>
<Link
Expand Down

1 comment on commit 4778d8f

@vercel
Copy link

@vercel vercel bot commented on 4778d8f Jan 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.