Browse Source

Change naming convention

index-subcmd
Tim DuBois 6 years ago
parent
commit
c8dfc5156a
No known key found for this signature in database GPG Key ID: 4D3183C1C5D8A54F
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      components/content/src/page.rs
  2. +1
    -1
      docs/content/documentation/content/page.md

+ 1
- 1
components/content/src/page.rs View File

@@ -170,7 +170,7 @@ impl Page {
permalinks, permalinks,
anchor_insert anchor_insert
); );
let res = markdown_to_html(&self.raw_content.replacen("<!-- more -->", "<a name=\"more\"></a>", 1), &context)?;
let res = markdown_to_html(&self.raw_content.replacen("<!-- more -->", "<a name=\"continue-reading\"></a>", 1), &context)?;
self.content = res.0; self.content = res.0;
self.toc = res.1; self.toc = res.1;
if self.raw_content.contains("<!-- more -->") { if self.raw_content.contains("<!-- more -->") {


+ 1
- 1
docs/content/documentation/content/page.md View File

@@ -80,4 +80,4 @@ in the [template](./documentation/templates/pages-sections.md#page-variables).


An anchor link to this position is created so you can link directly to it if needed An anchor link to this position is created so you can link directly to it if needed
for example: for example:
`<a href="{{ page.permalink }}#more">Continue Reading</a>`
`<a href="{{ page.permalink }}#continue-reading">Continue Reading</a>`

Loading…
Cancel
Save