feat: finish markup converters

Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2023-05-28 15:19:38 +05:30
1 parent 4b8607b12a
commit 3de9bfc58c
4 files changed
+61 -20

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/assets/index-bab4abd8.css">
<link rel="stylesheet" href="/assets/index-544d9ea3.css">
</head>
<body>
<h1 class="text-2xl">Hello, World!</h1>
+5 -5
View File
@@ -14,7 +14,7 @@
rel="stylesheet">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/assets/show-1b4526c3.css">
<link rel="stylesheet" href="/assets/show-7a43d2b5.css">
</head>
<body class="flex flex-col h-full w-full items-center">
@@ -22,11 +22,11 @@
<h2 class="text-2xl">{{.Title}}</h2>
<p><a href="https://medium.com/u/{{.UserId}}">{{.Author}}</a> on {{.PublishDate}}</p>
{{range .Nodes}}
{{if eq .type "H3"}}
<h3>.text</h3>
{{if eq .Type "H3"}}
<h3>{{.Text}}</h3>
{{end}}
{{if eq .type "IMG"}}
<h3>.text</h3>
{{if eq .Type "IMG"}}
{{end}}
{{end}}
</article>