From cf1085f8952f5c349c4fbfdfb619f6f09ac9afa6 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Wed, 22 Jun 2022 02:27:20 -0700 Subject: Abridge.woff2 - 6 icon font --- config.toml | 17 +++---- sass/_variables.scss | 6 +-- sass/abridge-blue-dark.scss | 7 +-- sass/abridge-blue-light.scss | 7 +-- sass/abridge-blue-switcher.scss | 7 +-- sass/abridge-blue.scss | 7 +-- sass/abridge-blueshade-dark.scss | 7 +-- sass/abridge-blueshade-light.scss | 7 +-- sass/abridge-blueshade-switcher.scss | 7 +-- sass/abridge-blueshade.scss | 7 +-- sass/abridge-dark.scss | 7 +-- sass/abridge-light.scss | 7 +-- sass/abridge-switcher.scss | 7 +-- sass/abridge.scss | 7 +-- sass/fonts/_Abridge.scss | 25 ++++++++++ sass/include/_icons.scss | 12 +++-- sass/include/_nav.scss | 9 ++-- static/abridge-switcher.min.js | 2 +- static/abridge.min.js | 2 +- static/font/Abridge.woff2 | Bin 0 -> 788 bytes static/search.js | 2 +- static/search.min.js | 2 +- templates/base.html | 35 ++++++++------ templates/macros/macros.html | 8 ++-- templates/macros/social.html | 86 +++++++++++++++++------------------ 25 files changed, 168 insertions(+), 122 deletions(-) create mode 100644 sass/fonts/_Abridge.scss create mode 100644 static/font/Abridge.woff2 diff --git a/config.toml b/config.toml index 3d54d17..cbeb1ea 100644 --- a/config.toml +++ b/config.toml @@ -49,7 +49,7 @@ recent_items = 9 author = "Jake G" # Put Your Name here title_size_index = "s85" # size: s95, s90, s85, s80, s75, s70, false(full size) -meta_index = { position="bottom", size="s90", author=true, readtime=false, readstring="min", date=true, categories_tags=true, divider=" " } +meta_index = { position="bottom", size="s90", author=false, readtime=false, readstring="min", date=true, categories_tags=true, divider=" " } meta_post = { position="top", size="s95", author=true, readtime=false, readstring="min read", date=true, categories_tags=true, divider=" " } ## position: top, bottom, both, false(hidden) ## size: s95, s90, s85, s80, s75, s70, false(full size) ## divider: "·" "•" " " @@ -143,6 +143,14 @@ favicon180 = "apple-touch-icon.png" # apple-touch-icon.png favicon32 = "favicon-32x32.png" # favicon-32x32.png favicon16 = "favicon-16x16.png" # favicon-16x16.png +icon_search = "svgs search" # Search button in search box. +icon_adjust = "svgs svgh i-adjust" # Theme Switcher button in top menu. +icon_top = "svgs i-up" # Back to Top Button. +icon_first = "svgs i-first" # Pagination First Page. +icon_prev = "svgs i-prev" # Pagination Previous Page. +icon_next = "svgs i-next" # Pagination Next Page. +icon_last = "svgs i-last" # Pagination Last Page. + # Uncomment below line to load fontawesome, eg: #fontawesome = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.1/css/all.min.css" @@ -151,13 +159,6 @@ favicon16 = "favicon-16x16.png" # favicon-16x16.png #icon_date = "svgs fa-solid fa-calendar" # displayed in metadata on index and below title on page. #icon_info = "svgs fa-solid fa-circle-info" # displayed in metadata on index and below title on page for categories/tags #icon_author = "svgs fa-solid fa-pen-fancy" # displayed in metadata on index and below title on page. -#icon_search = "svgs fa-solid fa-magnifying-glass" # Search button in search box. -#icon_contrast = "svgs fa-a fa-solid fa-circle-half-stroke" # Theme Switcher button in top menu. -#icon_top = "svgs fa-solid fa-circle-chevron-up" # Back to Top Button. -#icon_first = "svgs fa-solid fa-angles-left" # Pagination First Page. -#icon_prev = "svgs fa-solid fa-angle-left" # Pagination Previous Page. -#icon_next = "svgs fa-solid fa-angle-right" # Pagination Next Page. -#icon_last = "svgs fa-solid fa-angles-right" # Pagination Last Page. # For externally loaded Fonts, make sure to include the FULL url including the http/https prefix #fonts = [ {url = "https://fonts.googleapis.com/css?family=Montserrat:400,700,italic|Fira+Code:400,italic"} ] diff --git a/sass/_variables.scss b/sass/_variables.scss index a5cb5d9..51b3d8c 100644 --- a/sass/_variables.scss +++ b/sass/_variables.scss @@ -87,9 +87,9 @@ $icon-twitch: true !default; $icon-youtube: true !default; $icon-researchgate: true !default; -$icon-search: false !default; -$icon-x: false !default;// x symbol -$icon-contrast: false !default;// dark/light mode +$icon-search: true !default; +$icon-x: true !default;// x symbol +$icon-contrast: false !default; $icon-ffolder: false !default; $icon-folder: false !default;// categories folder $icon-ftag: false !default; diff --git a/sass/abridge-blue-dark.scss b/sass/abridge-blue-dark.scss index 4cb45c6..7d50a02 100644 --- a/sass/abridge-blue-dark.scss +++ b/sass/abridge-blue-dark.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-dark"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-dark"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-blue-light.scss b/sass/abridge-blue-light.scss index fd9ec0a..de2c30a 100644 --- a/sass/abridge-blue-light.scss +++ b/sass/abridge-blue-light.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-light"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-light"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-blue-switcher.scss b/sass/abridge-blue-switcher.scss index 98410e0..7acbc4f 100644 --- a/sass/abridge-blue-switcher.scss +++ b/sass/abridge-blue-switcher.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-switcher"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-switcher"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-blue.scss b/sass/abridge-blue.scss index 1f8e0e5..7f599e0 100644 --- a/sass/abridge-blue.scss +++ b/sass/abridge-blue.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-blueshade-dark.scss b/sass/abridge-blueshade-dark.scss index 88b27f2..f9d470e 100644 --- a/sass/abridge-blueshade-dark.scss +++ b/sass/abridge-blueshade-dark.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-dark"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-dark"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-blueshade-light.scss b/sass/abridge-blueshade-light.scss index fac9d95..0c1e57f 100644 --- a/sass/abridge-blueshade-light.scss +++ b/sass/abridge-blueshade-light.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-light"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-light"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-blueshade-switcher.scss b/sass/abridge-blueshade-switcher.scss index 6e6ac19..4c8bd80 100644 --- a/sass/abridge-blueshade-switcher.scss +++ b/sass/abridge-blueshade-switcher.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-switcher"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-switcher"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-blueshade.scss b/sass/abridge-blueshade.scss index a96eb1a..b5b9155 100644 --- a/sass/abridge-blueshade.scss +++ b/sass/abridge-blueshade.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-dark.scss b/sass/abridge-dark.scss index 95a725f..be52227 100644 --- a/sass/abridge-dark.scss +++ b/sass/abridge-dark.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-dark"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-dark"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-light.scss b/sass/abridge-light.scss index 5853e38..4f9285f 100644 --- a/sass/abridge-light.scss +++ b/sass/abridge-light.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-light"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-light"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge-switcher.scss b/sass/abridge-switcher.scss index b1ef728..0462009 100644 --- a/sass/abridge-switcher.scss +++ b/sass/abridge-switcher.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge-switcher"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge-switcher"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/abridge.scss b/sass/abridge.scss index a20bc2b..5b7f285 100644 --- a/sass/abridge.scss +++ b/sass/abridge.scss @@ -1,9 +1,10 @@ -@import "imports"; -@import "syntax/syntax-abridge"; +@import "fonts/Abridge"; +@import "fonts/Roboto"; //@import "fonts/Arimo"; //@import "fonts/Lato"; -@import "fonts/Roboto"; //@import "fonts/FiraCode"; // Monospaced +@import "imports"; +@import "syntax/syntax-abridge"; :root { --ff: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Noto Sans", Helvetica, Arial, sans-serif; diff --git a/sass/fonts/_Abridge.scss b/sass/fonts/_Abridge.scss new file mode 100644 index 0000000..09f4637 --- /dev/null +++ b/sass/fonts/_Abridge.scss @@ -0,0 +1,25 @@ +@font-face { + font-family: 'Abridge'; + src: url('font/Abridge.woff2') format('woff2'); +} + +[class^="i-"]:before, [class*=" i-"]:before { + font-family: "Abridge"; + font-style: normal; + font-weight: normal; + font-variant: normal;// reset parent styles that can break glyph codes + text-transform: none;// reset parent styles that can break glyph codes + line-height: 1em;// fix buttons height + width: 1em;// fix buttons width + vertical-align: 1em;// fix buttons alignment + text-align: center; + display: inline-block; + //text-decoration: inherit; +} + +.i-up:before { content: '\e801'; } /* '' */ +.i-adjust:before { content: '\e803'; } /* '' */ +.i-first:before { content: '\f100'; } /* '' */ +.i-last:before { content: '\f101'; } /* '' */ +.i-prev:before { content: '\f104'; } /* '' */ +.i-next:before { content: '\f105'; } /* '' */ diff --git a/sass/include/_icons.scss b/sass/include/_icons.scss index 75584c1..bba3e30 100644 --- a/sass/include/_icons.scss +++ b/sass/include/_icons.scss @@ -48,13 +48,13 @@ python: "%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='#{map-get($p, f)}' d='M17 6c0 4-1 5-6 5-4 0-5 1-5 6-4 0-5-1-5-6 0-3 1-4.5 4-4.5h7c0-.5 0-.5-1-.5H6c0-3 0-5 6-5 5 0 5 2 5 5ZM9 3C7.5 3 7.5 5 9 5s1.5-2 0-2Z'/%3E%3Cpath fill='#{map-get($p, s)}' d='M23 12c0 3-1 4.6-4 4.5h-7v.5h6c0 4 0 6-6 6-5 0-5-2-5-6s1-5 6-5c4 0 5-1 5-6 4 0 5 1 5 6Zm-8 7c-1.5 0-1.5 2 0 2s1.5-2 0-2Z' /%3E%3C/svg%3E", researchgate: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='M16 5c0 3.5.7 5 3 5s3.7-1.3 3.3-5h-3v1.3H21c0 1.9-.7 2.7-2 2.5-1.3 0-1.8-.7-1.8-3.2 0-2.4.4-3.3 1.5-3.4 1-.2 1.7.2 2.2 1.1L22 3c-.4-1.3-1.4-2-2.9-2C17.2 1 16 2 16 5ZM8 6.2l-6 .2v.9c1 .3 2 0 2 2.2v11C4 22 3 22 2 22.2v.8h6.6v-.8C7 22 6 22 6 20.5v-5.2h2a46 46 0 0 0 4 5.7 5 5 0 0 0 5 2v-1c-3 0-5-5-7-7 6-1 6-10-2-8.8ZM6 14V7.6C14 6 13 14 8 14Z'/%3E%3C/svg%3E", rss: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16'/%3E%3Ccircle cx='5' cy='19' r='1'/%3E%3C/svg%3E", - search: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E", + search: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' stroke-linecap='round' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='9' r='7'/%3E%3Cpath d='m21 21-7-7'/%3E%3C/svg%3E", stack: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='M4 17v1a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1M8 16h8m-7.7-3.4 8 .8M8.8 9.2l7.8 1.6m-6.5-5 7.6 2.4'/%3E%3C/svg%3E", sun: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cpath d='M12 1v2m0 18v2M4.2 4.2l1.4 1.4m12.8 12.8 1.4 1.4M1 12h2m18 0h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4'/%3E%3C/svg%3E", tag: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='m20.6 13.4-7.2 7.2a2 2 0 0 1-2.8 0L2 12V2h10l8.6 8.6a2 2 0 0 1 0 2.8zM7 7h.01'/%3E%3C/svg%3E", twitch: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7'/%3E%3C/svg%3E", twitter: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='M23 3a10.9 10.9 0 0 1-3.1 1.5 4.5 4.5 0 0 0-7.9 3v1A10.7 10.7 0 0 1 3 4s-4 9 5 13a11.6 11.6 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0 0-.8A7.7 7.7 0 0 0 23 3z'/%3E%3C/svg%3E", - x: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E", + x: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='M21 3 3 21M3 3l18 18'/%3E%3C/svg%3E", youtube: "%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='#{map-get($p, s)}' stroke-width='#{map-get($p, sw)}' fill='#{map-get($p, f)}' viewBox='0 0 24 24'%3E%3Cpath d='m9.8 15 5.7-3.3-5.8-3.2V15Zm12.7-8.6a2.8 2.8 0 0 0-1.9-2C18.9 4 12 4 12 4s-6.9 0-8.6.5a2.8 2.8 0 0 0-2 2 29 29 0 0 0-.4 5.3 29 29 0 0 0 .5 5.3A2.8 2.8 0 0 0 3.4 19c1.7.5 8.6.5 8.6.5s6.9 0 8.6-.5a2.8 2.8 0 0 0 2-2 29 29 0 0 0 .4-5.3 29 29 0 0 0-.5-5.3z'/%3E%3C/svg%3E" ); $icon: map-get($icons, $icon-name); @@ -88,13 +88,13 @@ @if $icon-python {.python { background-image: icon(python, "%23fc1", 2, "%2326a") }} @if $icon-researchgate {.researchgate { background-image: icon(researchgate, "none", 2, "%230db") }} @if $icon-rss {.rss { background-image: icon(rss, "%23e94", 2, "none") }} - @if $icon-search {.search { background-image: icon(search, "%23888", 2, "none") }} + @if $icon-search {.search { background-image: icon(search, "%23888", 3, "none") }} @if $icon-stack {.stack { background-image: icon(stack, "%23e72", 2, "none") }} @if $icon-sun {.sun { background-image: icon(sun, "%23888", 2, "none") }} @if $icon-tag {.tag { background-image: icon(tag, "%23888", 2, "none") }} @if $icon-twitch {.twitch { background-image: icon(twitch, "%23a7f", 2, "none") }} @if $icon-twitter {.twitter { background-image: icon(twitter, "%232ad", 2, "none") }} - @if $icon-x {.x { background-image: icon(x, "%23f00", 2, "none") }} + @if $icon-x {.x { background-image: icon(x, "%23f00", 3, "none") }} @if $icon-youtube {.youtube { background-image: icon(youtube, "%23f00", 2, "none") }} .svg { width: 1.8rem; @@ -113,7 +113,9 @@ vertical-align: middle } .svgh:hover { - background: var(--a3); + //background: var(--a3); + //opacity: 1; + color: var(--a3); opacity: 1; } .fa-a:hover { diff --git a/sass/include/_nav.scss b/sass/include/_nav.scss index b7c21cb..38f15d6 100644 --- a/sass/include/_nav.scss +++ b/sass/include/_nav.scss @@ -20,7 +20,7 @@ header > nav > div:first-of-type {//Keep the logo from wrapping } header > nav > div:nth-child(2) {//puts logo on left and menu/search on right margin-left: auto; - padding-right: var(--s2);//add some spacing between nav divs + padding-right: var(--s1);//add some spacing between nav divs } nav > div { ul, h2 { @@ -46,23 +46,24 @@ nav { } li { display: inline-block; - margin: 0 .2rem; + margin: 0 .3rem; } } main nav { ul { display: flex; + padding-left: 0; } margin-top: var(--s2);//pagination margin li { - margin: .1rem; + margin: .2rem; } li.inp { padding-top: .1rem; } } .outp { - padding: 0 .34rem .2rem; + padding: 0 .26rem .2rem; } .off { color: var(--c4); diff --git a/static/abridge-switcher.min.js b/static/abridge-switcher.min.js index 5c054cb..2319ea3 100644 --- a/static/abridge-switcher.min.js +++ b/static/abridge-switcher.min.js @@ -1 +1 @@ -const items=document.querySelectorAll(".preStyle");function ccb(e){const t=document.createElement("button"),n=(t.className="cc ",t.type="button",t.innerHTML="Copy",t.addEventListener("click",()=>ccc(t,e)),document.createElement("div"));n.className="ccw",n.appendChild(t),e.parentNode.insertBefore(n,e),n.appendChild(e)}async function ccc(e,t){var n=t.querySelectorAll("table")["length"];let o="";if(0 tr > td:last-child");i.forEach(e=>{o+=e.innerText})}else o=t.querySelector(":last-child > code").innerText;try{"granted"==(result=await navigator.permissions.query({name:"clipboard-write"})).state||"prompt"==result.state?await navigator.clipboard.writeText(o):cce(o,t)}catch(e){cce(o,t)}finally{e.innerHTML="Copied",setTimeout(function(){e.innerHTML="Copy"},2e3)}}function cce(e,t){const n=document.createElement("textArea"),o=(n.contentEditable="true",n.readOnly="false",n.className="copyable-text-area",n.value=e,t.insertBefore(n,t.firstChild),document.createRange()),i=(o.selectNodeContents(n),window.getSelection());i.removeAllRanges(),i.addRange(o),n.setSelectionRange(0,999999),document.execCommand("copy"),t.removeChild(n)}function closeSearchNow(){const e=document.querySelector("main");e.innerHTML=window.main}function goSearchNow(){const e=document.querySelector("main");window.main||(window.main=e.innerHTML);var t=document.getElementById("suggestions"),n=t.cloneNode(!0),o=(n.id="results",document.createElement("div")),i='✖ Results For: '.concat(document.getElementById("userinput").value,"");return o.innerHTML=i,n.insertBefore(o,n.firstChild),e.innerHTML=n.outerHTML,t.innerHTML="",document.getElementById("userinput").value="",document.body.contains(document.closeSearch)&&(document.closeSearch.onsubmit=function(){closeSearchNow()}),!1}items.forEach(e=>{e.rel="stylesheet"}),document.querySelectorAll("pre").forEach(e=>ccb(e)),document.getElementById("mode").addEventListener("click",()=>{document.documentElement.classList.toggle("light"),localStorage.setItem("theme",document.documentElement.classList.contains("light")?"light":"dark")}),function(){function m(e){var t=new m.Index;return t.pipeline.add(m.trimmer,m.stopWordFilter,m.stemmer),e&&e.call(t,t),t}var a,c,e,t,d,h,f,p,g,y,v,S,x,w,b,E,I,F,D,C,k,N,L,_,n;m.version="0.9.5",((lunr=m).utils={}).warn=(n=this,function(e){n.console&&console.warn&&console.warn(e)}),m.utils.toString=function(e){return null==e?"":e.toString()},(m.EventEmitter=function(){this.events={}}).prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();if("function"!=typeof t)throw new TypeError("last argument must be a function");e.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},m.EventEmitter.prototype.removeListener=function(e,t){this.hasHandler(e)&&-1!==(t=this.events[e].indexOf(t))&&(this.events[e].splice(t,1),0==this.events[e].length&&delete this.events[e])},m.EventEmitter.prototype.emit=function(e){var t;this.hasHandler(e)&&(t=Array.prototype.slice.call(arguments,1),this.events[e].forEach(function(e){e.apply(void 0,t)},this))},m.EventEmitter.prototype.hasHandler=function(e){return e in this.events},(m.tokenizer=function(e){return arguments.length&&null!=e?Array.isArray(e)?(t=(t=e.filter(function(e){return null!=e})).map(function(e){return m.utils.toString(e).toLowerCase()}),n=[],t.forEach(function(e){e=e.split(m.tokenizer.seperator);n=n.concat(e)},this),n):e.toString().trim().toLowerCase().split(m.tokenizer.seperator):[];var t,n}).defaultSeperator=/[\s\-]+/,m.tokenizer.seperator=m.tokenizer.defaultSeperator,m.tokenizer.setSeperator=function(e){null!=e&&"object"==typeof e&&(m.tokenizer.seperator=e)},m.tokenizer.resetSeperator=function(){m.tokenizer.seperator=m.tokenizer.defaultSeperator},m.tokenizer.getSeperator=function(){return m.tokenizer.seperator},(m.Pipeline=function(){this._queue=[]}).registeredFunctions={},m.Pipeline.registerFunction=function(e,t){t in m.Pipeline.registeredFunctions&&m.utils.warn("Overwriting existing registered function: "+t),e.label=t,m.Pipeline.registeredFunctions[t]=e},m.Pipeline.getRegisteredFunction=function(e){return e in m.Pipeline.registeredFunctions!=1?null:m.Pipeline.registeredFunctions[e]},m.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||m.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},m.Pipeline.load=function(e){var n=new m.Pipeline;return e.forEach(function(e){var t=m.Pipeline.getRegisteredFunction(e);if(!t)throw new Error("Cannot load un-registered function: "+e);n.add(t)}),n},m.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){m.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},m.Pipeline.prototype.after=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e+1,0,t)},m.Pipeline.prototype.before=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e,0,t)},m.Pipeline.prototype.remove=function(e){e=this._queue.indexOf(e);-1!==e&&this._queue.splice(e,1)},m.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,o=this._queue.length,i=0;iu[o]&&o++:(t.add(s[n]),n++,o++);return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){for(var t,e=this.length>=e.length?(t=this,e):(t=e,this),n=t.clone(),o=0,i=e.toArray();o",a=n.querySelector("a"),t=n.querySelector("span:first-child"),d=n.querySelector("span:nth-child(2)"),a.href=e.ref,t.textContent=e.doc.title,d.innerHTML=function(e,t){var n=t.map(function(e){return elasticlunr.stemmer(e.toLowerCase())}),o=!1,i=0,r=[],s=e.toLowerCase().split(". ");for(p in s){var u,l=s[p].split(/[\s\n]/),a=8;for(u in l){if(0<(x=l[u]).length){for(var c in n)elasticlunr.stemmer(x).startsWith(n[c])&&(a=40,o=!0);r.push([x,a,i]),a=2}i=i+x.length+1}i+=1}if(0===r.length)return void 0!==e.length&&300m&&(m=d[p],g=p);for(var y=[],v=r[g][2],p=g;p"),v=x[2]+x[0].length;40!==x[1]&&12<=x[0].length&&!/^[\x00-\xff]+$/.test(x[0])?(S=substringByByte(e.substring(x[2],v),12),y.push(S)):y.push(e.substring(x[2],v)),40===x[1]&&y.push("")}return y.push("…"),y.join("")}(e.doc.body,s),suggestions.appendChild(n))});for(;i.length>r;)suggestions.removeChild(i[0])},!0),suggestions.addEventListener("click",function(){for(;suggestions.lastChild;)suggestions.removeChild(suggestions.lastChild);return!1},!0)}(); \ No newline at end of file +const items=document.querySelectorAll(".preStyle");function ccb(e){const t=document.createElement("button"),n=(t.className="cc ",t.type="button",t.innerHTML="Copy",t.addEventListener("click",()=>ccc(t,e)),document.createElement("div"));n.className="ccw",n.appendChild(t),e.parentNode.insertBefore(n,e),n.appendChild(e)}async function ccc(e,t){var n=t.querySelectorAll("table")["length"];let o="";if(0 tr > td:last-child");i.forEach(e=>{o+=e.innerText})}else o=t.querySelector(":last-child > code").innerText;try{"granted"==(result=await navigator.permissions.query({name:"clipboard-write"})).state||"prompt"==result.state?await navigator.clipboard.writeText(o):cce(o,t)}catch(e){cce(o,t)}finally{e.innerHTML="Copied",setTimeout(function(){e.innerHTML="Copy"},2e3)}}function cce(e,t){const n=document.createElement("textArea"),o=(n.contentEditable="true",n.readOnly="false",n.className="copyable-text-area",n.value=e,t.insertBefore(n,t.firstChild),document.createRange()),i=(o.selectNodeContents(n),window.getSelection());i.removeAllRanges(),i.addRange(o),n.setSelectionRange(0,999999),document.execCommand("copy"),t.removeChild(n)}function closeSearchNow(){const e=document.querySelector("main");e.innerHTML=window.main}function goSearchNow(){const e=document.querySelector("main");window.main||(window.main=e.innerHTML);var t=document.getElementById("suggestions"),n=t.cloneNode(!0),o=(n.id="results",document.createElement("div")),i=' Results For: '.concat(document.getElementById("userinput").value,"");return o.innerHTML=i,n.insertBefore(o,n.firstChild),e.innerHTML=n.outerHTML,t.innerHTML="",document.getElementById("userinput").value="",document.body.contains(document.closeSearch)&&(document.closeSearch.onsubmit=function(){closeSearchNow()}),!1}items.forEach(e=>{e.rel="stylesheet"}),document.querySelectorAll("pre").forEach(e=>ccb(e)),document.getElementById("mode").addEventListener("click",()=>{document.documentElement.classList.toggle("light"),localStorage.setItem("theme",document.documentElement.classList.contains("light")?"light":"dark")}),function(){function m(e){var t=new m.Index;return t.pipeline.add(m.trimmer,m.stopWordFilter,m.stemmer),e&&e.call(t,t),t}var a,c,e,t,d,h,f,p,g,y,v,S,x,w,b,E,I,F,D,C,k,N,L,_,n;m.version="0.9.5",((lunr=m).utils={}).warn=(n=this,function(e){n.console&&console.warn&&console.warn(e)}),m.utils.toString=function(e){return null==e?"":e.toString()},(m.EventEmitter=function(){this.events={}}).prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();if("function"!=typeof t)throw new TypeError("last argument must be a function");e.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},m.EventEmitter.prototype.removeListener=function(e,t){this.hasHandler(e)&&-1!==(t=this.events[e].indexOf(t))&&(this.events[e].splice(t,1),0==this.events[e].length&&delete this.events[e])},m.EventEmitter.prototype.emit=function(e){var t;this.hasHandler(e)&&(t=Array.prototype.slice.call(arguments,1),this.events[e].forEach(function(e){e.apply(void 0,t)},this))},m.EventEmitter.prototype.hasHandler=function(e){return e in this.events},(m.tokenizer=function(e){return arguments.length&&null!=e?Array.isArray(e)?(t=(t=e.filter(function(e){return null!=e})).map(function(e){return m.utils.toString(e).toLowerCase()}),n=[],t.forEach(function(e){e=e.split(m.tokenizer.seperator);n=n.concat(e)},this),n):e.toString().trim().toLowerCase().split(m.tokenizer.seperator):[];var t,n}).defaultSeperator=/[\s\-]+/,m.tokenizer.seperator=m.tokenizer.defaultSeperator,m.tokenizer.setSeperator=function(e){null!=e&&"object"==typeof e&&(m.tokenizer.seperator=e)},m.tokenizer.resetSeperator=function(){m.tokenizer.seperator=m.tokenizer.defaultSeperator},m.tokenizer.getSeperator=function(){return m.tokenizer.seperator},(m.Pipeline=function(){this._queue=[]}).registeredFunctions={},m.Pipeline.registerFunction=function(e,t){t in m.Pipeline.registeredFunctions&&m.utils.warn("Overwriting existing registered function: "+t),e.label=t,m.Pipeline.registeredFunctions[t]=e},m.Pipeline.getRegisteredFunction=function(e){return e in m.Pipeline.registeredFunctions!=1?null:m.Pipeline.registeredFunctions[e]},m.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||m.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},m.Pipeline.load=function(e){var n=new m.Pipeline;return e.forEach(function(e){var t=m.Pipeline.getRegisteredFunction(e);if(!t)throw new Error("Cannot load un-registered function: "+e);n.add(t)}),n},m.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){m.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},m.Pipeline.prototype.after=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e+1,0,t)},m.Pipeline.prototype.before=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e,0,t)},m.Pipeline.prototype.remove=function(e){e=this._queue.indexOf(e);-1!==e&&this._queue.splice(e,1)},m.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,o=this._queue.length,i=0;iu[o]&&o++:(t.add(s[n]),n++,o++);return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){for(var t,e=this.length>=e.length?(t=this,e):(t=e,this),n=t.clone(),o=0,i=e.toArray();o",a=n.querySelector("a"),t=n.querySelector("span:first-child"),d=n.querySelector("span:nth-child(2)"),a.href=e.ref,t.textContent=e.doc.title,d.innerHTML=function(e,t){var n=t.map(function(e){return elasticlunr.stemmer(e.toLowerCase())}),o=!1,i=0,r=[],s=e.toLowerCase().split(". ");for(p in s){var u,l=s[p].split(/[\s\n]/),a=8;for(u in l){if(0<(x=l[u]).length){for(var c in n)elasticlunr.stemmer(x).startsWith(n[c])&&(a=40,o=!0);r.push([x,a,i]),a=2}i=i+x.length+1}i+=1}if(0===r.length)return void 0!==e.length&&300m&&(m=d[p],g=p);for(var y=[],v=r[g][2],p=g;p"),v=x[2]+x[0].length;40!==x[1]&&12<=x[0].length&&!/^[\x00-\xff]+$/.test(x[0])?(S=substringByByte(e.substring(x[2],v),12),y.push(S)):y.push(e.substring(x[2],v)),40===x[1]&&y.push("")}return y.push("…"),y.join("")}(e.doc.body,s),suggestions.appendChild(n))});for(;i.length>r;)suggestions.removeChild(i[0])},!0),suggestions.addEventListener("click",function(){for(;suggestions.lastChild;)suggestions.removeChild(suggestions.lastChild);return!1},!0)}(); \ No newline at end of file diff --git a/static/abridge.min.js b/static/abridge.min.js index b63be28..6679690 100644 --- a/static/abridge.min.js +++ b/static/abridge.min.js @@ -1 +1 @@ -const items=document.querySelectorAll(".preStyle");function ccb(e){const t=document.createElement("button"),n=(t.className="cc ",t.type="button",t.innerHTML="Copy",t.addEventListener("click",()=>ccc(t,e)),document.createElement("div"));n.className="ccw",n.appendChild(t),e.parentNode.insertBefore(n,e),n.appendChild(e)}async function ccc(e,t){var n=t.querySelectorAll("table")["length"];let o="";if(0 tr > td:last-child");i.forEach(e=>{o+=e.innerText})}else o=t.querySelector(":last-child > code").innerText;try{"granted"==(result=await navigator.permissions.query({name:"clipboard-write"})).state||"prompt"==result.state?await navigator.clipboard.writeText(o):cce(o,t)}catch(e){cce(o,t)}finally{e.innerHTML="Copied",setTimeout(function(){e.innerHTML="Copy"},2e3)}}function cce(e,t){const n=document.createElement("textArea"),o=(n.contentEditable="true",n.readOnly="false",n.className="copyable-text-area",n.value=e,t.insertBefore(n,t.firstChild),document.createRange()),i=(o.selectNodeContents(n),window.getSelection());i.removeAllRanges(),i.addRange(o),n.setSelectionRange(0,999999),document.execCommand("copy"),t.removeChild(n)}function closeSearchNow(){const e=document.querySelector("main");e.innerHTML=window.main}function goSearchNow(){const e=document.querySelector("main");window.main||(window.main=e.innerHTML);var t=document.getElementById("suggestions"),n=t.cloneNode(!0),o=(n.id="results",document.createElement("div")),i='✖ Results For: '.concat(document.getElementById("userinput").value,"");return o.innerHTML=i,n.insertBefore(o,n.firstChild),e.innerHTML=n.outerHTML,t.innerHTML="",document.getElementById("userinput").value="",document.body.contains(document.closeSearch)&&(document.closeSearch.onsubmit=function(){closeSearchNow()}),!1}items.forEach(e=>{e.rel="stylesheet"}),document.querySelectorAll("pre").forEach(e=>ccb(e)),function(){function m(e){var t=new m.Index;return t.pipeline.add(m.trimmer,m.stopWordFilter,m.stemmer),e&&e.call(t,t),t}var a,c,e,t,d,h,f,p,g,y,v,S,x,w,b,E,I,F,D,C,N,k,_,L,n;m.version="0.9.5",((lunr=m).utils={}).warn=(n=this,function(e){n.console&&console.warn&&console.warn(e)}),m.utils.toString=function(e){return null==e?"":e.toString()},(m.EventEmitter=function(){this.events={}}).prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();if("function"!=typeof t)throw new TypeError("last argument must be a function");e.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},m.EventEmitter.prototype.removeListener=function(e,t){this.hasHandler(e)&&-1!==(t=this.events[e].indexOf(t))&&(this.events[e].splice(t,1),0==this.events[e].length&&delete this.events[e])},m.EventEmitter.prototype.emit=function(e){var t;this.hasHandler(e)&&(t=Array.prototype.slice.call(arguments,1),this.events[e].forEach(function(e){e.apply(void 0,t)},this))},m.EventEmitter.prototype.hasHandler=function(e){return e in this.events},(m.tokenizer=function(e){return arguments.length&&null!=e?Array.isArray(e)?(t=(t=e.filter(function(e){return null!=e})).map(function(e){return m.utils.toString(e).toLowerCase()}),n=[],t.forEach(function(e){e=e.split(m.tokenizer.seperator);n=n.concat(e)},this),n):e.toString().trim().toLowerCase().split(m.tokenizer.seperator):[];var t,n}).defaultSeperator=/[\s\-]+/,m.tokenizer.seperator=m.tokenizer.defaultSeperator,m.tokenizer.setSeperator=function(e){null!=e&&"object"==typeof e&&(m.tokenizer.seperator=e)},m.tokenizer.resetSeperator=function(){m.tokenizer.seperator=m.tokenizer.defaultSeperator},m.tokenizer.getSeperator=function(){return m.tokenizer.seperator},(m.Pipeline=function(){this._queue=[]}).registeredFunctions={},m.Pipeline.registerFunction=function(e,t){t in m.Pipeline.registeredFunctions&&m.utils.warn("Overwriting existing registered function: "+t),e.label=t,m.Pipeline.registeredFunctions[t]=e},m.Pipeline.getRegisteredFunction=function(e){return e in m.Pipeline.registeredFunctions!=1?null:m.Pipeline.registeredFunctions[e]},m.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||m.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},m.Pipeline.load=function(e){var n=new m.Pipeline;return e.forEach(function(e){var t=m.Pipeline.getRegisteredFunction(e);if(!t)throw new Error("Cannot load un-registered function: "+e);n.add(t)}),n},m.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){m.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},m.Pipeline.prototype.after=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e+1,0,t)},m.Pipeline.prototype.before=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e,0,t)},m.Pipeline.prototype.remove=function(e){e=this._queue.indexOf(e);-1!==e&&this._queue.splice(e,1)},m.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,o=this._queue.length,i=0;iu[o]&&o++:(t.add(s[n]),n++,o++);return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){for(var t,e=this.length>=e.length?(t=this,e):(t=e,this),n=t.clone(),o=0,i=e.toArray();o",a=n.querySelector("a"),t=n.querySelector("span:first-child"),d=n.querySelector("span:nth-child(2)"),a.href=e.ref,t.textContent=e.doc.title,d.innerHTML=function(e,t){var n=t.map(function(e){return elasticlunr.stemmer(e.toLowerCase())}),o=!1,i=0,r=[],s=e.toLowerCase().split(". ");for(p in s){var u,l=s[p].split(/[\s\n]/),a=8;for(u in l){if(0<(x=l[u]).length){for(var c in n)elasticlunr.stemmer(x).startsWith(n[c])&&(a=40,o=!0);r.push([x,a,i]),a=2}i=i+x.length+1}i+=1}if(0===r.length)return void 0!==e.length&&300m&&(m=d[p],g=p);for(var y=[],v=r[g][2],p=g;p"),v=x[2]+x[0].length;40!==x[1]&&12<=x[0].length&&!/^[\x00-\xff]+$/.test(x[0])?(S=substringByByte(e.substring(x[2],v),12),y.push(S)):y.push(e.substring(x[2],v)),40===x[1]&&y.push("")}return y.push("…"),y.join("")}(e.doc.body,s),suggestions.appendChild(n))});for(;i.length>r;)suggestions.removeChild(i[0])},!0),suggestions.addEventListener("click",function(){for(;suggestions.lastChild;)suggestions.removeChild(suggestions.lastChild);return!1},!0)}(); \ No newline at end of file +const items=document.querySelectorAll(".preStyle");function ccb(e){const t=document.createElement("button"),n=(t.className="cc ",t.type="button",t.innerHTML="Copy",t.addEventListener("click",()=>ccc(t,e)),document.createElement("div"));n.className="ccw",n.appendChild(t),e.parentNode.insertBefore(n,e),n.appendChild(e)}async function ccc(e,t){var n=t.querySelectorAll("table")["length"];let o="";if(0 tr > td:last-child");i.forEach(e=>{o+=e.innerText})}else o=t.querySelector(":last-child > code").innerText;try{"granted"==(result=await navigator.permissions.query({name:"clipboard-write"})).state||"prompt"==result.state?await navigator.clipboard.writeText(o):cce(o,t)}catch(e){cce(o,t)}finally{e.innerHTML="Copied",setTimeout(function(){e.innerHTML="Copy"},2e3)}}function cce(e,t){const n=document.createElement("textArea"),o=(n.contentEditable="true",n.readOnly="false",n.className="copyable-text-area",n.value=e,t.insertBefore(n,t.firstChild),document.createRange()),i=(o.selectNodeContents(n),window.getSelection());i.removeAllRanges(),i.addRange(o),n.setSelectionRange(0,999999),document.execCommand("copy"),t.removeChild(n)}function closeSearchNow(){const e=document.querySelector("main");e.innerHTML=window.main}function goSearchNow(){const e=document.querySelector("main");window.main||(window.main=e.innerHTML);var t=document.getElementById("suggestions"),n=t.cloneNode(!0),o=(n.id="results",document.createElement("div")),i=' Results For: '.concat(document.getElementById("userinput").value,"");return o.innerHTML=i,n.insertBefore(o,n.firstChild),e.innerHTML=n.outerHTML,t.innerHTML="",document.getElementById("userinput").value="",document.body.contains(document.closeSearch)&&(document.closeSearch.onsubmit=function(){closeSearchNow()}),!1}items.forEach(e=>{e.rel="stylesheet"}),document.querySelectorAll("pre").forEach(e=>ccb(e)),function(){function m(e){var t=new m.Index;return t.pipeline.add(m.trimmer,m.stopWordFilter,m.stemmer),e&&e.call(t,t),t}var a,c,e,t,d,h,f,p,g,y,v,S,x,w,b,E,I,F,D,C,N,k,_,L,n;m.version="0.9.5",((lunr=m).utils={}).warn=(n=this,function(e){n.console&&console.warn&&console.warn(e)}),m.utils.toString=function(e){return null==e?"":e.toString()},(m.EventEmitter=function(){this.events={}}).prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();if("function"!=typeof t)throw new TypeError("last argument must be a function");e.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},m.EventEmitter.prototype.removeListener=function(e,t){this.hasHandler(e)&&-1!==(t=this.events[e].indexOf(t))&&(this.events[e].splice(t,1),0==this.events[e].length&&delete this.events[e])},m.EventEmitter.prototype.emit=function(e){var t;this.hasHandler(e)&&(t=Array.prototype.slice.call(arguments,1),this.events[e].forEach(function(e){e.apply(void 0,t)},this))},m.EventEmitter.prototype.hasHandler=function(e){return e in this.events},(m.tokenizer=function(e){return arguments.length&&null!=e?Array.isArray(e)?(t=(t=e.filter(function(e){return null!=e})).map(function(e){return m.utils.toString(e).toLowerCase()}),n=[],t.forEach(function(e){e=e.split(m.tokenizer.seperator);n=n.concat(e)},this),n):e.toString().trim().toLowerCase().split(m.tokenizer.seperator):[];var t,n}).defaultSeperator=/[\s\-]+/,m.tokenizer.seperator=m.tokenizer.defaultSeperator,m.tokenizer.setSeperator=function(e){null!=e&&"object"==typeof e&&(m.tokenizer.seperator=e)},m.tokenizer.resetSeperator=function(){m.tokenizer.seperator=m.tokenizer.defaultSeperator},m.tokenizer.getSeperator=function(){return m.tokenizer.seperator},(m.Pipeline=function(){this._queue=[]}).registeredFunctions={},m.Pipeline.registerFunction=function(e,t){t in m.Pipeline.registeredFunctions&&m.utils.warn("Overwriting existing registered function: "+t),e.label=t,m.Pipeline.registeredFunctions[t]=e},m.Pipeline.getRegisteredFunction=function(e){return e in m.Pipeline.registeredFunctions!=1?null:m.Pipeline.registeredFunctions[e]},m.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||m.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},m.Pipeline.load=function(e){var n=new m.Pipeline;return e.forEach(function(e){var t=m.Pipeline.getRegisteredFunction(e);if(!t)throw new Error("Cannot load un-registered function: "+e);n.add(t)}),n},m.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){m.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},m.Pipeline.prototype.after=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e+1,0,t)},m.Pipeline.prototype.before=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e,0,t)},m.Pipeline.prototype.remove=function(e){e=this._queue.indexOf(e);-1!==e&&this._queue.splice(e,1)},m.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,o=this._queue.length,i=0;iu[o]&&o++:(t.add(s[n]),n++,o++);return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){for(var t,e=this.length>=e.length?(t=this,e):(t=e,this),n=t.clone(),o=0,i=e.toArray();o",a=n.querySelector("a"),t=n.querySelector("span:first-child"),d=n.querySelector("span:nth-child(2)"),a.href=e.ref,t.textContent=e.doc.title,d.innerHTML=function(e,t){var n=t.map(function(e){return elasticlunr.stemmer(e.toLowerCase())}),o=!1,i=0,r=[],s=e.toLowerCase().split(". ");for(p in s){var u,l=s[p].split(/[\s\n]/),a=8;for(u in l){if(0<(x=l[u]).length){for(var c in n)elasticlunr.stemmer(x).startsWith(n[c])&&(a=40,o=!0);r.push([x,a,i]),a=2}i=i+x.length+1}i+=1}if(0===r.length)return void 0!==e.length&&300m&&(m=d[p],g=p);for(var y=[],v=r[g][2],p=g;p"),v=x[2]+x[0].length;40!==x[1]&&12<=x[0].length&&!/^[\x00-\xff]+$/.test(x[0])?(S=substringByByte(e.substring(x[2],v),12),y.push(S)):y.push(e.substring(x[2],v)),40===x[1]&&y.push("")}return y.push("…"),y.join("")}(e.doc.body,s),suggestions.appendChild(n))});for(;i.length>r;)suggestions.removeChild(i[0])},!0),suggestions.addEventListener("click",function(){for(;suggestions.lastChild;)suggestions.removeChild(suggestions.lastChild);return!1},!0)}(); \ No newline at end of file diff --git a/static/font/Abridge.woff2 b/static/font/Abridge.woff2 new file mode 100644 index 0000000..e87c1bc Binary files /dev/null and b/static/font/Abridge.woff2 differ diff --git a/static/search.js b/static/search.js index fe4b9e4..12cfe5c 100644 --- a/static/search.js +++ b/static/search.js @@ -15,7 +15,7 @@ function goSearchNow() { var headerDiv = document.createElement("div");// create a div element - var headerContent = '✖ Results For: '.concat(document.getElementById("userinput").value, "");// header to use at top of results page + var headerContent = ' Results For: '.concat(document.getElementById("userinput").value, "");// header to use at top of results page headerDiv.innerHTML = headerContent;// document element div (headerDiv), set the inner contents to our header html (headerContent) diff --git a/static/search.min.js b/static/search.min.js index 1cd178b..0823c9d 100644 --- a/static/search.min.js +++ b/static/search.min.js @@ -1 +1 @@ -function closeSearchNow(){const e=document.querySelector("main");e.innerHTML=window.main}function goSearchNow(){const e=document.querySelector("main");window.main||(window.main=e.innerHTML);var t=document.getElementById("suggestions"),n=t.cloneNode(!0),o=(n.id="results",document.createElement("div")),i='✖ Results For: '.concat(document.getElementById("userinput").value,"");return o.innerHTML=i,n.insertBefore(o,n.firstChild),e.innerHTML=n.outerHTML,t.innerHTML="",document.getElementById("userinput").value="",document.body.contains(document.closeSearch)&&(document.closeSearch.onsubmit=function(){closeSearchNow()}),!1}!function(){function m(e){var t=new m.Index;return t.pipeline.add(m.trimmer,m.stopWordFilter,m.stemmer),e&&e.call(t,t),t}var a,c,e,t,d,h,f,p,g,y,v,S,x,w,b,I,E,F,D,k,C,_,N,P,n;m.version="0.9.5",((lunr=m).utils={}).warn=(n=this,function(e){n.console&&console.warn&&console.warn(e)}),m.utils.toString=function(e){return null==e?"":e.toString()},(m.EventEmitter=function(){this.events={}}).prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();if("function"!=typeof t)throw new TypeError("last argument must be a function");e.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},m.EventEmitter.prototype.removeListener=function(e,t){this.hasHandler(e)&&-1!==(t=this.events[e].indexOf(t))&&(this.events[e].splice(t,1),0==this.events[e].length&&delete this.events[e])},m.EventEmitter.prototype.emit=function(e){var t;this.hasHandler(e)&&(t=Array.prototype.slice.call(arguments,1),this.events[e].forEach(function(e){e.apply(void 0,t)},this))},m.EventEmitter.prototype.hasHandler=function(e){return e in this.events},(m.tokenizer=function(e){return arguments.length&&null!=e?Array.isArray(e)?(t=(t=e.filter(function(e){return null!=e})).map(function(e){return m.utils.toString(e).toLowerCase()}),n=[],t.forEach(function(e){e=e.split(m.tokenizer.seperator);n=n.concat(e)},this),n):e.toString().trim().toLowerCase().split(m.tokenizer.seperator):[];var t,n}).defaultSeperator=/[\s\-]+/,m.tokenizer.seperator=m.tokenizer.defaultSeperator,m.tokenizer.setSeperator=function(e){null!=e&&"object"==typeof e&&(m.tokenizer.seperator=e)},m.tokenizer.resetSeperator=function(){m.tokenizer.seperator=m.tokenizer.defaultSeperator},m.tokenizer.getSeperator=function(){return m.tokenizer.seperator},(m.Pipeline=function(){this._queue=[]}).registeredFunctions={},m.Pipeline.registerFunction=function(e,t){t in m.Pipeline.registeredFunctions&&m.utils.warn("Overwriting existing registered function: "+t),e.label=t,m.Pipeline.registeredFunctions[t]=e},m.Pipeline.getRegisteredFunction=function(e){return e in m.Pipeline.registeredFunctions!=1?null:m.Pipeline.registeredFunctions[e]},m.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||m.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},m.Pipeline.load=function(e){var n=new m.Pipeline;return e.forEach(function(e){var t=m.Pipeline.getRegisteredFunction(e);if(!t)throw new Error("Cannot load un-registered function: "+e);n.add(t)}),n},m.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){m.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},m.Pipeline.prototype.after=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e+1,0,t)},m.Pipeline.prototype.before=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e,0,t)},m.Pipeline.prototype.remove=function(e){e=this._queue.indexOf(e);-1!==e&&this._queue.splice(e,1)},m.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,o=this._queue.length,i=0;iu[o]&&o++:(t.add(s[n]),n++,o++);return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){for(var t,e=this.length>=e.length?(t=this,e):(t=e,this),n=t.clone(),o=0,i=e.toArray();o",a=n.querySelector("a"),t=n.querySelector("span:first-child"),d=n.querySelector("span:nth-child(2)"),a.href=e.ref,t.textContent=e.doc.title,d.innerHTML=function(e,t){var n=t.map(function(e){return elasticlunr.stemmer(e.toLowerCase())}),o=!1,i=0,r=[],s=e.toLowerCase().split(". ");for(p in s){var u,l=s[p].split(/[\s\n]/),a=8;for(u in l){if(0<(x=l[u]).length){for(var c in n)elasticlunr.stemmer(x).startsWith(n[c])&&(a=40,o=!0);r.push([x,a,i]),a=2}i=i+x.length+1}i+=1}if(0===r.length)return void 0!==e.length&&300m&&(m=d[p],g=p);for(var y=[],v=r[g][2],p=g;p"),v=x[2]+x[0].length;40!==x[1]&&12<=x[0].length&&!/^[\x00-\xff]+$/.test(x[0])?(S=substringByByte(e.substring(x[2],v),12),y.push(S)):y.push(e.substring(x[2],v)),40===x[1]&&y.push("")}return y.push("…"),y.join("")}(e.doc.body,s),suggestions.appendChild(n))});for(;i.length>r;)suggestions.removeChild(i[0])},!0),suggestions.addEventListener("click",function(){for(;suggestions.lastChild;)suggestions.removeChild(suggestions.lastChild);return!1},!0)}(); \ No newline at end of file +function closeSearchNow(){const e=document.querySelector("main");e.innerHTML=window.main}function goSearchNow(){const e=document.querySelector("main");window.main||(window.main=e.innerHTML);var t=document.getElementById("suggestions"),n=t.cloneNode(!0),o=(n.id="results",document.createElement("div")),i=' Results For: '.concat(document.getElementById("userinput").value,"");return o.innerHTML=i,n.insertBefore(o,n.firstChild),e.innerHTML=n.outerHTML,t.innerHTML="",document.getElementById("userinput").value="",document.body.contains(document.closeSearch)&&(document.closeSearch.onsubmit=function(){closeSearchNow()}),!1}!function(){function m(e){var t=new m.Index;return t.pipeline.add(m.trimmer,m.stopWordFilter,m.stemmer),e&&e.call(t,t),t}var a,c,e,t,d,h,f,p,g,y,v,S,x,w,b,I,E,F,D,k,C,_,N,P,n;m.version="0.9.5",((lunr=m).utils={}).warn=(n=this,function(e){n.console&&console.warn&&console.warn(e)}),m.utils.toString=function(e){return null==e?"":e.toString()},(m.EventEmitter=function(){this.events={}}).prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();if("function"!=typeof t)throw new TypeError("last argument must be a function");e.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},m.EventEmitter.prototype.removeListener=function(e,t){this.hasHandler(e)&&-1!==(t=this.events[e].indexOf(t))&&(this.events[e].splice(t,1),0==this.events[e].length&&delete this.events[e])},m.EventEmitter.prototype.emit=function(e){var t;this.hasHandler(e)&&(t=Array.prototype.slice.call(arguments,1),this.events[e].forEach(function(e){e.apply(void 0,t)},this))},m.EventEmitter.prototype.hasHandler=function(e){return e in this.events},(m.tokenizer=function(e){return arguments.length&&null!=e?Array.isArray(e)?(t=(t=e.filter(function(e){return null!=e})).map(function(e){return m.utils.toString(e).toLowerCase()}),n=[],t.forEach(function(e){e=e.split(m.tokenizer.seperator);n=n.concat(e)},this),n):e.toString().trim().toLowerCase().split(m.tokenizer.seperator):[];var t,n}).defaultSeperator=/[\s\-]+/,m.tokenizer.seperator=m.tokenizer.defaultSeperator,m.tokenizer.setSeperator=function(e){null!=e&&"object"==typeof e&&(m.tokenizer.seperator=e)},m.tokenizer.resetSeperator=function(){m.tokenizer.seperator=m.tokenizer.defaultSeperator},m.tokenizer.getSeperator=function(){return m.tokenizer.seperator},(m.Pipeline=function(){this._queue=[]}).registeredFunctions={},m.Pipeline.registerFunction=function(e,t){t in m.Pipeline.registeredFunctions&&m.utils.warn("Overwriting existing registered function: "+t),e.label=t,m.Pipeline.registeredFunctions[t]=e},m.Pipeline.getRegisteredFunction=function(e){return e in m.Pipeline.registeredFunctions!=1?null:m.Pipeline.registeredFunctions[e]},m.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||m.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},m.Pipeline.load=function(e){var n=new m.Pipeline;return e.forEach(function(e){var t=m.Pipeline.getRegisteredFunction(e);if(!t)throw new Error("Cannot load un-registered function: "+e);n.add(t)}),n},m.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){m.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},m.Pipeline.prototype.after=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e+1,0,t)},m.Pipeline.prototype.before=function(e,t){m.Pipeline.warnIfFunctionNotRegistered(t);e=this._queue.indexOf(e);if(-1===e)throw new Error("Cannot find existingFn");this._queue.splice(e,0,t)},m.Pipeline.prototype.remove=function(e){e=this._queue.indexOf(e);-1!==e&&this._queue.splice(e,1)},m.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,o=this._queue.length,i=0;iu[o]&&o++:(t.add(s[n]),n++,o++);return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){for(var t,e=this.length>=e.length?(t=this,e):(t=e,this),n=t.clone(),o=0,i=e.toArray();o",a=n.querySelector("a"),t=n.querySelector("span:first-child"),d=n.querySelector("span:nth-child(2)"),a.href=e.ref,t.textContent=e.doc.title,d.innerHTML=function(e,t){var n=t.map(function(e){return elasticlunr.stemmer(e.toLowerCase())}),o=!1,i=0,r=[],s=e.toLowerCase().split(". ");for(p in s){var u,l=s[p].split(/[\s\n]/),a=8;for(u in l){if(0<(x=l[u]).length){for(var c in n)elasticlunr.stemmer(x).startsWith(n[c])&&(a=40,o=!0);r.push([x,a,i]),a=2}i=i+x.length+1}i+=1}if(0===r.length)return void 0!==e.length&&300m&&(m=d[p],g=p);for(var y=[],v=r[g][2],p=g;p"),v=x[2]+x[0].length;40!==x[1]&&12<=x[0].length&&!/^[\x00-\xff]+$/.test(x[0])?(S=substringByByte(e.substring(x[2],v),12),y.push(S)):y.push(e.substring(x[2],v)),40===x[1]&&y.push("")}return y.push("…"),y.join("")}(e.doc.body,s),suggestions.appendChild(n))});for(;i.length>r;)suggestions.removeChild(i[0])},!0),suggestions.addEventListener("click",function(){for(;suggestions.lastChild;)suggestions.removeChild(suggestions.lastChild);return!1},!0)}(); \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 8c74dd6..567c455 100644 --- a/templates/base.html +++ b/templates/base.html @@ -35,22 +35,27 @@ - {%- if config.extra.logo %} - {%- if config.extra.logo.file %}{%- endif %}{%- if config.extra.logo.text %}{{ config.extra.logo.text | safe }}{%- endif %} - {%- elif config.extra.textlogo %} + {%- if config.extra.logo -%} + + {%- if config.extra.logo.file -%} + + {%- endif -%} + {%- if config.extra.logo.text -%}{{ config.extra.logo.text | safe }}{%- endif -%} + + {%- elif config.extra.textlogo -%} {{ config.extra.textlogo | safe }} - {%- elif config.title %} + {%- elif config.title -%} {{ config.title | safe }} - {%- endif %} + {%- endif -%} - {%- for i in config.extra.menu %} - {{ i.name | safe }} - {%- endfor %} - {%- if config.extra.js_theme %} - {%- if config.extra.icon_contrast %}{%- else %}☀{%- endif %} - {%- endif %} + {%- for i in config.extra.menu -%} + {{ i.name | safe }} + {%- endfor -%} + {%- if config.extra.js_theme -%} + {%- if config.extra.icon_adjust -%}{%- else -%}☀{%- endif -%} + {%- endif -%} {%- if config.build_search_index %} @@ -58,7 +63,7 @@ - {%- if config.extra.icon_search %}{%- else %}⌕{%- endif %} + {%- if config.extra.icon_search -%}{%- else -%}⌕{%- endif -%} @@ -95,9 +100,9 @@ {#- Copyright END #} - {%- for i in config.extra.menu_footer %} - {{ i.name | safe }} - {%- endfor %} + {%- for i in config.extra.menu_footer -%} + {{ i.name | safe }} + {%- endfor -%} {%- if config.extra.footer_credit | default(value=true) %} diff --git a/templates/macros/macros.html b/templates/macros/macros.html index cb654e8..96ff7db 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -127,7 +127,7 @@ {%- if paginator.previous -%} - + {%- if config.extra.icon_first -%} {%- else -%}❰ {%- endif -%} @@ -141,7 +141,7 @@ {%- endif -%} {%- if paginator.previous -%} - + {%- if config.extra.icon_prev -%} {%- else -%}❬ {%- endif -%} @@ -167,7 +167,7 @@ {%- endfor -%} {%- if paginator.next -%} - + {%- if config.extra.icon_next -%} {%- else -%}❭ {%- endif -%} @@ -181,7 +181,7 @@ {%- endif -%} {%- if paginator.next -%} - + {%- if config.extra.icon_last -%} {%- else -%}❱ {%- endif -%} diff --git a/templates/macros/social.html b/templates/macros/social.html index 2fb9ecc..2da9b7f 100644 --- a/templates/macros/social.html +++ b/templates/macros/social.html @@ -1,49 +1,49 @@ {%- macro social_links(social_config) %} -{%- set base_url = get_url(path="", lang=lang) %} - {%- if config.generate_feed %}{%- if config.extra.social.feed %} - {% endif %}{% endif %} - {%- if social_config.mail %} - {% endif %} - {%- if social_config.mastodon %} - {% endif %} - {%- if social_config.element %} - {% endif %} - {%- if social_config.matrix %} - {% endif %} - {%- if social_config.twitter %} - {% endif %} - {%- if social_config.facebook %} - {% endif %} - {%- if social_config.linkedin %} - {% endif %} - {%- if social_config.researchgate %} - {% endif %} - {%- if social_config.gitlab %} - {% endif %} - {%- if social_config.github %} - {% endif %} - {%- if social_config.bitbucket %} - {% endif %} - {%- if social_config.python %} - {% endif %} - {%- if social_config.docker %} - {% endif %} - {%- if social_config.stack %} - {% endif %} - {%- if social_config.instagram %} - {% endif %} - {%- if social_config.pinterest %} - {% endif %} - {%- if social_config.twitch %} - {% endif %} - {%- if social_config.youtube %} - {% endif %} - {%- if social_config.buymeacoffee %} - {% endif %} - {%- if social_config.github_sponsor %} - {% endif %} +{%- set base_url = get_url(path="", lang=lang) -%} + {%- if config.generate_feed -%}{%- if config.extra.social.feed -%} + {% endif -%}{% endif -%} + {%- if social_config.mail -%} + {% endif -%} + {%- if social_config.mastodon -%} + {% endif -%} + {%- if social_config.element -%} + {% endif -%} + {%- if social_config.matrix -%} + {% endif -%} + {%- if social_config.twitter -%} + {% endif -%} + {%- if social_config.facebook -%} + {% endif -%} + {%- if social_config.linkedin -%} + {% endif -%} + {%- if social_config.researchgate -%} + {% endif -%} + {%- if social_config.gitlab -%} + {% endif -%} + {%- if social_config.github -%} + {% endif -%} + {%- if social_config.bitbucket -%} + {% endif -%} + {%- if social_config.python -%} + {% endif -%} + {%- if social_config.docker -%} + {% endif -%} + {%- if social_config.stack -%} + {% endif -%} + {%- if social_config.instagram -%} + {% endif -%} + {%- if social_config.pinterest -%} + {% endif -%} + {%- if social_config.twitch -%} + {% endif -%} + {%- if social_config.youtube -%} + {% endif -%} + {%- if social_config.buymeacoffee -%} + {% endif -%} + {%- if social_config.github_sponsor -%} + {% endif -%} {%- endmacro %} -- cgit v1.3.1