We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e682a commit 2fd3e74Copy full SHA for 2fd3e74
_includes/footer.html
@@ -49,7 +49,8 @@ <h3 class="footer-heading">{{ site.title }}</h3>
49
<p class="text">{{ site.description }}</p>
50
</div>
51
52
-{% if jekyll.environment == "production" %}
+
53
+{% unless site.url contains "localhost" %}
54
<link href="/pagefind/pagefind-ui.css" rel="stylesheet">
55
<script src="/pagefind/pagefind-ui.js"></script>
56
<div id="search"></div>
@@ -58,7 +59,7 @@ <h3 class="footer-heading">{{ site.title }}</h3>
58
59
new PagefindUI({ element: "#search", showSubResults: true });
60
});
61
</script>
-{% endif %}
62
+{% endunless %}
63
64
65
</footer>
0 commit comments