Skip to content

Commit

Permalink
bux fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gurusabarish committed Dec 13, 2022
1 parent 8f90faf commit f0d7967
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/sections/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- /* theme-toggle is enabled */}}
{{- if (not .Site.Params.theme.disableThemeToggle) }}
{{- if (not .Site.Params.theme.disableThemeToggle | default false) }}
{{- /* theme is auto */}}
<script>
if (localStorage.getItem("pref-theme") === "dark") {
Expand Down Expand Up @@ -145,9 +145,9 @@
{{end}}
{{end}}

{{ if (not .Site.Params.theme.disableThemeToggle | default false) }}
<li class="nav-item navbar-text">
<!-- darkmode mode toggle -->
{{ if (not .Site.Params.theme.disableThemeToggle) }}
<div class="text-center">
<button id="theme-toggle">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
Expand All @@ -166,8 +166,8 @@
</svg>
</button>
</div>
{{ end }}
</li>
{{ end }}

</ul>

Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
publish = "exampleSite/public"
command = 'cd exampleSite && echo -e "\ngoogleAnalytics: $GOOGLE_ANALYTICS \n" >> config.yaml && hugo --gc --minify --themesDir ../..'
command = 'cd exampleSite && echo -e "\ngoogleAnalytics: $GOOGLE_ANALYTICS \n disqusShortname: $DISQUS_SHORTNAME \n" >> config.yaml && hugo --gc --minify --themesDir ../..'

[context.production.environment]
HUGO_VERSION = "0.92.0"
Expand Down
1 change: 1 addition & 0 deletions static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ header .navbar.animate {
}

#achievements .card {
cursor: context-menu;
background-color: var(--secondary-color) !important;
border-radius: 1rem;
box-shadow: 0 0 36px rgba(0,0,0,0.1);
Expand Down
1 change: 1 addition & 0 deletions static/css/single.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
border-radius: 1rem;
box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
margin-bottom: 1rem;
background-color: var(--secondary-color);
}

#single .page-content a {
Expand Down

0 comments on commit f0d7967

Please sign in to comment.