mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-21 03:57:51 +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
|
@ -12,7 +12,7 @@ import {truncate} from './blogUtils';
|
|||
export = function(fileString: string) {
|
||||
const callback = this.async();
|
||||
|
||||
const {truncateMarker}: {truncateMarker: RegExp | string} = getOptions(this);
|
||||
const {truncateMarker}: {truncateMarker: RegExp} = getOptions(this);
|
||||
|
||||
let finalContent = fileString;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue