Merge commit '001a432'

This commit is contained in:
Fijxu 2023-08-22 23:48:32 -04:00
commit 543c78a3b2
7 changed files with 37 additions and 18 deletions

View File

@ -6,6 +6,7 @@
margin-inline-start: auto;
margin-inline-end: auto;
line-height: var(--header-height);
text-align: center;
}
.nav a {

View File

@ -1,7 +1,7 @@
.main {
position: relative;
min-height: calc(100vh - var(--header-height) - var(--footer-height));
max-width: calc(var(--main-width) + var(--gap) * 2);
max-width: calc(var(--main-width) + var(--gap) * 6);
margin: auto;
padding: var(--gap);
}

View File

@ -3,7 +3,7 @@
display: flex;
flex-direction: column;
justify-content: center;
min-height: 320px;
min-height: 160px;
margin: var(--gap) 0 calc(var(--gap) * 2) 0;
}

View File

@ -5,7 +5,7 @@
--main-width: 720px;
--header-height: 60px;
--footer-height: 60px;
--radius: 8px;
--radius: 4px;
--theme: rgb(255, 255, 255);
--entry: rgb(255, 255, 255);
--primary: rgb(30, 30, 30);
@ -15,24 +15,42 @@
--hljs-bg: rgb(28, 29, 33);
--code-bg: rgb(245, 245, 245);
--border: rgb(238, 238, 238);
--bg-tile: linear-gradient(
to bottom,
rgba(11, 11, 11, 0.8),
rgba(11, 11, 11, 0.8)
),
url(https://zzls.xyz/assets/bgs/bgtile.gif);
}
.dark {
--theme: rgb(29, 30, 32);
--entry: rgb(46, 46, 51);
--primary: rgb(218, 218, 219);
--secondary: rgb(155, 156, 157);
--theme: #111;
--entry: #2222227b;
--primary: #f0f8ff;
--secondary: #d7d7d7;
--tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197);
--hljs-bg: rgb(46, 46, 51);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
--content: #cbcbcb;
--hljs-bg: #2e2e337b;
--code-bg: #37383e7b;
--border: #3333337b;
background-image: var(--bg-tile);
}
a:link {
color: rgb(223, 131, 223);
}
a:visited {
color: rgb(223, 131, 223);
}
.list {
background: var(--code-bg);
background-image: var(--bg-tile);
}
.dark.list {
background: var(--theme);
}
background-image: var(--bg-tile);
}

View File

@ -1,8 +1,8 @@
{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}}
<!-- {{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}}
{{- $fileUrlPath := path.Join .File.Path }}
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }}&nbsp;|&nbsp;{{- end -}}
<a href="{{ .Params.editPost.URL | default site.Params.editPost.URL }}{{ if .Params.editPost.appendFilePath | default ( site.Params.editPost.appendFilePath | default false ) }}/{{ $fileUrlPath }}{{ end }}" rel="noopener noreferrer" target="_blank">
{{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
</a>
{{- end }}
{{- end }} -->

View File

@ -8,7 +8,7 @@
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
<a href="https://git.zzls.xyz/Fijxu/hugo-PaperMod" rel="noopener" target="_blank">PaperMod (Forked)</a>
</span>
</footer>
{{- end }}

View File

@ -42,7 +42,7 @@
<header class="header">
<nav class="nav">
<div class="logo">
{{- $label_text := (site.Params.label.text | default site.Title) }}
<!-- {{- $label_text := (site.Params.label.text | default site.Title) }}
{{- if site.Title }}
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ $label_text }} (Alt + H)">
{{- if site.Params.label.icon }}
@ -71,7 +71,7 @@
{{- end -}}
{{- $label_text -}}
</a>
{{- end }}
{{- end }} -->
<div class="logo-switches">
{{- if (not site.Params.disableThemeToggle) }}
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
@ -100,7 +100,7 @@
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
{{- with site.Home.AllTranslations }}
<ul class="lang-switch">
{{- if $separator }}<li>|</li>{{ end }}
{{- if $separator }}<li>Other language?:</li>{{ end }}
{{- range . -}}
{{- if ne $lang .Lang }}
<li>