Skip to content

Commit

Permalink
update head tag order (#407)
Browse files Browse the repository at this point in the history
* update head tag order

* update head tag order for ssr version
  • Loading branch information
ethangardner authored Dec 23, 2024
1 parent 1c9df5e commit b355f84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
26 changes: 11 additions & 15 deletions apps/spotlight/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,38 @@ const context = getAppContext();
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="description"
content=`10x Access to Justice Spotlight - ${title}`
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{title}</title>
<script
async
type="text/javascript"
is:inline
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=GSA"
id="_fed_an_ua_tag"></script>
<script is:inline src={`${context.uswdsRoot}js/uswds-init.min.js`}></script>
<script src="../lib/initialize.ts"></script>
<link
href="/favicon/apple-touch-icon.png"
href={`${context.baseUrl}favicon/apple-touch-icon.png`}
rel="apple-touch-icon"
sizes="180x180"
/>
<link
href="/favicon/favicon-32x32.png"
href={`${context.baseUrl}favicon/favicon-32x32.png`}
rel="icon"
sizes="32x32"
type="image/png"
/>
<link
href="/favicon/favicon-16x16.png"
href={`${context.baseUrl}favicon/favicon-16x16.png`}
rel="icon"
sizes="16x16"
type="image/png"
/>
<link href="/favicon/favicon.ico" rel="shortcut icon" />
<link href={`${context.baseUrl}favicon/favicon.ico`} rel="shortcut icon" />
<meta name="generator" content={Astro.generator} />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
<meta
name="description"
content=`10x Access to Justice Spotlight - ${title}`
/>
<script is:inline src={`${context.uswdsRoot}js/uswds-init.min.js`}></script>
<script src="../lib/initialize.ts"></script>
<title>{title}</title>
</head>
<body id="top">
<script is:inline defer src={`${context.uswdsRoot}js/uswds.min.js`}></script>
Expand Down
12 changes: 5 additions & 7 deletions packages/server/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ const { title } = Astro.props;
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content=`10x Access to Justice - ${title}` />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{title}</title>
<script
async
is:inline
type="text/javascript"
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=GSA"
id="_fed_an_ua_tag"></script>
<script src="../lib/initialize.ts"></script>
<link
href="/favicon/apple-touch-icon.png"
rel="apple-touch-icon"
Expand All @@ -41,12 +41,10 @@ const { title } = Astro.props;
/>
<link href="/favicon/favicon.ico" rel="shortcut icon" />
<meta name="generator" content={Astro.generator} />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
<meta
name="description"
content=`10x Access to Justice Spotlight - ${title}`
/>
<script src="../lib/initialize.ts"></script>
<title>{title}</title>
</head>
<body id="top">
<div class="usa-app usa-app__theme-1">
Expand Down

0 comments on commit b355f84

Please sign in to comment.