Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,19 @@ const default_options = {

// order of what gets the highest priority:
//
// 1. frontmatter
// 2. page excerpt
// 3. content markdown paragraph
// 4. content regular html <p>
// 1. full-text content
// 2. frontmatter
// 3. page excerpt
// 4. content markdown paragraph
// 5. content regular html <p>

description_sources: [

// full-text html
// @todo: needs to resolve absolute (/*) and relative (./*) img src
//
'content',

'frontmatter',
'excerpt',

Expand Down
14 changes: 10 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,19 @@ PLUGIN.get_options_defaults = ( context ) =>

// order of what gets the highest priority:
//
// 1. frontmatter
// 2. page excerpt
// 3. content markdown paragraph
// 4. content regular html <p>
// 1. full-text content
// 2. frontmatter
// 3. page excerpt
// 4. content markdown paragraph
// 5. content regular html <p>

description_sources: [

// full-text html
// @todo: needs to resolve absolute (/*) and relative (./*) img src
//
'content',

'frontmatter',
'excerpt',

Expand Down
8 changes: 8 additions & 0 deletions lib/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ class Page
break;

// -------------------------------------------------------------------

case 'content':

out = this.context || '';

break;

// -------------------------------------------------------------------

case 'excerpt':

Expand Down