Skip to content

Commit

Permalink
Merge branch 'stable' into dependabot/npm_and_yarn/semver-7.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
simpixelated authored Aug 1, 2023
2 parents 29cb3bb + d405e8d commit f44d596
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/lighthouserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
"uses-rel-preconnect": "warn", // flags Netlify scripts on deploy preview
"csp-xss": "warn",
deprecations: "warn",
"bf-cache": "warn",
},
},
settings: {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
site_name: "simpixelated"
max_timeout: 120
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v9
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
${{ steps.netlify.outputs.url }}
Expand Down
8 changes: 8 additions & 0 deletions src/_data/mySite.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = function () {
return {
// should be Netlify build context
// "It can be production, deploy-preview, branch-deploy, or dev."
// https://docs.netlify.com/configure-builds/environment-variables/#build-metadata
context: process.env.CONTEXT,
}
}
2 changes: 1 addition & 1 deletion src/_includes/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png" />
<script data-no-cookie="true" async="" src="https://cdn.splitbee.io/sb.js"></script>
{% if mySite.context === 'production' %}<script data-no-cookie="true" async="" src="https://cdn.splitbee.io/sb.js"></script>{% endif %}
</head>
<body>
<header>
Expand Down
3 changes: 2 additions & 1 deletion src/_includes/meta-info.njk
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@
<meta property="og:description" content="{{ metaDesc }}" />
{% endif %}

<meta name="twitter:creator" content="@simpixelated" />
<meta name="twitter:creator" content="@simpixelated" />
<meta name="generator" content="{{ eleventy.generator }}">

0 comments on commit f44d596

Please sign in to comment.