class

Hwaro::Models::AmpConfig

Inherits Reference < Object

AMP (Accelerated Mobile Pages) configuration

Constructors

Instance methods

enabled
Source
enabled=(enabled : Bool)
Source
path_prefix
Source
path_prefix=(path_prefix : String)
Source
section_enabled?(section : String) : Bool

Check if a page section should get an AMP version. A listed section covers its descendants ("posts" includes "posts/2024"), as [feeds]/[outputs] sections do.

Source
sections
Source
sections=(sections : Array(String))
Source