This commit is contained in:
Morgan 2023-11-07 08:02:06 +09:00
parent 337ce62d6e
commit 84134b79c3
12 changed files with 30 additions and 97 deletions

View File

@ -1,6 +1,6 @@
baseURL: "http://blog.morgan.kr"
title: Morgan's Blog
theme: "mytheme"
theme: "oldtheme"
buildDrafts: false
buildFuture: false
@ -46,6 +46,8 @@ params:
tocopen: false
homeInfoParams:
Title: Hi, I'm Morgan.
Content: Student Developer
socialIcons:
- name: github
url: "https://github.com/morgan9e"

View File

@ -1,12 +1,13 @@
.first-entry {
scroll-snap-align: start;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 320px;
height: calc(100vh - var(--header-height) * 2 - var(--gap) * 2);
margin: 0 0 var(--header-height) calc(var(--gap) * 2);
height: calc(100vh - var(--header-height) * 2 - var(--gap) * 1);
margin: 0 0 calc(var(--header-height) + var(--gap) * 3) 0;
border-bottom: solid 1px #EFEFEF;
}
.first-entry .entry-header {
@ -17,20 +18,32 @@
}
.first-entry .entry-header h1 {
font-size: 24px;
font-size: 28px;
line-height: 1.3;
}
.first-entry .entry-content {
margin: 14px 0;
margin: 24px 0;
font-size: 16px;
-webkit-line-clamp: 3;
}
.first-entry .entry-footer {
position: absolute;
width: 80%;
padding: 4px 0;
margin: 0 auto;
border-radius: 32px;
display: flex;
justify-content: center;
border-top: solid 1px #DDD;
bottom: 0;
font-size: 14px;
}
.posts-entry-div {
}
.home-info .entry-content {
-webkit-line-clamp: unset;
}
@ -54,6 +67,7 @@
}
.entry-header h2 {
font-weight: 450;
font-size: 18px;
line-height: 1.3;
}

View File

@ -3,7 +3,7 @@
--content-gap: 20px;
--nav-width: 800px;
--main-width: 800px;
--header-height: 60px;
--header-height: 0px;
--footer-height: 60px;
--radius: 8px;
--theme: white;
@ -30,7 +30,7 @@
}
.list {
background: var(--code-bg);
background: var(--theme);
}
.dark.list {

View File

@ -1,12 +0,0 @@
<script type="text/javascript" src="https://latest.cactus.chat/cactus.js"></script>
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
<div id="comment-section"></div>
<script>
initComments({
node: document.getElementById("comment-section"),
defaultHomeserverUrl: "https://matrix.cactus.chat:8448",
serverName: "cactus.chat",
siteName: "morgan.kr",
commentSectionId: "{{ index .Params 0 }}"
})
</script>

View File

@ -1,8 +0,0 @@
{{ if .Get "summary" }}
{{ else }}
{{ warnf "missing value for param 'summary': %s" .Position }}
{{ end }}
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
{{ .Inner | markdownify }}
</details></p>

View File

@ -1,31 +0,0 @@
<figure{{ if or (.Get "class") (eq (.Get "align") "center") }} class="
{{- if eq (.Get "align") "center" }}align-center {{ end }}
{{- with .Get "class" }}{{ . }}{{- end }}"
{{- end -}}>
{{- if .Get "link" -}}
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
{{- end }}
<img loading="lazy" src="{{ .Get "src" }}{{- if eq (.Get "align") "center" }}#center{{- end }}"
{{- if or (.Get "alt") (.Get "caption") }}
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
{{- end -}}
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
/> <!-- Closing img tag -->
{{- if .Get "link" }}</a>{{ end -}}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
<figcaption>
{{ with (.Get "title") -}}
{{ . }}
{{- end -}}
{{- if or (.Get "caption") (.Get "attr") -}}<p>
{{- .Get "caption" | markdownify -}}
{{- with .Get "attrlink" }}
<a href="{{ . }}">
{{- end -}}
{{- .Get "attr" | markdownify -}}
{{- if .Get "attrlink" }}</a>{{ end }}</p>
{{- end }}
</figcaption>
{{- end }}
</figure>

View File

@ -1,5 +0,0 @@
{{- $Img := (.Get "url") }}
{{- $height := (.Get "height") }}
{{- $alt := (.Get "alt") }}
<img class="in-text" height="{{ $height | default `15` }}" src="{{$Img}}" alt="{{$alt}}">

View File

@ -1,15 +0,0 @@
{{ $.Scratch.Set "md" false }}
{{ if .IsNamedParams }}
{{ $.Scratch.Set "md" (.Get "md") }}
{{ else }}
{{ $.Scratch.Set "md" (.Get 0) }}
{{ end }}
<div dir="ltr">
{{ if eq ($.Scratch.Get "md") false }}
{{ .Inner }}
{{ else }}
{{ .Inner | markdownify }}
{{ end }}
</div>

View File

@ -1,2 +0,0 @@
<!-- raw html -->
{{- .Inner -}}

View File

@ -1,15 +0,0 @@
{{ $.Scratch.Set "md" false }}
{{ if .IsNamedParams }}
{{ $.Scratch.Set "md" (.Get "md") }}
{{ else }}
{{ $.Scratch.Set "md" (.Get 0) }}
{{ end }}
<div dir="rtl">
{{ if eq ($.Scratch.Get "md") false }}
{{ .Inner }}
{{ else }}
{{ .Inner | markdownify }}
{{ end }}
</div>

View File

@ -179,6 +179,9 @@
{{- partial "extend_head.html" . -}}
{{- /* Misc */}}
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
{{- template "_internal/google_analytics.html" . }}

View File

@ -1,4 +1,5 @@
<header class="header">
{{- if false }}
<nav class="nav{{- if .IsHome }} nav-home{{- else if (not .IsPage) }} nav-nonpost{{- else if .IsPage }} nav-post{{- end }}">
<div class="logo">
{{- $label_text := (site.Params.label.text | default site.Title) }}
@ -86,6 +87,7 @@
{{- end }}
</ul>
</nav>
{{- end }}
</header>
{{- /* theme-toggle is enabled */}}
@ -145,4 +147,4 @@
}
</script>
{{- end }}
{{- end }}