|
1 | 1 | --- |
2 | 2 | author: Sat Naing |
3 | 3 | pubDatetime: 2022-09-23T04:58:53Z |
4 | | -modDatetime: 2025-03-07T14:01:26.494Z |
| 4 | +modDatetime: 2025-03-12T13:39:39.057Z |
5 | 5 | title: How to configure AstroPaper theme |
6 | 6 | slug: how-to-configure-astropaper-theme |
7 | 7 | featured: true |
@@ -42,26 +42,28 @@ export const SITE = { |
42 | 42 | text: "Suggest Changes", |
43 | 43 | appendFilePath: true, |
44 | 44 | }, |
| 45 | + dynamicOgImage: true, // enable automatic dynamic og-image generation |
45 | 46 | } as const; |
46 | 47 | ``` |
47 | 48 |
|
48 | 49 | Here are SITE configuration options |
49 | 50 |
|
50 | | -| Options | Description | |
51 | | -| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
52 | | -| `website` | Your deployed website URL | |
53 | | -| `author` | Your name | |
54 | | -| `profile` | Your personal/portfolio website URL which is used for better SEO. Put `null` or empty string `""` if you don't have any. | |
55 | | -| `desc` | Your site description. Useful for SEO and social media sharing. | |
56 | | -| `title` | Your site name | |
57 | | -| `ogImage` | Your default OG image for the site. Useful for social media sharing. OG images can be an external image URL or they can be placed under `/public` directory. | |
58 | | -| `lightAndDarkMode` | Enable or disable `light & dark mode` for the website. If disabled, primary color scheme will be used. This option is enabled by default. | |
59 | | -| `postPerIndex` | The number of posts to be displayed at the home page under `Recent` section. | |
60 | | -| `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) | |
61 | | -| `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. | |
62 | | -| `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. | |
63 | | -| `showBackButton` | Determines whether to display the `Go back` button in each blog post. | |
64 | | -| `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. | |
| 51 | +| Options | Description | |
| 52 | +| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 53 | +| `website` | Your deployed website URL | |
| 54 | +| `author` | Your name | |
| 55 | +| `profile` | Your personal/portfolio website URL which is used for better SEO. Put `null` or empty string `""` if you don't have any. | |
| 56 | +| `desc` | Your site description. Useful for SEO and social media sharing. | |
| 57 | +| `title` | Your site name | |
| 58 | +| `ogImage` | Your default OG image for the site. Useful for social media sharing. OG images can be an external image URL or they can be placed under `/public` directory. | |
| 59 | +| `lightAndDarkMode` | Enable or disable `light & dark mode` for the website. If disabled, primary color scheme will be used. This option is enabled by default. | |
| 60 | +| `postPerIndex` | The number of posts to be displayed at the home page under `Recent` section. | |
| 61 | +| `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) | |
| 62 | +| `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. | |
| 63 | +| `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. | |
| 64 | +| `showBackButton` | Determines whether to display the `Go back` button in each blog post. | |
| 65 | +| `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. | |
| 66 | +| `dynamicOgImage` | This option controls whether to [generate dynamic og-image](https://astro-paper.pages.dev/posts/dynamic-og-image-generation-in-astropaper-blog-posts/) if no `ogImage` is specified in the blog post frontmatter. If you have many blog posts, you might want to disable this feature. See the [trade-off](https://astro-paper.pages.dev/posts/dynamic-og-image-generation-in-astropaper-blog-posts/#trade-off) for more details. | |
65 | 67 |
|
66 | 68 | ## Configuring locale |
67 | 69 |
|
|
0 commit comments