Skip to content

Commit

Permalink
feat: add tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
blaberg committed Dec 9, 2024
1 parent 7ee1964 commit 2fa301f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/generator/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>{{.Title}}</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions cmd/generator/templates/recipe.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{define "content" -}}
<h1 class="text-xl">{{.Title}}</h1>
{{.Content}}
{{- end}}
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>John&#39;s Recipes</title>
</head>
<body>
Expand Down
4 changes: 3 additions & 1 deletion public/my-first-recipe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>My First Recipe</title>
</head>
<body>
<h1>My first recipe</h1>
<h1 class="text-xl">My First Recipe</h1>
<h1>My first recipe</h1>
</body>
</html>
4 changes: 3 additions & 1 deletion public/my-second-recipe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>My Second Recipe</title>
</head>
<body>
<h1>My Second recipe</h1>
<h1 class="text-xl">My Second Recipe</h1>
<h1>My Second recipe</h1>
</body>
</html>

0 comments on commit 2fa301f

Please sign in to comment.