This commit is contained in:
gurusabarish
2022-12-14 00:10:43 +05:30
parent 8f90faf8dc
commit f0d7967d33
4 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -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") {
@@ -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">
@@ -166,8 +166,8 @@
</svg>
</button>
</div>
{{ end }}
</li>
{{ end }}
</ul>
+1 -1
View File
@@ -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"
+1
View File
@@ -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);
+1
View File
@@ -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 {