class

Hwaro::Models::SummaryConfig

Inherits Reference < Object

Automatic summary fallback ([content] summary_length / summary_ellipsis). When a page has neither a <!-- more --> marker nor a description, page.summary is filled from the first length words of the rendered body (characters ×2 for CJK-dominant text — see Utils::TextUtils.truncate_excerpt). length = 0 disables the fallback entirely, restoring the pre-0.21 behaviour where such pages had no summary at all.

Constants

DEFAULT_ELLIPSIS = "…"
DEFAULT_LENGTH = 70

Constructors

Instance methods

ellipsis
Source
ellipsis=(ellipsis : String)
Source
enabled?
Source
length
Source
length=(length : Int32)
Source