This commit is contained in:
zztkm 2022-08-02 13:00:14 +09:00
parent d7a564021e
commit 2fedc8a90f
3 changed files with 12 additions and 1 deletions

1
.gitignore vendored
View file

@ -10,3 +10,4 @@ vls.log
# generated test files
index.html
example/dist/

View file

@ -3,3 +3,5 @@
A static site generator
- [GitHub](https://github.com/zztkm)
[about page](./about.md)

8
vss.v
View file

@ -54,6 +54,14 @@ fn get_html_filename(md_path string) string {
return file_name + '.html'
}
// parse_link convert markdown relative links to html relative links
fn parse_link(contents string) string {
lines := contents.split_into_lines()
for line in lines {
println(line)
}
}
fn generate_pages() ? {
dist := default_dist
if !os.exists(dist) {