mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-20 12:37:01 +02:00
fix(v2): hide read more button on non-truncated posts (#2240)
* fix(v2): hide read more button on non-truncated posts * Update tests
This commit is contained in:
parent
894dbcff49
commit
5121ac013c
6 changed files with 12 additions and 7 deletions
|
@ -41,7 +41,7 @@ const DEFAULT_OPTIONS: PluginOptions = {
|
|||
blogTagsPostsComponent: '@theme/BlogTagsPostsPage',
|
||||
remarkPlugins: [],
|
||||
rehypePlugins: [],
|
||||
truncateMarker: /<!--\s*(truncate)\s*-->/, // string or regex
|
||||
truncateMarker: /<!--\s*(truncate)\s*-->/, // Regex
|
||||
};
|
||||
|
||||
function assertFeedTypes(val: any): asserts val is FeedType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue