|
@@ -28,6 +28,7 @@ fn header(title: &str, css_path: &str) -> String {
|
|
<body>
|
|
<body>
|
|
<div>
|
|
<div>
|
|
<b>sort by</b> [<a href='../../authors.html'>author</a>] [<a href='../../dates.html'>dates</a>] [<a href='../../subjects.html'>subjects</a>]
|
|
<b>sort by</b> [<a href='../../authors.html'>author</a>] [<a href='../../dates.html'>dates</a>] [<a href='../../subjects.html'>subjects</a>]
|
|
|
|
+ <button onclick="window.location.href='../../index.html'">Home</button>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<hr>
|
|
"#
|
|
"#
|
|
@@ -293,8 +294,8 @@ impl Thread {
|
|
if let Some(text_node) = child.as_text() {
|
|
if let Some(text_node) = child.as_text() {
|
|
if !text_node.borrow().trim().is_empty() {
|
|
if !text_node.borrow().trim().is_empty() {
|
|
let new_node = kuchiki::parse_html().one(format!(
|
|
let new_node = kuchiki::parse_html().one(format!(
|
|
- r#"<span class="purplenumber"><a href="{}{}.html">{}</a></span>"#,
|
|
|
|
- link, ref_number, ref_number
|
|
|
|
|
|
+ r#"<span class="purplenumber" id="{}"><a href="{}html">{}</a></span>"#,
|
|
|
|
+ ref_number, link, ref_number,
|
|
));
|
|
));
|
|
child.insert_after(new_node);
|
|
child.insert_after(new_node);
|
|
*ref_number += 1;
|
|
*ref_number += 1;
|