parent
bad7f2011b
commit
52bfba3826
16
README.ko.md
16
README.ko.md
|
@ -564,9 +564,9 @@ enableBio: true
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
3. 마지막으로, 프로젝트당 한개의 md파일을 만드시면 됩니다.
|
3. 프로젝트당 한개의 md파일을 만들어 주세요.
|
||||||
|
|
||||||
`root/content/showcase/hugo/my-awesome-project.md`.
|
`root/content/showcase/hugo/my-awesome-project.md`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
|
@ -581,6 +581,18 @@ thumb: feature3/css3.png # relative path in static/images
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
|
4. 마지막으로, 메뉴를 등록해주세요.
|
||||||
|
|
||||||
|
`root/config/_default/menus.en.toml`
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[main]]
|
||||||
|
identifier = "showcase"
|
||||||
|
name = "Showcase"
|
||||||
|
url = "showcase"
|
||||||
|
weight = 7
|
||||||
|
```
|
||||||
|
|
||||||
## Multi Language
|
## Multi Language
|
||||||
|
|
||||||
Zzo theme의 기본 언어는 영어입니다. 한국어로 바꾸시려면 다음과 같이 해주세요.
|
Zzo theme의 기본 언어는 영어입니다. 한국어로 바꾸시려면 다음과 같이 해주세요.
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
a {
|
a {
|
||||||
font-family: $title-font;
|
font-family: $title-font;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
word-break:break-all;
|
word-break: break-word;
|
||||||
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('title-color');
|
color: themed('title-color');
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
a {
|
a {
|
||||||
font-family: $title-font;
|
font-family: $title-font;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
word-break:break-all;
|
word-break:break-word;
|
||||||
|
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('title-color');
|
color: themed('title-color');
|
||||||
|
@ -118,7 +118,6 @@
|
||||||
@include flexbox();
|
@include flexbox();
|
||||||
@include flex-direction(column);
|
@include flex-direction(column);
|
||||||
@include justify-content(flex-start);
|
@include justify-content(flex-start);
|
||||||
padding-left: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__text {
|
&__text {
|
||||||
|
@ -131,6 +130,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
|
||||||
@include animation('slide-in-left .2s .6s 1 ease-in both');
|
@include animation('slide-in-left .2s .6s 1 ease-in both');
|
||||||
|
|
||||||
&-wrapper {
|
&-wrapper {
|
||||||
|
@ -138,11 +138,17 @@
|
||||||
min-width: 130px;
|
min-width: 130px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
|
|
||||||
|
@include transition(all, 0.25s, ease-in);
|
||||||
@include align-self(center);
|
@include align-self(center);
|
||||||
@include on-event {
|
@include on-event {
|
||||||
@include box-shadow(1px, 1px, 3px, 0px, rgba(0, 0, 0, 0.25));
|
@include box-shadow(1px, 1px, 3px, 0px, rgba(0, 0, 0, 0.25));
|
||||||
background-color: rgba(125, 125, 125, 0.1);
|
background-color: rgba(125, 125, 125, 0.1);
|
||||||
}
|
}
|
||||||
|
@media only screen and (max-width: 769px) {
|
||||||
|
max-width: 90px;
|
||||||
|
min-width: 90px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
z-index: z('toc');
|
z-index: z('toc');
|
||||||
|
|
||||||
@include no-select;
|
@include no-select;
|
||||||
@include animation('slide-in-down-little .2s .6s 1 ease-in both');
|
@include animation('slide-in-down-little .2s .3s 1 ease-in both');
|
||||||
|
|
||||||
#TableOfContents {
|
#TableOfContents {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-top: 1rem;
|
margin: 1.25rem 0;
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
font-family: $title-font;
|
font-family: $title-font;
|
||||||
|
|
||||||
&--title {
|
&--title {
|
||||||
|
|
|
@ -49,11 +49,13 @@
|
||||||
listMainElem.classList.remove(gridBig);
|
listMainElem.classList.remove(gridBig);
|
||||||
listMainElem.classList.add(gridFull);
|
listMainElem.classList.add(gridFull);
|
||||||
listSideElem.classList.remove(gridSmall);
|
listSideElem.classList.remove(gridSmall);
|
||||||
|
listSideElem.classList.add('hide');
|
||||||
},
|
},
|
||||||
unmatch: function () {
|
unmatch: function () {
|
||||||
listMainElem.classList.remove(gridFull);
|
listMainElem.classList.remove(gridFull);
|
||||||
listMainElem.classList.add(gridBig);
|
listMainElem.classList.add(gridBig);
|
||||||
listSideElem.classList.add(gridSmall);
|
listSideElem.classList.add(gridSmall);
|
||||||
|
listSideElem.classList.remove('hide');
|
||||||
|
|
||||||
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
||||||
document.getElementsByClassName('navbar__menu')[0].classList.remove('is-active');
|
document.getElementsByClassName('navbar__menu')[0].classList.remove('is-active');
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }}
|
{{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }}
|
||||||
<script src="{{ $enquire.RelPermalink }}"></script>
|
<script src="{{ $enquire.RelPermalink }}"></script>
|
||||||
|
|
||||||
<main class="{{ if or ($.Param "enableToc") ($.Param "toc") }}{{ if $.Param "hideToc" }}main{{ else }}main-main{{ end }}{{ else }}main{{ end }}">
|
<main class="single__main {{ if or ($.Param "enableToc") ($.Param "toc") }}{{ if $.Param "hideToc" }}main{{ else }}main-main{{ end }}{{ else }}main{{ end }}">
|
||||||
{{ if eq .Site.Params.enableBreadcrumb true }}
|
{{ if eq .Site.Params.enableBreadcrumb true }}
|
||||||
{{ partial "body/breadcrumb" . }}
|
{{ partial "body/breadcrumb" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -25,33 +25,42 @@
|
||||||
{{ partial "body/photoswipe" . }}
|
{{ partial "body/photoswipe" . }}
|
||||||
|
|
||||||
<div class="hide">
|
<div class="hide">
|
||||||
{{ partial "search/site-search" . }}
|
{{ partial "search/site-search" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ if $.Param "enableSidebar" }}
|
{{ if or ($.Param "enableToc") ($.Param "toc") }}
|
||||||
<aside class="{{ if or ($.Param "enableToc") ($.Param "toc") }}main-side{{ end }}">
|
<aside class="single__side {{ if or ($.Param "enableToc") ($.Param "toc") }}main-side{{ end }}">
|
||||||
{{ partial "sidebar/sidebar-single" . }}
|
{{ partial "sidebar/sidebar-single" . }}
|
||||||
</aside>
|
</aside>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<script>
|
<script>
|
||||||
|
{{ $enableToc:= $.Param "enableToc" }}
|
||||||
|
{{ $toc:= $.Param "toc" }}
|
||||||
|
var enableToc = JSON.parse({{ $enableToc | jsonify }});
|
||||||
|
var toc = JSON.parse({{ $toc | jsonify }});
|
||||||
|
|
||||||
|
var singleMainElem = document.querySelector('.single__main');
|
||||||
|
var singleSideElem = document.querySelector('.single__side');
|
||||||
|
|
||||||
enquire.register("screen and (max-width: 769px)", {
|
enquire.register("screen and (max-width: 769px)", {
|
||||||
match: function () {
|
match: function () {
|
||||||
if (document.getElementsByTagName('main')[0]) {
|
if (enableToc || toc) {
|
||||||
document.getElementsByTagName('main')[0].className = "main";
|
singleMainElem.classList.remove('main-main');
|
||||||
}
|
singleMainElem.classList.add('main');
|
||||||
if (document.getElementsByTagName('aside')[0]) {
|
singleSideElem.classList.remove('main-side');
|
||||||
document.getElementsByTagName('aside')[0].className = "hide";
|
singleSideElem.classList.add('hide');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
unmatch: function () {
|
unmatch: function () {
|
||||||
if (document.getElementsByTagName('main')[0]) {
|
if (enableToc || toc) {
|
||||||
document.getElementsByTagName('main')[0].className = "main-main";
|
singleMainElem.classList.remove('main');
|
||||||
}
|
singleMainElem.classList.add('main-main');
|
||||||
if (document.getElementsByTagName('aside')[0]) {
|
singleSideElem.classList.remove('hide');
|
||||||
document.getElementsByTagName('aside')[0].className = "main-side";
|
singleSideElem.classList.add('main-side');
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
||||||
document.getElementsByClassName('navbar__menu')[0].classList.remove('is-active');
|
document.getElementsByClassName('navbar__menu')[0].classList.remove('is-active');
|
||||||
document.getElementsByClassName('mobile-search')[0].classList.add('hide');
|
document.getElementsByClassName('mobile-search')[0].classList.add('hide');
|
||||||
|
|
|
@ -49,11 +49,13 @@
|
||||||
listMainElem.classList.remove(gridBig);
|
listMainElem.classList.remove(gridBig);
|
||||||
listMainElem.classList.add(gridFull);
|
listMainElem.classList.add(gridFull);
|
||||||
listSideElem.classList.remove(gridSmall);
|
listSideElem.classList.remove(gridSmall);
|
||||||
|
listSideElem.classList.add('hide');
|
||||||
},
|
},
|
||||||
unmatch: function () {
|
unmatch: function () {
|
||||||
listMainElem.classList.remove(gridFull);
|
listMainElem.classList.remove(gridFull);
|
||||||
listMainElem.classList.add(gridBig);
|
listMainElem.classList.add(gridBig);
|
||||||
listSideElem.classList.add(gridSmall);
|
listSideElem.classList.add(gridSmall);
|
||||||
|
listSideElem.classList.remove('hide');
|
||||||
|
|
||||||
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
||||||
document.getElementsByClassName('navbar__menu')[0].classList.remove('is-active');
|
document.getElementsByClassName('navbar__menu')[0].classList.remove('is-active');
|
||||||
|
|
|
@ -47,11 +47,13 @@
|
||||||
listMainElem.classList.remove(gridBig);
|
listMainElem.classList.remove(gridBig);
|
||||||
listMainElem.classList.add(gridFull);
|
listMainElem.classList.add(gridFull);
|
||||||
listSideElem.classList.remove(gridSmall);
|
listSideElem.classList.remove(gridSmall);
|
||||||
|
listSideElem.classList.add('hide');
|
||||||
},
|
},
|
||||||
unmatch: function () {
|
unmatch: function () {
|
||||||
listMainElem.classList.remove(gridFull);
|
listMainElem.classList.remove(gridFull);
|
||||||
listMainElem.classList.add(gridBig);
|
listMainElem.classList.add(gridBig);
|
||||||
listSideElem.classList.add(gridSmall);
|
listSideElem.classList.add(gridSmall);
|
||||||
|
listSideElem.classList.remove('hide');
|
||||||
|
|
||||||
if (document.getElementsByClassName('navbar__burger')[0]) {
|
if (document.getElementsByClassName('navbar__burger')[0]) {
|
||||||
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
document.getElementsByClassName('navbar__burger')[0].classList.remove('is-active');
|
||||||
|
|
|
@ -21,6 +21,12 @@
|
||||||
{{ partial "showcase/show-section" . }}
|
{{ partial "showcase/show-section" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{ partial "script/showcase-script" . }}
|
{{ partial "script/showcase-script" . }}
|
||||||
|
{{ if not .Params.enableBio }}
|
||||||
|
<div class="hide">
|
||||||
|
{{ partial "search/site-search" . }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue