From 3f5567573bf002e1c8f8c8448bc8d9433d216d24 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 22 Aug 2023 14:43:59 -0700 Subject: update icons alternative unicode --- COPY-TO-ROOT-SASS/abridge.scss | 2 +- README.md | 7 +- config.toml | 6 +- package.json | 4 +- sass/abridge.scss | 144 +++++++++++++++++++++----------------- static/js/abridge-nosearch.min.js | 1 + templates/macros/head.html | 4 ++ templates/macros/macros.html | 16 ++--- 8 files changed, 101 insertions(+), 83 deletions(-) create mode 100644 static/js/abridge-nosearch.min.js diff --git a/COPY-TO-ROOT-SASS/abridge.scss b/COPY-TO-ROOT-SASS/abridge.scss index 855d919..89689b4 100644 --- a/COPY-TO-ROOT-SASS/abridge.scss +++ b/COPY-TO-ROOT-SASS/abridge.scss @@ -174,7 +174,7 @@ //$top: true,//back to top button using CSS //$search: true,//search feature //$toc: true,//Table of Contents, page index / recent posts block - //$zola: true,//Zola Specific + //$modifiers: true,//tiny modifier classes for sizing and spacing //$misc: false, //$grid: false,//Infinity Grid, column based layouts. //$syntax: true,//syntax highlighting for code blocks diff --git a/README.md b/README.md index 5bafb44..d94e1e7 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,6 @@ Abridge is a fast and lightweight Zola theme using semantic html, only ~6kb css before the svg icons and syntax highlighting css, no mandatory JS[*](https://github.com/Jieiku/abridge#contributing-and-philosophy), and perfect [Lighthouse](https://pagespeed.web.dev/report?url=abridge.netlify.app), [YellowLabTools](https://yellowlab.tools/), and [Observatory](https://observatory.mozilla.org/analyze/abridge.netlify.app) scores. -There is also [Abridge-minimal](https://github.com/jieiku/abridge.css) Theme which is used to showcase the [abridge.css framework](https://github.com/Jieiku/abridge.css/tree/master/dist) - Here is a [Zola Themes Benchmarks](https://github.com/Jieiku/zola-themes-benchmarks/blob/main/README.md) Page. Maintenance of this project is made possible by all the contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here. 💖 @@ -15,8 +13,9 @@ Maintenance of this project is made possible by all the {e.rel="stylesheet"}),document.getElementById("mode")&&document.getElementById("mode").addEventListener("click",()=>{document.documentElement.classList.toggle("switch"),localStorage.setItem("theme",document.documentElement.classList.contains("switch")?"switch":"default")}),!function(){for(var e=document.getElementsByClassName("m-protected"),t=0;t{e.classList.add(t),setTimeout(()=>e.classList.remove(t),2500)}),copyCodeAndChangeIcon=async(t,e)=>{e=(e.querySelector("table")?getTableCode:getNonTableCode)(e);try{await navigator.clipboard.writeText(e),changeIcon(t,"yes")}catch(e){changeIcon(t,"err")}},getNonTableCode=e=>[...e.querySelectorAll("code")].map(e=>e.textContent).join(""),getTableCode=e=>[...e.querySelectorAll("tr")].map(e=>e.querySelector("td:last-child")?.innerText??"").join("");document.querySelectorAll("pre").forEach(e=>{const t=document.createElement("div");t.className="cc svgs svgh copy",t.innerHTML=" ",e.prepend(t),t.addEventListener("click",()=>copyCodeAndChangeIcon(t,e))}); \ No newline at end of file diff --git a/templates/macros/head.html b/templates/macros/head.html index 2c85f16..673954b 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -95,7 +95,11 @@ {%- if config.extra.js_bundle %} + {%- if config.build_search_index %} + {%- else %} + + {%- endif %} {%- if config.build_search_index %} {%- if search_library == "elasticlunr" %} diff --git a/templates/macros/macros.html b/templates/macros/macros.html index fb18345..1a033cf 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -205,13 +205,13 @@ {%- if paginator.previous -%} {%- if icon_first -%} - {%- else -%}❰ + {%- else -%}« {%- endif -%} {%- else -%} {%- if icon_first -%} - {%- else -%}❰ + {%- else -%}« {%- endif -%} {%- endif -%} @@ -219,13 +219,13 @@ {%- if paginator.previous -%} {%- if icon_prev -%} - {%- else -%}❬ + {%- else -%}‹ {%- endif -%} {%- else -%} {%- if icon_prev -%} - {%- else -%}❬ + {%- else -%}‹ {%- endif -%} {%- endif -%} @@ -243,13 +243,13 @@ {%- if paginator.next -%} {%- if icon_next -%} - {%- else -%}❭ + {%- else -%}› {%- endif -%} {%- else -%} {%- if icon_next -%} - {%- else -%}❭ + {%- else -%}› {%- endif -%} {%- endif -%} @@ -257,13 +257,13 @@ {%- if paginator.next -%} {%- if icon_last -%} - {%- else -%}❱ + {%- else -%}» {%- endif -%} {%- else -%} {%- if icon_last -%} - {%- else -%}❱ + {%- else -%}» {%- endif -%} {%- endif -%} -- cgit v1.3.1