Skip to content

Commit

Permalink
Merge pull request #943 from darricheng/improve-base-html-defaults
Browse files Browse the repository at this point in the history
Add relevant meta tags for better defaults
  • Loading branch information
jondot authored Oct 31, 2024
2 parents 9278205 + 356784b commit e0b50ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loco-gen/src/templates/scaffold/html/base.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ message: "Base template was added successfully."
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% raw %}{% block title %}{% endblock title %}{% endraw %}</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,line-clamp"></script>
{% raw %}{% block head %}{% endraw %}
Expand Down
2 changes: 2 additions & 0 deletions loco-gen/src/templates/scaffold/htmx/base.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ message: "Base template was added successfully."
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% raw %}{% block title %}{% endblock title %}{% endraw %}</title>

<script src="https://unpkg.com/[email protected]/dist/htmx.min.js"></script>
Expand Down

0 comments on commit e0b50ac

Please sign in to comment.