mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 20:13:31 +08:00
Merge remote-tracking branch 'upstream/master' into fix-table-wrap
This commit is contained in:
commit
bbcad27e09
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
[Example Site](https://theme-stack.jimmycai.com/)
|
[Example Site](https://demo.stack.jimmycai.com/)
|
||||||
|
|
||||||
[](https://app.netlify.com/sites/hugo-theme-stack/deploys)
|
[](https://app.netlify.com/sites/hugo-theme-stack/deploys)
|
||||||
|
|
||||||
|
@ -10,7 +10,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Other */
|
/* Other */
|
||||||
.chroma .x {}
|
.chroma .x {
|
||||||
|
}
|
||||||
|
|
||||||
/* Error */
|
/* Error */
|
||||||
.chroma .err {
|
.chroma .err {
|
||||||
@ -40,367 +41,369 @@
|
|||||||
.chroma .hl {
|
.chroma .hl {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #ffffcc
|
background-color: #ffffcc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LineNumbersTable */
|
/* LineNumbersTable */
|
||||||
.chroma .lnt {
|
.chroma .lnt {
|
||||||
margin-right: 0.4em;
|
margin-right: 0.4em;
|
||||||
padding: 0 0.4em 0 0.4em;
|
padding: 0 0.4em 0 0.4em;
|
||||||
color: #7f7f7f
|
color: #7f7f7f;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LineNumbers */
|
/* LineNumbers */
|
||||||
.chroma .ln {
|
.chroma .ln {
|
||||||
margin-right: 0.4em;
|
margin-right: 0.4em;
|
||||||
padding: 0 0.4em 0 0.4em;
|
padding: 0 0.4em 0 0.4em;
|
||||||
color: #7f7f7f
|
color: #7f7f7f;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Keyword */
|
/* Keyword */
|
||||||
.chroma .k {
|
.chroma .k {
|
||||||
color: #00a8c8
|
color: #00a8c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* KeywordConstant */
|
/* KeywordConstant */
|
||||||
.chroma .kc {
|
.chroma .kc {
|
||||||
color: #00a8c8
|
color: #00a8c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* KeywordDeclaration */
|
/* KeywordDeclaration */
|
||||||
.chroma .kd {
|
.chroma .kd {
|
||||||
color: #00a8c8
|
color: #00a8c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* KeywordNamespace */
|
/* KeywordNamespace */
|
||||||
.chroma .kn {
|
.chroma .kn {
|
||||||
color: #f92672
|
color: #f92672;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* KeywordPseudo */
|
/* KeywordPseudo */
|
||||||
.chroma .kp {
|
.chroma .kp {
|
||||||
color: #00a8c8
|
color: #00a8c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* KeywordReserved */
|
/* KeywordReserved */
|
||||||
.chroma .kr {
|
.chroma .kr {
|
||||||
color: #00a8c8
|
color: #00a8c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* KeywordType */
|
/* KeywordType */
|
||||||
.chroma .kt {
|
.chroma .kt {
|
||||||
color: #00a8c8
|
color: #00a8c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Name */
|
/* Name */
|
||||||
.chroma .n {
|
.chroma .n {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameAttribute */
|
/* NameAttribute */
|
||||||
.chroma .na {
|
.chroma .na {
|
||||||
color: #75af00
|
color: #75af00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameBuiltin */
|
/* NameBuiltin */
|
||||||
.chroma .nb {
|
.chroma .nb {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameBuiltinPseudo */
|
/* NameBuiltinPseudo */
|
||||||
.chroma .bp {
|
.chroma .bp {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameClass */
|
/* NameClass */
|
||||||
.chroma .nc {
|
.chroma .nc {
|
||||||
color: #75af00
|
color: #75af00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameConstant */
|
/* NameConstant */
|
||||||
.chroma .no {
|
.chroma .no {
|
||||||
color: #00a8c8
|
color: #00a8c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameDecorator */
|
/* NameDecorator */
|
||||||
.chroma .nd {
|
.chroma .nd {
|
||||||
color: #75af00
|
color: #75af00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameEntity */
|
/* NameEntity */
|
||||||
.chroma .ni {
|
.chroma .ni {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameException */
|
/* NameException */
|
||||||
.chroma .ne {
|
.chroma .ne {
|
||||||
color: #75af00
|
color: #75af00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameFunction */
|
/* NameFunction */
|
||||||
.chroma .nf {
|
.chroma .nf {
|
||||||
color: #75af00
|
color: #75af00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameFunctionMagic */
|
/* NameFunctionMagic */
|
||||||
.chroma .fm {
|
.chroma .fm {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameLabel */
|
/* NameLabel */
|
||||||
.chroma .nl {
|
.chroma .nl {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameNamespace */
|
/* NameNamespace */
|
||||||
.chroma .nn {
|
.chroma .nn {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameOther */
|
/* NameOther */
|
||||||
.chroma .nx {
|
.chroma .nx {
|
||||||
color: #75af00
|
color: #75af00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameProperty */
|
/* NameProperty */
|
||||||
.chroma .py {
|
.chroma .py {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameTag */
|
/* NameTag */
|
||||||
.chroma .nt {
|
.chroma .nt {
|
||||||
color: #f92672
|
color: #f92672;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameVariable */
|
/* NameVariable */
|
||||||
.chroma .nv {
|
.chroma .nv {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameVariableClass */
|
/* NameVariableClass */
|
||||||
.chroma .vc {
|
.chroma .vc {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameVariableGlobal */
|
/* NameVariableGlobal */
|
||||||
.chroma .vg {
|
.chroma .vg {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameVariableInstance */
|
/* NameVariableInstance */
|
||||||
.chroma .vi {
|
.chroma .vi {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NameVariableMagic */
|
/* NameVariableMagic */
|
||||||
.chroma .vm {
|
.chroma .vm {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Literal */
|
/* Literal */
|
||||||
.chroma .l {
|
.chroma .l {
|
||||||
color: #ae81ff
|
color: #ae81ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralDate */
|
/* LiteralDate */
|
||||||
.chroma .ld {
|
.chroma .ld {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralString */
|
/* LiteralString */
|
||||||
.chroma .s {
|
.chroma .s {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringAffix */
|
/* LiteralStringAffix */
|
||||||
.chroma .sa {
|
.chroma .sa {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringBacktick */
|
/* LiteralStringBacktick */
|
||||||
.chroma .sb {
|
.chroma .sb {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringChar */
|
/* LiteralStringChar */
|
||||||
.chroma .sc {
|
.chroma .sc {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringDelimiter */
|
/* LiteralStringDelimiter */
|
||||||
.chroma .dl {
|
.chroma .dl {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringDoc */
|
/* LiteralStringDoc */
|
||||||
.chroma .sd {
|
.chroma .sd {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringDouble */
|
/* LiteralStringDouble */
|
||||||
.chroma .s2 {
|
.chroma .s2 {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringEscape */
|
/* LiteralStringEscape */
|
||||||
.chroma .se {
|
.chroma .se {
|
||||||
color: #8045ff
|
color: #8045ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringHeredoc */
|
/* LiteralStringHeredoc */
|
||||||
.chroma .sh {
|
.chroma .sh {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringInterpol */
|
/* LiteralStringInterpol */
|
||||||
.chroma .si {
|
.chroma .si {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringOther */
|
/* LiteralStringOther */
|
||||||
.chroma .sx {
|
.chroma .sx {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringRegex */
|
/* LiteralStringRegex */
|
||||||
.chroma .sr {
|
.chroma .sr {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringSingle */
|
/* LiteralStringSingle */
|
||||||
.chroma .s1 {
|
.chroma .s1 {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralStringSymbol */
|
/* LiteralStringSymbol */
|
||||||
.chroma .ss {
|
.chroma .ss {
|
||||||
color: #d88200
|
color: #d88200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralNumber */
|
/* LiteralNumber */
|
||||||
.chroma .m {
|
.chroma .m {
|
||||||
color: #ae81ff
|
color: #ae81ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralNumberBin */
|
/* LiteralNumberBin */
|
||||||
.chroma .mb {
|
.chroma .mb {
|
||||||
color: #ae81ff
|
color: #ae81ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralNumberFloat */
|
/* LiteralNumberFloat */
|
||||||
.chroma .mf {
|
.chroma .mf {
|
||||||
color: #ae81ff
|
color: #ae81ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralNumberHex */
|
/* LiteralNumberHex */
|
||||||
.chroma .mh {
|
.chroma .mh {
|
||||||
color: #ae81ff
|
color: #ae81ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralNumberInteger */
|
/* LiteralNumberInteger */
|
||||||
.chroma .mi {
|
.chroma .mi {
|
||||||
color: #ae81ff
|
color: #ae81ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralNumberIntegerLong */
|
/* LiteralNumberIntegerLong */
|
||||||
.chroma .il {
|
.chroma .il {
|
||||||
color: #ae81ff
|
color: #ae81ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* LiteralNumberOct */
|
/* LiteralNumberOct */
|
||||||
.chroma .mo {
|
.chroma .mo {
|
||||||
color: #ae81ff
|
color: #ae81ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Operator */
|
/* Operator */
|
||||||
.chroma .o {
|
.chroma .o {
|
||||||
color: #f92672
|
color: #f92672;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* OperatorWord */
|
/* OperatorWord */
|
||||||
.chroma .ow {
|
.chroma .ow {
|
||||||
color: #f92672
|
color: #f92672;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Punctuation */
|
/* Punctuation */
|
||||||
.chroma .p {
|
.chroma .p {
|
||||||
color: #111111
|
color: #111111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Comment */
|
/* Comment */
|
||||||
.chroma .c {
|
.chroma .c {
|
||||||
color: #75715e
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CommentHashbang */
|
/* CommentHashbang */
|
||||||
.chroma .ch {
|
.chroma .ch {
|
||||||
color: #75715e
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CommentMultiline */
|
/* CommentMultiline */
|
||||||
.chroma .cm {
|
.chroma .cm {
|
||||||
color: #75715e
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CommentSingle */
|
/* CommentSingle */
|
||||||
.chroma .c1 {
|
.chroma .c1 {
|
||||||
color: #75715e
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CommentSpecial */
|
/* CommentSpecial */
|
||||||
.chroma .cs {
|
.chroma .cs {
|
||||||
color: #75715e
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CommentPreproc */
|
/* CommentPreproc */
|
||||||
.chroma .cp {
|
.chroma .cp {
|
||||||
color: #75715e
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CommentPreprocFile */
|
/* CommentPreprocFile */
|
||||||
.chroma .cpf {
|
.chroma .cpf {
|
||||||
color: #75715e
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generic */
|
/* Generic */
|
||||||
.chroma .g {}
|
.chroma .g {
|
||||||
|
}
|
||||||
/* GenericDeleted */
|
/* GenericDeleted */
|
||||||
.chroma .gd {}
|
.chroma .gd {
|
||||||
|
color: #f92672;
|
||||||
|
}
|
||||||
/* GenericEmph */
|
/* GenericEmph */
|
||||||
.chroma .ge {
|
.chroma .ge {
|
||||||
font-style: italic
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GenericError */
|
/* GenericError */
|
||||||
.chroma .gr {}
|
.chroma .gr {
|
||||||
|
}
|
||||||
/* GenericHeading */
|
/* GenericHeading */
|
||||||
.chroma .gh {}
|
.chroma .gh {
|
||||||
|
}
|
||||||
/* GenericInserted */
|
/* GenericInserted */
|
||||||
.chroma .gi {}
|
.chroma .gi {
|
||||||
|
color: #7ca727;
|
||||||
|
}
|
||||||
/* GenericOutput */
|
/* GenericOutput */
|
||||||
.chroma .go {}
|
.chroma .go {
|
||||||
|
}
|
||||||
/* GenericPrompt */
|
/* GenericPrompt */
|
||||||
.chroma .gp {}
|
.chroma .gp {
|
||||||
|
}
|
||||||
/* GenericStrong */
|
/* GenericStrong */
|
||||||
.chroma .gs {
|
.chroma .gs {
|
||||||
font-weight: bold
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GenericSubheading */
|
/* GenericSubheading */
|
||||||
.chroma .gu {}
|
.chroma .gu {
|
||||||
|
color: #75715e;
|
||||||
|
}
|
||||||
/* GenericTraceback */
|
/* GenericTraceback */
|
||||||
.chroma .gt {}
|
.chroma .gt {
|
||||||
|
}
|
||||||
/* GenericUnderline */
|
/* GenericUnderline */
|
||||||
.chroma .gl {}
|
.chroma .gl {
|
||||||
|
}
|
||||||
/* TextWhitespace */
|
/* TextWhitespace */
|
||||||
.chroma .w {}
|
.chroma .w {
|
||||||
|
}
|
||||||
|
7
exampleSite/.gitignore
vendored
7
exampleSite/.gitignore
vendored
@ -22,6 +22,9 @@ _testmain.go
|
|||||||
*.exe
|
*.exe
|
||||||
*.test
|
*.test
|
||||||
|
|
||||||
/public
|
public
|
||||||
/themes
|
themes
|
||||||
|
resources
|
||||||
|
|
||||||
|
assets/jsconfig.json
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
37
exampleSite/content/page/links/index.md
Normal file
37
exampleSite/content/page/links/index.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: Links
|
||||||
|
links:
|
||||||
|
- title: GitHub
|
||||||
|
description: GitHub is the world's largest software development platform.
|
||||||
|
website: https://github.com
|
||||||
|
image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
|
||||||
|
- title: TypeScript
|
||||||
|
description: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
|
||||||
|
website: https://www.typescriptlang.org
|
||||||
|
image: ts-logo-128.jpg
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: -50
|
||||||
|
params:
|
||||||
|
icon: link
|
||||||
|
|
||||||
|
comments: false
|
||||||
|
---
|
||||||
|
|
||||||
|
To use this feature, add `links` section to frontmatter.
|
||||||
|
|
||||||
|
This page's frontmatter:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
links:
|
||||||
|
- title: GitHub
|
||||||
|
description: GitHub is the world's largest software development platform.
|
||||||
|
website: https://github.com
|
||||||
|
image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
|
||||||
|
- title: TypeScript
|
||||||
|
description: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
|
||||||
|
website: https://www.typescriptlang.org
|
||||||
|
image: ts-logo-128.jpg
|
||||||
|
```
|
||||||
|
|
||||||
|
`image` field accepts both local and external images.
|
BIN
exampleSite/content/page/links/ts-logo-128.jpg
Normal file
BIN
exampleSite/content/page/links/ts-logo-128.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
@ -113,6 +113,16 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
|
|||||||
</html>
|
</html>
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
|
|
||||||
|
#### Diff code block
|
||||||
|
|
||||||
|
```diff
|
||||||
|
[dependencies.bevy]
|
||||||
|
git = "https://github.com/bevyengine/bevy"
|
||||||
|
rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13"
|
||||||
|
- features = ["dynamic"]
|
||||||
|
+ features = ["jpeg", "dynamic"]
|
||||||
|
```
|
||||||
|
|
||||||
## List Types
|
## List Types
|
||||||
|
|
||||||
#### Ordered List
|
#### Ordered List
|
||||||
|
@ -29,6 +29,10 @@ article:
|
|||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
other: Dernière mise à jour le
|
other: Dernière mise à jour le
|
||||||
|
|
||||||
|
readingTime:
|
||||||
|
one: "{{ .Count }} minute de lecture"
|
||||||
|
other: "{{ .Count }} minutes de lecture"
|
||||||
|
|
||||||
notFound:
|
notFound:
|
||||||
title:
|
title:
|
||||||
other: Page non trouvée
|
other: Page non trouvée
|
||||||
|
30
i18n/ko.yaml
30
i18n/ko.yaml
@ -1,15 +1,42 @@
|
|||||||
toggleMenu:
|
toggleMenu:
|
||||||
other: 메뉴 여닫기
|
other: 메뉴 여닫기
|
||||||
|
|
||||||
|
darkMode:
|
||||||
|
other: 다크 모드
|
||||||
|
|
||||||
|
list:
|
||||||
|
page:
|
||||||
|
one: "{{ .Count }} 페이지"
|
||||||
|
other: "{{ .Count }} 페이지"
|
||||||
|
|
||||||
|
section:
|
||||||
|
other: 섹션
|
||||||
|
|
||||||
|
subsection:
|
||||||
|
one: 서브섹션
|
||||||
|
other: 서브섹션
|
||||||
|
|
||||||
article:
|
article:
|
||||||
|
back:
|
||||||
|
other: 뒤로가기
|
||||||
|
|
||||||
|
tableOfContents:
|
||||||
|
other: 목차
|
||||||
|
|
||||||
relatedContents:
|
relatedContents:
|
||||||
other: 관련 글
|
other: 관련 글
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
other: "마지막 수정: "
|
other: "마지막 수정: "
|
||||||
|
|
||||||
|
readingTime:
|
||||||
|
one: "{{ .Count }} 분 정도"
|
||||||
|
other: "{{ .Count }} 분 정도"
|
||||||
|
|
||||||
notFound:
|
notFound:
|
||||||
title:
|
title:
|
||||||
other: 찾을 수 없음
|
other: 찾을 수 없음
|
||||||
|
|
||||||
subtitle:
|
subtitle:
|
||||||
other: 페이지를 찾을 수 없습니다.
|
other: 페이지를 찾을 수 없습니다.
|
||||||
|
|
||||||
@ -19,6 +46,7 @@ widget:
|
|||||||
other: 보관함
|
other: 보관함
|
||||||
more:
|
more:
|
||||||
other: 더보기
|
other: 더보기
|
||||||
|
|
||||||
tagCloud:
|
tagCloud:
|
||||||
title:
|
title:
|
||||||
other: 태그
|
other: 태그
|
||||||
@ -26,8 +54,10 @@ widget:
|
|||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: 검색
|
other: 검색
|
||||||
|
|
||||||
placeholder:
|
placeholder:
|
||||||
other: 검색어를 입력하세요...
|
other: 검색어를 입력하세요...
|
||||||
|
|
||||||
resultTitle:
|
resultTitle:
|
||||||
other: "#PAGES_COUNT 페이지 (#TIME_SECONDS 초)"
|
other: "#PAGES_COUNT 페이지 (#TIME_SECONDS 초)"
|
||||||
|
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ partial "article/article.html" . }}
|
{{ partial "article/article.html" . }}
|
||||||
|
|
||||||
|
{{ if .Params.links }}
|
||||||
|
{{ partial "article/components/links" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "article/components/related-contents" . }}
|
{{ partial "article/components/related-contents" . }}
|
||||||
|
|
||||||
{{ if not (eq .Params.comments false) }}
|
{{ if not (eq .Params.comments false) }}
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
<img src="{{ $Permalink }}"
|
<img src="{{ $Permalink }}"
|
||||||
width="{{ $Width }}"
|
width="{{ $Width }}"
|
||||||
height="{{ $Height }}"
|
height="{{ $Height }}"
|
||||||
|
alt="{{ .Title }}"
|
||||||
loading="lazy">
|
loading="lazy">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<img src="{{ $image.permalink }}" loading="lazy" alt="Featured image of post {{ .Title }}" />
|
<img src="{{ $image.permalink }}" loading="lazy" alt="Featured image of post {{ .Title }}" />
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
width="{{ $Width }}"
|
width="{{ $Width }}"
|
||||||
height="{{ $Height }}"
|
height="{{ $Height }}"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
data-key="{{ .context.Slug }}"
|
alt="Featured image of post {{ .context.Title }}"
|
||||||
|
{{ with .context.Slug }}data-key="{{ . }}" {{ end }}
|
||||||
data-hash="{{ $imageRaw.Data.Integrity }}">
|
data-hash="{{ $imageRaw.Data.Integrity }}">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<img src="{{ $image.permalink }}" loading="lazy" data-key="{{ .context.Slug }}" data-hash="{{ $image.permalink }}"/>
|
<img src="{{ $image.permalink }}" loading="lazy" data-key="{{ .context.Slug }}" data-hash="{{ $image.permalink }}"/>
|
||||||
|
26
layouts/partials/article/components/links.html
Normal file
26
layouts/partials/article/components/links.html
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<div class="article-list--compact links">
|
||||||
|
{{ range $i, $link := .Params.links }}
|
||||||
|
<article>
|
||||||
|
<a href="{{ $link.website }}" target="_blank" rel="noopener">
|
||||||
|
<div class="article-details">
|
||||||
|
<h2 class="article-title">
|
||||||
|
{{- $link.title -}}
|
||||||
|
</h2>
|
||||||
|
<footer class="article-time">
|
||||||
|
{{ with $link.description }}
|
||||||
|
{{ . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $link.website }}
|
||||||
|
{{ end }}
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ with $link.image }}
|
||||||
|
<div class="article-image">
|
||||||
|
<img src="{{ . }}" loading="lazy">
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</a>
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
@ -1,4 +1,4 @@
|
|||||||
{{- $ThemeVersion := "3.5.0" -}}
|
{{- $ThemeVersion := "3.6.0" -}}
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<section class="copyright">
|
<section class="copyright">
|
||||||
©
|
©
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{{ $sass := resources.Get "scss/style.scss" }}
|
{{ $sass := resources.Get "scss/style.scss" }}
|
||||||
{{ $style := $sass | resources.ToCSS | minify }}
|
{{ $style := $sass | resources.ToCSS | minify | resources.Fingerprint "sha256" }}
|
||||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
Loading…
Reference in New Issue
Block a user