Skip to content

Commit

Permalink
Merge pull request #7 from nasa-jpl/adding-script-to-header
Browse files Browse the repository at this point in the history
chore: added script to header layout and updated embed commit.
  • Loading branch information
betolink committed Apr 15, 2024
2 parents 74d1172 + 056fa69 commit 23929bd
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/render-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '18'

- name: install postcss
run: npm i postcss postcss-cli autoprefixer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '18'

- name: install postcss
run: npm i postcss postcss-cli autoprefixer
Expand Down
21 changes: 21 additions & 0 deletions layouts/partials/head/metadata.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- DAP Code Script -->
<script async type="text/javascript" id="_fed_an_ua_tag"
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA&subagency=JPL-jpl-nasa-its-live"></script>

<!-- Copied from https://github.com/betolink/hugo-theme-introduction/blob/80ec94d6a8643df722473b7257dd14909413b7a2/layouts/partials/head/metadata.html -->
{{ template "_internal/google_analytics.html" . }}

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer">
{{ if .Site.Params.description }}
<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
<title>
{{ .Title | humanize | title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title | markdownify }}{{ end }}
</title>
<!-- RSS -->
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }}
2 changes: 1 addition & 1 deletion mappin-itslive-embed

0 comments on commit 23929bd

Please sign in to comment.