TASK ARCHIVE: href_decorator rules-based config redesign#

SUMMARY#

Redesigned the href_decorator plugin from a pattern-centric config to a rules-based config (defaults + rules with optional match, collections, attrs). Decoration is limited to links inside <article> elements via Nokogiri DOM selection; navigation, tags, and footers are left unchanged. External/asset/PDF links get defaults everywhere; all links in the posts collection get defaults inside article body only.

REQUIREMENTS#

IMPLEMENTATION#

TESTING#

LESSONS LEARNED#

PROCESS IMPROVEMENTS#

None identified for this task.

TECHNICAL IMPROVEMENTS#

If “decorate only body links with configurable rules” had been a core requirement from the start, the plugin would have been designed around: parse with Nokogiri, select article a[href], apply rules. Same end state with one less round-trip (no full-document regex pass to discard).

NEXT STEPS#

None.