Skip to content

Commit

Permalink
Merge pull request #1055 from karthik2804/hub/fix_sitemap
Browse files Browse the repository at this point in the history
fix sitemap to point at preview pages instead of api
  • Loading branch information
Timothy McCallum authored Nov 27, 2023
2 parents c4bd0d7 + 5dfcbca commit d812eb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/sitemap.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ For date/time format, see https://www.w3.org/TR/NOTE-datetime
</url>
{{#each (sitemap site.pages) }}
<url>
{{#if (active_project uri "api/hub/")}}
<loc>https://developer.fermyon.com{{replace uri "api/hub/" "hub/preview/"}}</loc>
{{else}}
<loc>https://developer.fermyon.com{{uri}}</loc>
{{/if}}
{{#if page.head.date }}<lastmod>{{date_format "%Y-%m-%dT%H:%M:%SZ" page.head.date}}</lastmod>{{/if}}
{{#if (active_project uri "/spin/v1" )}}
<changefreq>weekly</changefreq>
Expand Down

0 comments on commit d812eb5

Please sign in to comment.