diff options
| author | Arun Mathai <me@arunmathaisk.in> | 2025-01-14 17:27:28 +0530 | 
|---|---|---|
| committer | Arun Mathai <me@arunmathaisk.in> | 2025-01-16 10:36:25 +0530 | 
| commit | 156f1eb9623a54843a728936b08851cdb7aa21e3 (patch) | |
| tree | 2f2b16f94cd37d93026fa5532b8f06a7ac9eda09 /layouts/_default | |
| parent | 86bb1d6cda6a59a05d24558c83b6e3c780138f96 (diff) | |
feat(copy-code): To allow user to copy contents within code block to clipboard
fix(ui): corrections told by tomfran
fix(ui): add more contrast to button.
fix(ui): loading js as deferred
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/baseof.html | 49 | 
1 files changed, 25 insertions, 24 deletions
| diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 462b2e8..52a6767 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,39 +2,39 @@  <html lang="{{ or site.Language.LanguageCode site.Language.Lang }}"    dir="{{ or site.Language.LanguageDirection `ltr` }}"> -  <head> -    {{ partial "head.html" . }} -  </head> +<head> +  {{ partial "head.html" . }} +</head> -  {{ $theme := "auto"}} +{{ $theme := "auto"}} -  {{ with .Param "theme" }} -  {{ $theme = .}} -  {{ end }} +{{ with .Param "theme" }} +{{ $theme = .}} +{{ end }} -  <body class="{{ $theme }}"> +<body class="{{ $theme }}"> -    <div class="content"> -      <header> -        {{ partial "header.html" . }} -      </header> +  <div class="content"> +    <header> +      {{ partial "header.html" . }} +    </header> -      <main class="main"> -        {{ block "main" . }}{{ end }} -      </main> -    </div> +    <main class="main"> +      {{ block "main" . }}{{ end }} +    </main> +  </div> -    <footer> -      {{ partial "footer.html" . }} -    </footer> +  <footer> +    {{ partial "footer.html" . }} +  </footer> -    {{ if .Param "math" }} -    {{ partialCached "math.html" . }} -    {{ end }} +  {{ if .Param "math" }} +  {{ partialCached "math.html" . }} +  {{ end }} -  </body> +</body> -  <script> +<script>    function isAuto() {      return document.body.classList.contains("auto"); @@ -67,4 +67,5 @@  </script> +<script defer src="{{ "js/copy-code.js" | relURL }}"></script>  </html>
\ No newline at end of file | 
