fix: remove prod check
This commit is contained in:
parent
3d946429f7
commit
49c6a67373
3 changed files with 3 additions and 8 deletions
|
@ -75,7 +75,6 @@ export default async function (eleventyConfig) {
|
|||
})
|
||||
|
||||
eleventyConfig.addShortcode('appVersion', () => appVersion)
|
||||
eleventyConfig.addShortcode('isProduction', () => process.env.ELEVENTY_PRODUCTION === 'true')
|
||||
|
||||
// events
|
||||
if (process.env.ELEVENTY_PRODUCTION) eleventyConfig.on('afterBuild', copyErrorPages)
|
||||
|
|
|
@ -117,10 +117,8 @@
|
|||
<link rel="alternate" href="https://coryd.dev/feeds/album-releases" title="Album releases / {{ globals.site_name }}" type="application/rss+xml">
|
||||
<link rel="alternate" href="https://coryd.dev/feeds/all" title="All activity / {{ globals.site_name }}" type="application/rss+xml">
|
||||
<script defer src="/assets/scripts/index.js?v={% appVersion %}"></script>
|
||||
{%- if isProduction -%}
|
||||
<script defer data-domain="coryd.dev" src="/js/script.js"></script>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
{%- endif -%}
|
||||
<script defer data-domain="coryd.dev" src="/js/script.js"></script>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<article>
|
||||
{{ intro }}
|
||||
{%- if isProduction -%}
|
||||
{% render "partials/blocks/now-playing.liquid", nowPlaying:nowPlaying %}
|
||||
{%- endif -%}
|
||||
{% render "partials/blocks/now-playing.liquid", nowPlaying:nowPlaying %}
|
||||
</article>
|
Reference in a new issue