Class: Abqari::Audit::Content

Inherits:
Rule
  • Object
show all
Defined in:
lib/abqari/audit/content.rb

Overview

Content-quality rule:

- Posts without a frontmatter `description:` (warn)
- Tags used by only one post (info)
- Frontmatter values that fall outside an operator-supplied
whitelist (warn) — see `validate:` in config/site.yml
- `series_position:` problems that break prev/next navigation
silently (warn / info)

Instance Method Summary collapse

Methods inherited from Rule

#initialize

Constructor Details

This class inherits a constructor from Abqari::Audit::Rule

Instance Method Details

#runObject



15
16
17
18
19
20
# File 'lib/abqari/audit/content.rb', line 15

def run
  flag_posts_without_description
  flag_single_use_tags
  check_frontmatter_whitelists
  flag_series_position_problems
end