filesystem cleanup, make it single page
parent
e2de017014
commit
36f5eb943e
@ -1,14 +0,0 @@
|
||||
use std::fs::{read_to_string, write};
|
||||
|
||||
use comrak::{markdown_to_html, ComrakOptions};
|
||||
|
||||
fn main() {
|
||||
let mut skeleton = read_to_string("src/skeleton.html").unwrap();
|
||||
let readme = read_to_string("README.md").unwrap();
|
||||
|
||||
skeleton = skeleton
|
||||
.replace("{name}", "readme")
|
||||
.replace("{}", &markdown_to_html(&readme, &ComrakOptions::default()));
|
||||
|
||||
write("src/readme.html", skeleton).unwrap();
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>rchan - post</title>
|
||||
<link rel="stylesheet" type="text/css" href="css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="grid">
|
||||
<div class="home">
|
||||
<h1>
|
||||
<a href="/">rchan</a> <a href="/readme">readme</a> <a href="post">post</a>
|
||||
</h1>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="text">
|
||||
<form id="postform" action="/post" method="post">
|
||||
<textarea name="content" rows="10" cols="50"></textarea>
|
||||
<br>
|
||||
<button>POST</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</head>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
|
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 236 KiB |
Loading…
Reference in New Issue