add id to continue reading p tag (#577)

* add id to continue reading p tag
This commit is contained in:
toidiu 2019-01-07 13:20:19 -05:00 committed by Vincent Prouillet
parent 5681f244b8
commit 09f691fa47
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ use utils::site::resolve_internal_link;
use context::RenderContext;
use table_of_contents::{make_table_of_contents, Header, TempHeader};
const CONTINUE_READING: &str = "<p><a name=\"continue-reading\"></a></p>\n";
const CONTINUE_READING: &str = "<p id=\"zola-continue-reading\"><a name=\"continue-reading\"></a></p>\n";
#[derive(Debug)]
pub struct Rendered {

View file

@ -708,7 +708,7 @@ fn can_handle_summaries() {
.unwrap();
assert_eq!(
res.body,
"<p>Hello <a href=\"https://vincent.is/about/\">world</a></p>\n<p><a name=\"continue-reading\"></a></p>\n<p>Bla bla</p>\n"
"<p>Hello <a href=\"https://vincent.is/about/\">world</a></p>\n<p id=\"zola-continue-reading\"><a name=\"continue-reading\"></a></p>\n<p>Bla bla</p>\n"
);
assert_eq!(
res.summary_len,