Skip to content

Commit

Permalink
Updated baseURL and used absURL to set host name properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mon1 committed May 20, 2024
1 parent f6cc27f commit 97eabdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
title: "Digital.gov"
baseURL: "/"
baseURL: "https://digital.gov"
languageCode: "en-us"
theme: "digital.gov"
themesDir: "./themes"
Expand Down Expand Up @@ -68,7 +68,6 @@ params:
git_org: "GSA"
git_repo: "digitalgov.gov"
devmode: false
hostName: "https://digital.gov"

# Homepage settings
dg_tagline: "Better websites. Better government."
Expand Down
5 changes: 1 addition & 4 deletions themes/digital.gov/layouts/partials/core/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@
content="{{- $.Params.summary | default $.Site.Params.description | markdownify -}}"
/>
<meta property="og:type" content="{{- $.Scratch.Get "pagetype" -}}" />
<meta
property="og:url"
content="{{ .Site.Params.hostName }}{{- .Permalink -}}"
/>
<meta property="og:url" content="{{- .Permalink | absURL -}}" />
<meta property="og:site_name" content="Digital.gov" />
<meta name="robots" content="index, follow" />
<meta property="og:locale" content="en_US" />
Expand Down

0 comments on commit 97eabdb

Please sign in to comment.