This commit is contained in:
@@ -2,6 +2,8 @@ use std::fs;
|
||||
|
||||
use risp::law::{Content, Heading, HeadingContent, Law, Section};
|
||||
|
||||
use crate::part::Parts;
|
||||
|
||||
fn print_content(content: Content) -> String {
|
||||
let mut ret = String::new();
|
||||
|
||||
@@ -114,6 +116,8 @@ pub(crate) fn create_law_files() -> String {
|
||||
.replace("{{content}}", &content)
|
||||
.replace("{{title}}", &lawname);
|
||||
|
||||
let site = Parts::new().perform(site);
|
||||
|
||||
li_of_files.push_str(&format!(
|
||||
"<li><a href='./{law_name}' title='{law_name}' class='contrast'>{lawname}</a></li>"
|
||||
));
|
||||
|
Reference in New Issue
Block a user