From edcb6808fe027f2deb49f8a815685668c19a3c9e Mon Sep 17 00:00:00 2001 From: zzossig Date: Tue, 21 Jan 2020 01:20:43 +0900 Subject: [PATCH] Bio component position param(sidebarPosition), #92 Bio component position param(sidebarPosition). Some bug fixed. --- README.ko.md | 51 ++----------- README.md | 61 +++------------ assets/sass/abstracts/_variables.scss | 4 +- assets/sass/components/_bio.scss | 2 +- assets/sass/components/_summary.scss | 8 +- assets/sass/components/_toc.scss | 2 +- assets/sass/layout/_grid.scss | 9 ++- assets/sass/layout/_sidebar.scss | 1 - assets/sass/main.scss | 2 + assets/sass/pages/_about.scss | 1 - assets/sass/pages/_list.scss | 3 +- assets/sass/pages/_showcase.scss | 27 +++++-- assets/sass/pages/_single.scss | 1 + assets/sass/themes/_dark.scss | 4 +- assets/sass/themes/_kimbie.scss | 6 +- exampleSite/config/_default/params.toml | 1 + ...s_b4f67ac5085b89b62b54c1923e5a9145.content | 2 +- layouts/_default/list.html | 52 +++++++------ layouts/_default/taxonomy.html | 56 ++++++++------ layouts/index.html | 75 ++++++++++--------- layouts/partials/script/showcase-script.html | 35 ++++++--- layouts/partials/showcase/show-pinned.html | 5 +- layouts/partials/showcase/show-section.html | 1 + layouts/partials/summary/classic.html | 15 +++- layouts/showcase/list.html | 8 +- 25 files changed, 212 insertions(+), 220 deletions(-) diff --git a/README.ko.md b/README.ko.md index f220679..285dd43 100644 --- a/README.ko.md +++ b/README.ko.md @@ -16,7 +16,6 @@ Zzo theme을 이용할 시 가장 매력적인 포인트 한가지는, 한글로 * [업데이트](#updating) * [예제 사이트 돌리기](#run-example-site) * [설정](#configuration) -* [레이아웃](#layout) * [갤러리](#gallery) * [컨택 페이지](#contact-page) * [토크 페이지](#talks-page) @@ -273,6 +272,7 @@ enableToc = true # single page table of contents, you can replace this param to hideToc = false # Hide or Show toc enableTocSwitch = true # single page table of contents visibility switch itemsPerCategory = 5 # maximum number of posts shown in the sidebar. +sidebarPosition = "right" # bio, profile component layout position # footer showPoweredBy = true # show footer text: Powered by Hugo and Zzo theme @@ -373,47 +373,6 @@ commento = false copyrightLinkText = "" ``` -## Layout - -### CSS grid for layout - -이 프로젝트의 레이아웃은 css의 grid란 걸 사용해서 잡았습니다. 혹시나 커스터마이징 하실 때 알아야 할 수도 있을 것 같아서 알려드립니다. - -### grid structure - -| left | right | -|--- |--- | -| 1 | 2 | -| 3 | 4 | -| 5 | 6 | -| 7 | 8 | - -* left, right column width ratio => 5 : 2 -* 1 => .navbar-main -* 2 => .navbar-side -* 1 + 2 => .navbar -* 3 => .header-main -* 4 => .header-side -* 3 + 4 => .header -* 5 => .main-main -* 6 => .main-side -* 5 + 6 => .main -* 7 => .footer-main -* 8 => .footer-side -* 7 + 8 => .footer - -### grid structure example applied in home page - -```html - -
-
-
-
-
- - {{ partial "pagination/pagination" . }} + {{ if $.Param "enableSidebar" }} + + {{ end }} - + -
-
-
- {{ .Content }} +
+
+
+ {{ $filteredPages := .Site.RegularPages }} + {{ range .Site.Params.notAllowedTypesInHome }} + {{ $filteredPages = (where $filteredPages "Type" "!=" (lower .)) }} + {{ end }} + {{ $paginator := .Paginate $filteredPages }} + {{ range $paginator.Pages }} + {{ .Render "summary" }} + {{ end }}
-
-
- {{ $filteredPages := .Site.RegularPages }} - {{ range .Site.Params.notAllowedTypesInHome }} - {{ $filteredPages = (where $filteredPages "Type" "!=" (lower .)) }} - {{ end }} - {{ $paginator := .Paginate $filteredPages }} - {{ range $paginator.Pages }} - {{ .Render "summary" }} - {{ end }} -
{{ partial "pagination/pagination" . }} + {{ partial "pagination/pagination" . }} + + + {{ if $.Param "enableSidebar" }} + + {{ end }}
- -{{ if $.Param "enableSidebar" }} - -{{ end }}