Fix
This commit is contained in:
parent
337ce62d6e
commit
84134b79c3
|
@ -1,6 +1,6 @@
|
||||||
baseURL: "http://blog.morgan.kr"
|
baseURL: "http://blog.morgan.kr"
|
||||||
title: Morgan's Blog
|
title: Morgan's Blog
|
||||||
theme: "mytheme"
|
theme: "oldtheme"
|
||||||
|
|
||||||
buildDrafts: false
|
buildDrafts: false
|
||||||
buildFuture: false
|
buildFuture: false
|
||||||
|
@ -46,6 +46,8 @@ params:
|
||||||
tocopen: false
|
tocopen: false
|
||||||
homeInfoParams:
|
homeInfoParams:
|
||||||
Title: Hi, I'm Morgan.
|
Title: Hi, I'm Morgan.
|
||||||
|
Content: Student Developer
|
||||||
|
|
||||||
socialIcons:
|
socialIcons:
|
||||||
- name: github
|
- name: github
|
||||||
url: "https://github.com/morgan9e"
|
url: "https://github.com/morgan9e"
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
.first-entry {
|
.first-entry {
|
||||||
scroll-snap-align: start;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
min-height: 320px;
|
min-height: 320px;
|
||||||
height: calc(100vh - var(--header-height) * 2 - var(--gap) * 2);
|
height: calc(100vh - var(--header-height) * 2 - var(--gap) * 1);
|
||||||
margin: 0 0 var(--header-height) calc(var(--gap) * 2);
|
margin: 0 0 calc(var(--header-height) + var(--gap) * 3) 0;
|
||||||
|
border-bottom: solid 1px #EFEFEF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.first-entry .entry-header {
|
.first-entry .entry-header {
|
||||||
|
@ -17,20 +18,32 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.first-entry .entry-header h1 {
|
.first-entry .entry-header h1 {
|
||||||
font-size: 24px;
|
font-size: 28px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.first-entry .entry-content {
|
.first-entry .entry-content {
|
||||||
margin: 14px 0;
|
margin: 24px 0;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
-webkit-line-clamp: 3;
|
-webkit-line-clamp: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.first-entry .entry-footer {
|
.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;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.posts-entry-div {
|
||||||
|
}
|
||||||
|
|
||||||
.home-info .entry-content {
|
.home-info .entry-content {
|
||||||
-webkit-line-clamp: unset;
|
-webkit-line-clamp: unset;
|
||||||
}
|
}
|
||||||
|
@ -54,6 +67,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-header h2 {
|
.entry-header h2 {
|
||||||
|
font-weight: 450;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
--content-gap: 20px;
|
--content-gap: 20px;
|
||||||
--nav-width: 800px;
|
--nav-width: 800px;
|
||||||
--main-width: 800px;
|
--main-width: 800px;
|
||||||
--header-height: 60px;
|
--header-height: 0px;
|
||||||
--footer-height: 60px;
|
--footer-height: 60px;
|
||||||
--radius: 8px;
|
--radius: 8px;
|
||||||
--theme: white;
|
--theme: white;
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
background: var(--code-bg);
|
background: var(--theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark.list {
|
.dark.list {
|
||||||
|
|
|
@ -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>
|
|
|
@ -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>
|
|
|
@ -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>
|
|
|
@ -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}}">
|
|
|
@ -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>
|
|
|
@ -1,2 +0,0 @@
|
||||||
<!-- raw html -->
|
|
||||||
{{- .Inner -}}
|
|
|
@ -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>
|
|
|
@ -179,6 +179,9 @@
|
||||||
|
|
||||||
{{- partial "extend_head.html" . -}}
|
{{- partial "extend_head.html" . -}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{- /* Misc */}}
|
{{- /* Misc */}}
|
||||||
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
|
||||||
{{- template "_internal/google_analytics.html" . }}
|
{{- template "_internal/google_analytics.html" . }}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<header class="header">
|
<header class="header">
|
||||||
|
{{- if false }}
|
||||||
<nav class="nav{{- if .IsHome }} nav-home{{- else if (not .IsPage) }} nav-nonpost{{- else if .IsPage }} nav-post{{- end }}">
|
<nav class="nav{{- if .IsHome }} nav-home{{- else if (not .IsPage) }} nav-nonpost{{- else if .IsPage }} nav-post{{- end }}">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
{{- $label_text := (site.Params.label.text | default site.Title) }}
|
{{- $label_text := (site.Params.label.text | default site.Title) }}
|
||||||
|
@ -86,6 +87,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
{{- end }}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{- /* theme-toggle is enabled */}}
|
{{- /* theme-toggle is enabled */}}
|
||||||
|
@ -145,4 +147,4 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue