This commit is contained in:
log101 2023-12-06 04:19:35 +00:00
commit ef7e0cd49a
4 changed files with 43 additions and 30 deletions

View File

@ -18,6 +18,21 @@
} }
} }
.site-main {
display: flex;
min-height: 100vh;
flex-direction: column;
align-items: start;
justify-content: space-between;
max-width: 400px;
margin: auto;
font-size: 1.5rem;
@media (max-width: 448px) {
margin-left: 24px;
}
}
#home-center { #home-center {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -51,6 +66,8 @@
} }
#home-footer { #home-footer {
width: 100%;
p { p {
color: #5C5C5C; color: #5C5C5C;
font-family: Inter; font-family: Inter;

View File

@ -1,33 +1,29 @@
{{ define "header" }}
{{ partialCached "header.html" . }}
{{ end }}
{{ define "main" }} {{ define "main" }}
<main class="site-main section-inner thin animated fadeIn faster"> <main class="site-main section-inner thin animated fadeIn faster">
<h1>{{ .Title }}</h1> <div></div>
{{- if .Content }} <div>
<div class="content"> <h1>{{ .Title }}</h1>
{{ .Content }} {{- if .Content }}
<div class="content">
{{ .Content }}
</div>
{{- end }}
{{- range .Data.Pages.GroupByDate "2006" }}
<div class="posts-group">
<div class="post-year" id="{{ .Key }}">{{ .Key }}</div>
<ul class="posts-list">
{{- range .Pages }}
<li class="post-item">
<a href="{{.Permalink}}">
<span class="post-title">{{.Title}}</span>
<span class="post-day">{{ .Date.Format .Site.Params.dateformShort }}</span>
</a>
</li>
{{- end }}
</ul>
</div>
{{- end }}
</div> </div>
{{- end }} {{ partialCached "footer.html" . }}
{{- range .Data.Pages.GroupByDate "2006" }}
<div class="posts-group">
<div class="post-year" id="{{ .Key }}">{{ .Key }}</div>
<ul class="posts-list">
{{- range .Pages }}
<li class="post-item">
<a href="{{.Permalink}}">
<span class="post-title">{{.Title}}</span>
<span class="post-day">{{ .Date.Format .Site.Params.dateformShort }}</span>
</a>
</li>
{{- end }}
</ul>
</div>
{{- end }}
</main> </main>
{{ end }} {{ end }}
{{ define "footer" }}
{{ partialCached "footer.html" . }}
{{ end }}

View File

@ -1 +1 @@
#page{height:100vh;margin:0}#spotlight{display:flex;min-height:100vh;flex-direction:column;align-items:start;justify-content:space-between;max-width:400px;margin:auto;font-size:1.5rem}@media(max-width:448px){#spotlight{margin-left:24px}}#home-center{display:flex;flex-direction:column;align-items:flex-start}#home-title{color:#202020;font-family:Inter;font-size:48px;font-style:normal;font-weight:500;line-height:normal}#home-nav{display:flex;flex-direction:column}#home-nav a{color:#252525;font-family:Inter;font-size:40px;font-style:normal;font-weight:400;line-height:150%;text-decoration-line:underline}#home-footer p{color:#5c5c5c;font-family:Inter;font-size:20px;font-style:normal;font-weight:300;line-height:normal;display:flex;gap:8px;justify-content:center}#home-footer a{color:#5c5c5c;font-family:Inter;font-size:20px;font-style:normal;font-weight:300;line-height:normal;display:flex;gap:8px;justify-content:center;text-decoration:none}#home-footer a:hover{text-decoration:underline} #page{height:100vh;margin:0}#spotlight{display:flex;min-height:100vh;flex-direction:column;align-items:start;justify-content:space-between;max-width:400px;margin:auto;font-size:1.5rem}@media(max-width:448px){#spotlight{margin-left:24px}}.site-main{display:flex;min-height:100vh;flex-direction:column;align-items:start;justify-content:space-between;max-width:400px;margin:auto;font-size:1.5rem}@media(max-width:448px){.site-main{margin-left:24px}}#home-center{display:flex;flex-direction:column;align-items:flex-start}#home-title{color:#202020;font-family:Inter;font-size:48px;font-style:normal;font-weight:500;line-height:normal}#home-nav{display:flex;flex-direction:column}#home-nav a{color:#252525;font-family:Inter;font-size:40px;font-style:normal;font-weight:400;line-height:150%;text-decoration-line:underline}#home-footer{width:100%}#home-footer p{color:#5c5c5c;font-family:Inter;font-size:20px;font-style:normal;font-weight:300;line-height:normal;display:flex;gap:8px;justify-content:center}#home-footer a{color:#5c5c5c;font-family:Inter;font-size:20px;font-style:normal;font-weight:300;line-height:normal;display:flex;gap:8px;justify-content:center;text-decoration:none}#home-footer a:hover{text-decoration:underline}

View File

@ -1 +1 @@
{"Target":"css/style.min.d983b268ba92f1132a35f16dbbdf6ef7889ec743d3cbe19d956f186382248663.css","MediaType":"text/css","Data":{"Integrity":"sha256-2YOyaLqS8RMqNfFtu99u94iex0PTy+GdlW8YY4IkhmM="}} {"Target":"css/style.min.b015a743c1f12087b41b84e4609a96c8682e7da91d1909bab57c0cd66c14e56a.css","MediaType":"text/css","Data":{"Integrity":"sha256-sBWnQ8HxIIe0G4TkYJqWyGgufakdGQm6tXwM1mwU5Wo="}}