diff --git a/assets/scss/index.scss b/assets/scss/index.scss index d3c6d46..b701dad 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -241,75 +241,6 @@ a { /* Sections */ -.table-of-contents { - position: fixed; - left: 0px; - top: 0px; - height: 100%; - display: flex; - flex-direction: row; - - .extend { - margin: auto; - padding-block: 1rem; - padding-inline: 0.4rem; - border-radius: 0rem 0.5rem 0.5rem 0rem; - background-color: black; - cursor: pointer; - } -} - -#TableOfContents { - display: none; - margin: auto; - padding-inline: 20px; - border-radius: 0rem 0.5rem 0.5rem 0rem; - background-color: black; - font-size: larger; - - ul { - counter-reset:toc1; - list-style-type:none; - padding-inline-start: 0rem; - padding-block: 0.5rem; - } - - li { - list-style-type:none; - - ul { - counter-reset:toc2; - - li { - list-style-type:none; - - ul { - counter-reset:toc3; - - li:before { - counter-increment:toc3; - content:counter(toc1) "." counter(toc2) "." counter(toc3) " "; - } - } - } - - li:before { - counter-increment:toc2; - content:counter(toc1) "." counter(toc2) " "; - } - } - } - - li:before { - counter-increment:toc1; - content:counter(toc1) ". "; - } -} - -#TableOfContents.show { - display: block; -} - #content { flex-grow: 1; display: flex; @@ -317,8 +248,7 @@ a { } .title h1 { - font-size: xxx-large; - padding-block-end: 3rem; + font-size: xx-large; } .content { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6a1c401..087d2e4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,12 +14,6 @@ {{ end }} - {{ if gt (.TableOfContents | findRE `
  • ` | len) 4}} -
    - {{ .TableOfContents }} -
    -
    - {{ end }} {{ .Content }} {{ end }} \ No newline at end of file diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 99db806..9151467 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,8 +5,28 @@ - {{ template "_internal/opengraph.html" . }} {{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }} + {{ block "opengraph" . }} + + {{ with .Site.LanguageCode }} + + {{ end }} + + + + {{ if .Params.image }} + + {{ else }} + + {{ end }} + {{ if .Params.summary }} + + {{ else if .Content }} + + {{ else }} + + {{ end }} + {{ end }} {{ with .Site.Params.favIcon }} {{ if .ico }} @@ -27,7 +47,6 @@ {{ end }} - \ No newline at end of file diff --git a/static/js/index.js b/static/js/index.js deleted file mode 100644 index 3927ec2..0000000 --- a/static/js/index.js +++ /dev/null @@ -1,7 +0,0 @@ -function toggleTableOfContent(e) { - const toc = document.getElementById('TableOfContents'); - toc.classList.toggle("show"); - const extend = toc.parentElement.getElementsByClassName("extend")[0]; - extend.children[0].classList.toggle("icon-angle-right"); - extend.children[0].classList.toggle("icon-angle-left"); -} \ No newline at end of file