27 lines
612 B
HTML
27 lines
612 B
HTML
|
{{$siteName := (include "/siteName")}}
|
||
|
{{$files := (listFiles "/markdown")}}
|
||
|
{{$length := (len $files)}}
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>{{$siteName}}</title>
|
||
|
<link rel="stylesheet" href="style.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="outer">
|
||
|
<div class="inner">
|
||
|
<h1>Welcome to {{$siteName}}!</h1>
|
||
|
<hr>
|
||
|
{{range $files}}
|
||
|
<p>
|
||
|
<a href="/blog/{{trimSuffix ".md" (first $files)}}">{{trimSuffix ".md" (first $files)}}</a>
|
||
|
</p>
|
||
|
{{$files = (rest $files)}}
|
||
|
{{end}}
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|
||
|
|