Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GeekLaunch/geeklaunch.github.io
Browse files Browse the repository at this point in the history
  • Loading branch information
encody committed Aug 10, 2023
2 parents 980bd31 + 7ddc587 commit b020d4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ baseURL = "https://geeklaunch.io"
copyright = "Jacob Lindahl"
defaultContentLanguage = "en"
disableKinds = ["taxonomy", "taxonomyTerm"]
googleAnalytics = "G-DMBPKLBF8X"
hasCJKLanguage = true
ignoreFiles = ["\\.psd$"]
languageCode = "en-us"
Expand Down
5 changes: 4 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<footer class="py:24 f:fade-50 f:fade-60@dark f:14 d:flex flex:col gap:8">
<footer class="py:24 f:fade-50 f:fade-60@dark f:14 d:flex flex:col gap:8 {text-decoration:underline}_a">
{{ if isset .Params "license" }}
<p>
This work is licensed under <a rel="license" href="{{ .Params.license.link }}">{{ .Params.license.name }}</a>.
</p>
{{ end }}
<p>&copy; Copyright {{ now.Format "2006" }} {{ .Site.Copyright }}.</p>
<p id="browserMessage" style="display:none">This site is designed for <a target="_blank" rel="noopener noreferrer"
href="https://firefox.com/">Firefox</a>, a web
browser that respects your privacy.</p>
<p class="
d:flex
{p:5}_a
Expand Down
11 changes: 7 additions & 4 deletions layouts/partials/head-extra.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{{ if hugo.IsProduction }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
<style>
html {
scroll-behavior: smooth;
Expand Down Expand Up @@ -32,7 +29,6 @@
:target {
animation: highlight 1.2s forwards;
}

</style>
<script>
(() => {
Expand Down Expand Up @@ -72,6 +68,13 @@
e.trigger.textContent = 'Copy';
}, { once: true });
});

// Browser message
const browserMessage = document.getElementById('browserMessage');
const browserIsChromiumBased = !!window.chrome;
if (browserMessage && browserIsChromiumBased) {
browserMessage.style.display = '';
}
});
})();
</script>

0 comments on commit b020d4a

Please sign in to comment.