diff options
author | it-gro <13005925+it-gro@users.noreply.github.com> | 2021-08-31 11:01:25 +0300 |
---|---|---|
committer | it-gro <13005925+it-gro@users.noreply.github.com> | 2021-08-31 11:01:25 +0300 |
commit | ebd18c41eba1a06a4546374b0ae0ea83520cafcb (patch) | |
tree | 4ed2c6591587ed89e255f70cb0c6fe11d6420624 | |
parent | 0937b1dfec2eea5527e82673680a31a5111827f5 (diff) |
wip
-rw-r--r-- | layouts/_default/taxonomy.html | 7 | ||||
-rw-r--r-- | layouts/partials/head.stylesheets.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/highlightfile.html | 2 | ||||
-rw-r--r-- | static/css/w3css-basic.css | 10 |
4 files changed, 16 insertions, 5 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 90660d1..cef1330 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -19,8 +19,13 @@ {{- if or $.Site.Params.debug (findRE `\bhtml-comment\b` $.Site.Params.traceFlags) }} {{ `<!-- .Paginate .Data.Pages -->` | safeHTML }} {{- end}} + + {{- $pages := .Data.Pages }} + {{- $sorted := $pages.ByParam "Title" }} + {{- $paginator := .Paginate $sorted }} {{/* $paginator := .Paginate (where .Data.Pages `Type` `blog`) */}} - {{- $paginator := .Paginate .Data.Pages }} + {{/*- $paginator := .Paginate .Data.Pages */}} + {{ partial `main.paginator.bar.html` . }} {{- if or $.Site.Params.debug (findRE `\bhtml-comment\b` $.Site.Params.traceFlags) }} {{ `<!-- back in _default/taxonomy.html -->` | safeHTML }} diff --git a/layouts/partials/head.stylesheets.html b/layouts/partials/head.stylesheets.html index 5448eed..4f5e0b0 100644 --- a/layouts/partials/head.stylesheets.html +++ b/layouts/partials/head.stylesheets.html @@ -21,7 +21,7 @@ <!-- <link rel="stylesheet" href='{{ relURL `css/syntax.min.css` }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}' /> --> <link href="{{ .Site.BaseURL }}{{- with .Site.Params.syntaxStyle}}/css/syntax/syntax.{{.}}.css{{else}}/css/syntax.css{{end}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet"> {{/* Highlight */}} <link rel="stylesheet" href='{{ relURL `css/w3css-basic.css` }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}' /> -<link rel="stylesheet" href='{{ relURL `css/res-gallery.min.css` }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}' /> +<link rel="stylesheet" href='{{ relURL `css/res-gallery.css ` }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}' /> <link rel="stylesheet" href='{{ relURL `css/custom.css` }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}' /> {{- range .Site.Params.custom_css }} diff --git a/layouts/shortcodes/highlightfile.html b/layouts/shortcodes/highlightfile.html index d66291a..7520860 100644 --- a/layouts/shortcodes/highlightfile.html +++ b/layouts/shortcodes/highlightfile.html @@ -4,6 +4,8 @@ File should be located either in the same directory or full path should be speci --> {{- $src := (.Get "file") -}} +{{/* {{- $lang := .Get "language" | default ("python") }} */}} + {{- $lang := .Get "language" | default ("python") }} {{- $opt := .Get "opt" | default ("linenos=table") }} diff --git a/static/css/w3css-basic.css b/static/css/w3css-basic.css index f959603..cda1236 100644 --- a/static/css/w3css-basic.css +++ b/static/css/w3css-basic.css @@ -77,9 +77,13 @@ kbd { /* -------------------------------------------------- */ /* TableOfContents */ -/* #TableOfContents>ul{padding:0} */ -#TableOfContents>ul>li{list-style-type:none} -#TableOfContents>ul>li>ul>li{list-style-type:disc} +#TableOfContents * {padding-left: 5px;} +#TableOfContents>ul>li{list-style-type: none;} +#TableOfContents>ul>li>ul>li{list-style-type: square;} +#TableOfContents>ul>li>ul>li>ul>li{list-style-type: disc;} +#TableOfContents>ul>li>ul>li>ul>li>ul>li{list-style-type: circle;} +#TableOfContents>ul * li{padding-left: 10px;} + /* -------------------------------------------------- */ /* Tables */ |