Remove header link text from reader view
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ $content := $page.Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` (printf `${1} <a aria-label="%s" class="paige-header-link" href="#${2}">#</a>${3}` (i18n "paige_aria_section_link")) }}
|
{{ $content := $page.Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` (printf `${1} <a aria-label="%s" class="paige-header-link" href="#${2}"></a>${3}` (i18n "paige_aria_section_link")) }}
|
||||||
|
|
||||||
{{ with $content }}
|
{{ with $content }}
|
||||||
<div class="mw-100" id="paige-content">{{ . | safeHTML }}</div>
|
<div class="mw-100" id="paige-content">{{ . | safeHTML }}</div>
|
||||||
|
@@ -22,6 +22,10 @@
|
|||||||
transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
|
transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.paige-header-link::after {
|
||||||
|
content: "#";
|
||||||
|
}
|
||||||
|
|
||||||
.paige-quote .blockquote-footer {
|
.paige-quote .blockquote-footer {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user