mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-26 07:29:27 -05:00
deploy: 9de41759138625e877ee3ca68880eba99af6eafb
This commit is contained in:
parent
2b3260b3cd
commit
357bb405f5
@ -150,4 +150,6 @@ Fuse.version='6.4.3';Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fus
|
||||
return Fuse;})));;var fuse;function loadSearch(){var xhr=new XMLHttpRequest();xhr.onreadystatechange=function(){if(xhr.readyState===4){if(xhr.status===200){var data=JSON.parse(xhr.responseText);if(data){var options={isCaseSensitive:false,shouldSort:true,location:0,distance:100,threshold:0.4,minMatchCharLength:0,keys:['title','permalink','summary','content']};fuse=new Fuse(data,options);}}else{console.log(xhr.responseText);}}};xhr.open('GET',"../index.json");xhr.send();}
|
||||
document.getElementById("searchInput").onkeyup=function(e){const results=fuse.search(this.value);if(results.length!==0){let resultSet='';for(let item in results){resultSet=resultSet+itemGen(results[item].item.title,results[item].item.permalink)}
|
||||
document.getElementById("searchResults").innerHTML=resultSet;}else{document.getElementById("searchResults").innerHTML='';}}
|
||||
function itemGen(name,link){return `<li class="post-entry"><header class="entry-header">${name} »</header><a href="${link}" aria-label="${name}"></a></li>`}
|
||||
function itemGen(name,link){return `<li class="post-entry"><header class="entry-header">${name} »</header><a href="${link}" aria-label="${name}"></a></li>`}
|
||||
function changeURL(url){if(history.replaceState){window.history.replaceState({path:url},'',url);}}
|
||||
function getSearchQuery(){return decodeURIComponent((location.search.split('q=')[1]||'').split('&')[0]).replace(/\+/g,' ');}
|
@ -1,4 +1,4 @@
|
||||
<!doctype html><html lang=l2 dir=auto><head><meta charset=utf-8><meta http-equiv=x-ua-compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>SearchL2 | PaperModL2</title><meta name=keywords content><meta name=description content="SearchL2 - PaperModL2"><meta name=author content="Theme PaperMod"><link rel=canonical href=https://adityatelange.github.io/hugo-PaperMod/l2/search/><link href=https://adityatelange.github.io/hugo-PaperMod/assets/css/stylesheet.min.94a69f3d0b70cac76c6d6f7dfecc9f91f2319ec73d54be960b0d3624fa5a25e2.css integrity="sha256-lKafPQtwysdsbW99/syfkfIxnsc9VL6WCw02JPpaJeI=" rel="preload stylesheet" as=style><link rel=preload as=fetch href=../index.json crossorigin=anonymous><script defer src=https://adityatelange.github.io/hugo-PaperMod/assets/js/search.min.77cec64bf046460a4a1942abf5fc7258ef1c7da95eae708792652423bdff92bc.js rel=preload as=script onload=loadSearch(); integrity="sha256-d87GS/BGRgpKGUKr9fxyWO8cfalernCHkmUkI73/krw="></script><link rel=icon href=https://adityatelange.github.io/hugo-PaperMod/favicon.ico><link rel=icon type=image/png sizes=16x16 href=https://adityatelange.github.io/hugo-PaperMod/favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href=https://adityatelange.github.io/hugo-PaperMod/favicon-32x32.png><link rel=apple-touch-icon href=https://adityatelange.github.io/hugo-PaperMod/apple-touch-icon.png><link rel=mask-icon href=https://adityatelange.github.io/hugo-PaperMod/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><meta name=generator content="Hugo 0.79.0"><link rel=alternate hreflang=en href=https://adityatelange.github.io/hugo-PaperMod/search/><meta property="og:title" content="SearchL2"><meta property="og:description" content><meta property="og:type" content="article"><meta property="og:url" content="https://adityatelange.github.io/hugo-PaperMod/l2/search/"><meta property="og:site_name" content="PaperModL2"><meta name=twitter:card content="summary"><meta name=twitter:title content="SearchL2"><meta name=twitter:description content><script type=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"SearchL2","name":"SearchL2","description":"","keywords":[],"articleBody":"","wordCount":"0","inLanguage":"l2","datePublished":"0001-01-01T00:00:00Z","dateModified":"0001-01-01T00:00:00Z","author":{"@type":"Person","name":"Theme PaperMod"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://adityatelange.github.io/hugo-PaperMod/l2/search/"},"publisher":{"@type":"Organization","name":"PaperModL2","logo":{"@type":"ImageObject","url":"https://adityatelange.github.io/hugo-PaperMod/favicon.ico"}}}</script></head><body class=list><script>if(localStorage.getItem("pref-theme")==="dark"){document.body.classList.add('dark');}else if(localStorage.getItem("pref-theme")==="light"){document.body.classList.remove('dark')}else if(window.matchMedia('(prefers-color-scheme: dark)').matches){document.body.classList.add('dark');}</script><noscript><style type=text/css>.theme-toggle,.top-link{display:none}</style></noscript><header class=header><nav class=nav><div class=logo><a href=https://adityatelange.github.io/hugo-PaperMod/l2/ accesskey=h>PaperModL2</a>
|
||||
<!doctype html><html lang=l2 dir=auto><head><meta charset=utf-8><meta http-equiv=x-ua-compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>SearchL2 | PaperModL2</title><meta name=keywords content><meta name=description content="SearchL2 - PaperModL2"><meta name=author content="Theme PaperMod"><link rel=canonical href=https://adityatelange.github.io/hugo-PaperMod/l2/search/><link href=https://adityatelange.github.io/hugo-PaperMod/assets/css/stylesheet.min.94a69f3d0b70cac76c6d6f7dfecc9f91f2319ec73d54be960b0d3624fa5a25e2.css integrity="sha256-lKafPQtwysdsbW99/syfkfIxnsc9VL6WCw02JPpaJeI=" rel="preload stylesheet" as=style><link rel=preload as=fetch href=../index.json crossorigin=anonymous><script defer src=https://adityatelange.github.io/hugo-PaperMod/assets/js/search.min.39ad90917d11a5bb7e851db3a0ea7771868a2a2a3dfe7d38385a4f65e8174d39.js rel=preload as=script onload=loadSearch(); integrity="sha256-Oa2QkX0Rpbt+hR2zoOp3cYaKKio9/n04OFpPZegXTTk="></script><link rel=icon href=https://adityatelange.github.io/hugo-PaperMod/favicon.ico><link rel=icon type=image/png sizes=16x16 href=https://adityatelange.github.io/hugo-PaperMod/favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href=https://adityatelange.github.io/hugo-PaperMod/favicon-32x32.png><link rel=apple-touch-icon href=https://adityatelange.github.io/hugo-PaperMod/apple-touch-icon.png><link rel=mask-icon href=https://adityatelange.github.io/hugo-PaperMod/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><meta name=generator content="Hugo 0.79.0"><link rel=alternate hreflang=en href=https://adityatelange.github.io/hugo-PaperMod/search/><meta property="og:title" content="SearchL2"><meta property="og:description" content><meta property="og:type" content="article"><meta property="og:url" content="https://adityatelange.github.io/hugo-PaperMod/l2/search/"><meta property="og:site_name" content="PaperModL2"><meta name=twitter:card content="summary"><meta name=twitter:title content="SearchL2"><meta name=twitter:description content><script type=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"SearchL2","name":"SearchL2","description":"","keywords":[],"articleBody":"","wordCount":"0","inLanguage":"l2","datePublished":"0001-01-01T00:00:00Z","dateModified":"0001-01-01T00:00:00Z","author":{"@type":"Person","name":"Theme PaperMod"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://adityatelange.github.io/hugo-PaperMod/l2/search/"},"publisher":{"@type":"Organization","name":"PaperModL2","logo":{"@type":"ImageObject","url":"https://adityatelange.github.io/hugo-PaperMod/favicon.ico"}}}</script></head><body class=list><script>if(localStorage.getItem("pref-theme")==="dark"){document.body.classList.add('dark');}else if(localStorage.getItem("pref-theme")==="light"){document.body.classList.remove('dark')}else if(window.matchMedia('(prefers-color-scheme: dark)').matches){document.body.classList.add('dark');}</script><noscript><style type=text/css>.theme-toggle,.top-link{display:none}</style></noscript><header class=header><nav class=nav><div class=logo><a href=https://adityatelange.github.io/hugo-PaperMod/l2/ accesskey=h>PaperModL2</a>
|
||||
<span class=logo-switches><span class=theme-toggle><a id=theme-toggle accesskey=t><svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></a></span><span class=lang-switch><span>|</span><ul><li><a href=https://adityatelange.github.io/hugo-PaperMod/ title=English aria-label=English>English</a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/l3/ title=Langrtl aria-label=Langrtl>Langrtl</a></li></ul></span></span></div><ul class=menu id=menu onscroll=menu_on_scroll()><li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/archives/ title=Archive><span>Archive</span></a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/categories title=Categories><span>Categories</span></a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/series title=Series><span>Series</span></a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/tags title=Tags><span>Tags</span></a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/ title=NullLink><span>NullLink</span></a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/ title=NullLink2><span>NullLink2</span></a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/ title=NullLink3><span>NullLink3</span></a></li></ul></nav></header><main class=main><header class=page-header><h1>SearchL2<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></h1><div class=post-meta><ul class=i18n_list>Translations:<li><a href=https://adityatelange.github.io/hugo-PaperMod/search/>English</a></li></ul></div></header><div class=searchbox><input id=searchInput autofocus placeholder="SearchL2 ↵" aria-label=search><ul id=searchResults aria-label="search results"></ul></div></main><footer class=footer><span>© 2020 <a href=https://adityatelange.github.io/hugo-PaperMod/l2/>PaperModL2</a></span>
|
||||
<span>·</span>
|
||||
<span>Powered by <a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a></span>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!doctype html><html lang=en dir=auto><head><meta charset=utf-8><meta http-equiv=x-ua-compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>Search | PaperMod</title><meta name=keywords content><meta name=description content="Search - PaperMod"><meta name=author content="Theme PaperMod"><link rel=canonical href=https://adityatelange.github.io/hugo-PaperMod/search/><link href=https://adityatelange.github.io/hugo-PaperMod/assets/css/stylesheet.min.94a69f3d0b70cac76c6d6f7dfecc9f91f2319ec73d54be960b0d3624fa5a25e2.css integrity="sha256-lKafPQtwysdsbW99/syfkfIxnsc9VL6WCw02JPpaJeI=" rel="preload stylesheet" as=style><link rel=preload as=fetch href=../index.json crossorigin=anonymous><script defer src=https://adityatelange.github.io/hugo-PaperMod/assets/js/search.min.77cec64bf046460a4a1942abf5fc7258ef1c7da95eae708792652423bdff92bc.js rel=preload as=script onload=loadSearch(); integrity="sha256-d87GS/BGRgpKGUKr9fxyWO8cfalernCHkmUkI73/krw="></script><link rel=icon href=https://adityatelange.github.io/hugo-PaperMod/favicon.ico><link rel=icon type=image/png sizes=16x16 href=https://adityatelange.github.io/hugo-PaperMod/favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href=https://adityatelange.github.io/hugo-PaperMod/favicon-32x32.png><link rel=apple-touch-icon href=https://adityatelange.github.io/hugo-PaperMod/apple-touch-icon.png><link rel=mask-icon href=https://adityatelange.github.io/hugo-PaperMod/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><meta name=generator content="Hugo 0.79.0"><link rel=alternate hreflang=l2 href=https://adityatelange.github.io/hugo-PaperMod/l2/search/><meta property="og:title" content="Search"><meta property="og:description" content><meta property="og:type" content="article"><meta property="og:url" content="https://adityatelange.github.io/hugo-PaperMod/search/"><meta name=twitter:card content="summary"><meta name=twitter:title content="Search"><meta name=twitter:description content><script type=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"Search","name":"Search","description":"","keywords":[],"articleBody":"","wordCount":"0","inLanguage":"en","datePublished":"0001-01-01T00:00:00Z","dateModified":"0001-01-01T00:00:00Z","author":{"@type":"Person","name":"Theme PaperMod"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://adityatelange.github.io/hugo-PaperMod/search/"},"publisher":{"@type":"Organization","name":"PaperMod","logo":{"@type":"ImageObject","url":"https://adityatelange.github.io/hugo-PaperMod/favicon.ico"}}}</script></head><body class=list><script>if(localStorage.getItem("pref-theme")==="dark"){document.body.classList.add('dark');}else if(localStorage.getItem("pref-theme")==="light"){document.body.classList.remove('dark')}else if(window.matchMedia('(prefers-color-scheme: dark)').matches){document.body.classList.add('dark');}</script><noscript><style type=text/css>.theme-toggle,.top-link{display:none}</style></noscript><header class=header><nav class=nav><div class=logo><a href=https://adityatelange.github.io/hugo-PaperMod/ accesskey=h>PaperMod</a>
|
||||
<!doctype html><html lang=en dir=auto><head><meta charset=utf-8><meta http-equiv=x-ua-compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>Search | PaperMod</title><meta name=keywords content><meta name=description content="Search - PaperMod"><meta name=author content="Theme PaperMod"><link rel=canonical href=https://adityatelange.github.io/hugo-PaperMod/search/><link href=https://adityatelange.github.io/hugo-PaperMod/assets/css/stylesheet.min.94a69f3d0b70cac76c6d6f7dfecc9f91f2319ec73d54be960b0d3624fa5a25e2.css integrity="sha256-lKafPQtwysdsbW99/syfkfIxnsc9VL6WCw02JPpaJeI=" rel="preload stylesheet" as=style><link rel=preload as=fetch href=../index.json crossorigin=anonymous><script defer src=https://adityatelange.github.io/hugo-PaperMod/assets/js/search.min.39ad90917d11a5bb7e851db3a0ea7771868a2a2a3dfe7d38385a4f65e8174d39.js rel=preload as=script onload=loadSearch(); integrity="sha256-Oa2QkX0Rpbt+hR2zoOp3cYaKKio9/n04OFpPZegXTTk="></script><link rel=icon href=https://adityatelange.github.io/hugo-PaperMod/favicon.ico><link rel=icon type=image/png sizes=16x16 href=https://adityatelange.github.io/hugo-PaperMod/favicon-16x16.png><link rel=icon type=image/png sizes=32x32 href=https://adityatelange.github.io/hugo-PaperMod/favicon-32x32.png><link rel=apple-touch-icon href=https://adityatelange.github.io/hugo-PaperMod/apple-touch-icon.png><link rel=mask-icon href=https://adityatelange.github.io/hugo-PaperMod/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><meta name=generator content="Hugo 0.79.0"><link rel=alternate hreflang=l2 href=https://adityatelange.github.io/hugo-PaperMod/l2/search/><meta property="og:title" content="Search"><meta property="og:description" content><meta property="og:type" content="article"><meta property="og:url" content="https://adityatelange.github.io/hugo-PaperMod/search/"><meta name=twitter:card content="summary"><meta name=twitter:title content="Search"><meta name=twitter:description content><script type=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"Search","name":"Search","description":"","keywords":[],"articleBody":"","wordCount":"0","inLanguage":"en","datePublished":"0001-01-01T00:00:00Z","dateModified":"0001-01-01T00:00:00Z","author":{"@type":"Person","name":"Theme PaperMod"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://adityatelange.github.io/hugo-PaperMod/search/"},"publisher":{"@type":"Organization","name":"PaperMod","logo":{"@type":"ImageObject","url":"https://adityatelange.github.io/hugo-PaperMod/favicon.ico"}}}</script></head><body class=list><script>if(localStorage.getItem("pref-theme")==="dark"){document.body.classList.add('dark');}else if(localStorage.getItem("pref-theme")==="light"){document.body.classList.remove('dark')}else if(window.matchMedia('(prefers-color-scheme: dark)').matches){document.body.classList.add('dark');}</script><noscript><style type=text/css>.theme-toggle,.top-link{display:none}</style></noscript><header class=header><nav class=nav><div class=logo><a href=https://adityatelange.github.io/hugo-PaperMod/ accesskey=h>PaperMod</a>
|
||||
<span class=logo-switches><span class=theme-toggle><a id=theme-toggle accesskey=t><svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></a></span><span class=lang-switch><span>|</span><ul><li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/ title=Lang2 aria-label=Lang2>Lang2</a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/l3/ title=Langrtl aria-label=Langrtl>Langrtl</a></li></ul></span></span></div><ul class=menu id=menu onscroll=menu_on_scroll()><li><a href=https://adityatelange.github.io/hugo-PaperMod/archives title=Archive><span>Archive</span></a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/search/ title=Search><span class=active>Search</span></a></li><li><a href=https://adityatelange.github.io/hugo-PaperMod/tags/ title=Tags><span>Tags</span></a></li></ul></nav></header><main class=main><header class=page-header><h1>Search<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></h1><div class=post-meta><ul class=i18n_list>Translations:<li><a href=https://adityatelange.github.io/hugo-PaperMod/l2/search/>Lang2</a></li></ul></div></header><div class=searchbox><input id=searchInput autofocus placeholder="Search ↵" aria-label=search><ul id=searchResults aria-label="search results"></ul></div></main><footer class=footer><span>© 2020 <a href=https://adityatelange.github.io/hugo-PaperMod/>PaperMod</a></span>
|
||||
<span>·</span>
|
||||
<span>Powered by <a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a></span>
|
||||
|
Loading…
Reference in New Issue
Block a user