🚧
This commit is contained in:
parent
d7a564021e
commit
2fedc8a90f
3 changed files with 12 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,3 +10,4 @@ vls.log
|
|||
|
||||
# generated test files
|
||||
index.html
|
||||
example/dist/
|
|
@ -3,3 +3,5 @@
|
|||
A static site generator
|
||||
|
||||
- [GitHub](https://github.com/zztkm)
|
||||
|
||||
[about page](./about.md)
|
8
vss.v
8
vss.v
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue