mirror of
https://github.com/ivabus/www
synced 2024-11-22 10:25:07 +03:00
Added vanilla blog components
This commit is contained in:
parent
979fda0db1
commit
8b89f20d9d
3 changed files with 34 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{{ .Title }}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
<ul>
|
||||||
|
{{ range .Pages }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
|
<span>{{ .Date.Format "2006-01-02" }}</span>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
<a href="/">Back to home</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,14 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{{ .Title }}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
<p>{{ .Date.Format "2006-01-02" }}</p>
|
||||||
|
{{ .Content }}
|
||||||
|
<a href="{{ "blog" | relURL }}">Back to blog</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue