Skip to content

Commit 14eec3f

Browse files
committed
docs: add showArchives option in docs
1 parent c1eb587 commit 14eec3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/blog/how-to-configure-astropaper-theme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
author: Sat Naing
33
pubDatetime: 2022-09-23T04:58:53Z
4-
modDatetime: 2024-01-15T13:05:56.066Z
4+
modDatetime: 2024-10-14T09:27:28.605Z
55
title: How to configure AstroPaper theme
66
slug: how-to-configure-astropaper-theme
77
featured: true
@@ -33,6 +33,7 @@ export const SITE = {
3333
lightAndDarkMode: true,
3434
postPerPage: 3,
3535
scheduledPostMargin: 15 * 60 * 1000, // 15 minutes
36+
showArchives: true,
3637
editPost: {
3738
url: "https://github.com/satnaing/astro-paper/edit/main/src/content/blog",
3839
text: "Suggest Changes",
@@ -54,6 +55,7 @@ Here are SITE configuration options
5455
| `postPerIndex` | The number of posts to be displayed at the home page under `Recent` section. |
5556
| `postPerPage` | You can specify how many posts will be displayed in each posts page. (eg: if you set SITE.postPerPage to 3, each page will only show 3 posts per page) |
5657
| `scheduledPostMargin` | In Production mode, posts with a future `pubDatetime` will not be visible. However, if a post's `pubDatetime` is within the next 15 minutes, it will be visible. You can set `scheduledPostMargin` if you don't like the default 15 minutes margin. |
58+
| `showArchives` | Determines whether to display the `Archives` menu (positioned between the `About` and `Search` menus) and its corresponding page on the site. This option is set to `true` by default. |
5759
| `editPost` | This option allows users to suggest changes to a blog post by providing an edit link under blog post titles. This feature can be disabled by removing it from the `SITE` config. You can also set `appendFilePath` to `true` to automatically append the file path of the post to the url, directing users to the specific post they wish to edit. |
5860

5961
## Configuring locale

0 commit comments

Comments
 (0)