From 0a34184ac5b06f57f6cfa35e09e5969905e6e6fe Mon Sep 17 00:00:00 2001 From: Tim DuBois Date: Sun, 25 Mar 2018 13:05:42 +0200 Subject: [PATCH 1/3] Anchor tag for summary --- components/content/src/page.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/content/src/page.rs b/components/content/src/page.rs index 26ebbf2..6e62981 100644 --- a/components/content/src/page.rs +++ b/components/content/src/page.rs @@ -170,7 +170,7 @@ impl Page { permalinks, anchor_insert ); - let res = markdown_to_html(&self.raw_content, &context)?; + let res = markdown_to_html(&self.raw_content.replacen("", "", 1), &context)?; self.content = res.0; self.toc = res.1; if self.raw_content.contains("") { From 46115334c8a94bdb46595cd4fbdbf8c0cdf7b1e4 Mon Sep 17 00:00:00 2001 From: Tim DuBois Date: Sun, 25 Mar 2018 13:17:03 +0200 Subject: [PATCH 2/3] Documentation --- docs/content/documentation/content/page.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/content/documentation/content/page.md b/docs/content/documentation/content/page.md index 1a8b770..c62fc41 100644 --- a/docs/content/documentation/content/page.md +++ b/docs/content/documentation/content/page.md @@ -77,3 +77,7 @@ paragraph of each page in a list for example. To do so, add `` in your content at the point where you want the summary to end and the content up to that point will be also available separately 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 +for example: +`Continue Reading` From c8dfc5156a413803f28f583c61af9abf878a82fa Mon Sep 17 00:00:00 2001 From: Tim DuBois Date: Tue, 27 Mar 2018 07:38:04 +0200 Subject: [PATCH 3/3] Change naming convention --- components/content/src/page.rs | 2 +- docs/content/documentation/content/page.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/content/src/page.rs b/components/content/src/page.rs index 6e62981..b6ca3f7 100644 --- a/components/content/src/page.rs +++ b/components/content/src/page.rs @@ -170,7 +170,7 @@ impl Page { permalinks, anchor_insert ); - let res = markdown_to_html(&self.raw_content.replacen("", "", 1), &context)?; + let res = markdown_to_html(&self.raw_content.replacen("", "", 1), &context)?; self.content = res.0; self.toc = res.1; if self.raw_content.contains("") { diff --git a/docs/content/documentation/content/page.md b/docs/content/documentation/content/page.md index c62fc41..78010e5 100644 --- a/docs/content/documentation/content/page.md +++ b/docs/content/documentation/content/page.md @@ -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 for example: -`Continue Reading` +`Continue Reading`