summaryrefslogtreecommitdiff
path: root/src/generate_html.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/generate_html.rs')
-rw-r--r--src/generate_html.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/generate_html.rs b/src/generate_html.rs
index f14d5f9..05456d0 100644
--- a/src/generate_html.rs
+++ b/src/generate_html.rs
@@ -3,7 +3,7 @@ use crate::*;
use markdown::*;
-pub fn generate_html(document: &MarkdownDocument, page: &SourceFile, website: &Website) -> String {
+pub fn generate_html(document: &MarkdownDocument, page: &Page, website: &Website) -> String {
format!("\
<!DOCTYPE html>
<head>
@@ -27,7 +27,7 @@ pub fn generate_html(document: &MarkdownDocument, page: &SourceFile, website: &W
-pub fn get_html_head(document: &MarkdownDocument, page: &SourceFile) -> String {
+pub fn get_html_head(document: &MarkdownDocument, page: &Page) -> String {
if let Some(Block::Fragment { language, content }) = document.blocks.first() {
if language == "embed-html-head" {
return content.to_string();
@@ -43,7 +43,7 @@ pub fn get_html_head(document: &MarkdownDocument, page: &SourceFile) -> String {
-pub fn document_to_html(document: &MarkdownDocument, page: &SourceFile, website: &Website) -> String {
+pub fn document_to_html(document: &MarkdownDocument, page: &Page, website: &Website) -> String {
let mut html = String::new();
macro_rules! line_to_html {
@@ -158,7 +158,7 @@ pub fn document_to_html(document: &MarkdownDocument, page: &SourceFile, website:
-fn line_to_html(line: &Line, page: &SourceFile, website: &Website) -> String {
+fn line_to_html(line: &Line, page: &Page, website: &Website) -> String {
let mut html = String::new();
for line_element in &line.tokens {
match line_element {