jekyll-theme-panda 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +79 -0
- data/_config.yml +72 -0
- data/_includes/about/en.md +1 -0
- data/_includes/about/zh.md +0 -0
- data/_includes/footer.html +80 -0
- data/_includes/head.html +81 -0
- data/_includes/header.html +158 -0
- data/_includes/policy/en.md +1 -0
- data/_includes/policy/zh.md +9 -0
- data/_includes/search.html +5 -0
- data/_includes/toc.html +112 -0
- data/_layouts/default.html +9 -0
- data/_layouts/forarchive.html +91 -0
- data/_layouts/home.html +115 -0
- data/_layouts/post.html +117 -0
- data/_sass/common.scss +4480 -0
- data/_sass/header.scss +622 -0
- data/_sass/post.scss +362 -0
- data/_sass/syntax.scss +191 -0
- data/assets/css/bootstrap.min.css +6 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/styles.scss +6 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/amarillo/AmarilloUSAF.svg +181 -0
- data/assets/fonts/amarillo/AmarilloUSAF.ttf +0 -0
- data/assets/fonts/amarillo/AmarilloUSAF.woff +0 -0
- data/assets/fonts/amarillo/amarillo-font.css +18 -0
- data/assets/fonts/amarillo/amarurgt.eot +0 -0
- data/assets/fonts/amarillo/amarurgt.woff2 +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/img/banner.gif +0 -0
- data/assets/img/logo_Nest.png +0 -0
- data/assets/img/switcher.png +0 -0
- data/assets/js/archive.min.js +5 -0
- data/assets/js/imagesLoaded-3.1.8.js +9434 -0
- data/assets/js/imagesLoaded-4.1.4.js +497 -0
- data/assets/js/jquery-3.5.1.min.js +2 -0
- data/assets/js/mermaid.min.js +31 -0
- data/assets/js/script.js +216 -0
- data/assets/js/slick.min.js +1 -0
- metadata +116 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/*
|
2
|
+
Credits: this script is shamelessly borrowed from
|
3
|
+
https://github.com/kitian616/jekyll-TeXt-theme
|
4
|
+
*/
|
5
|
+
(function(){function queryString(){var i=0,queryObj={},pair;var queryStr=window.location.search.substring(1);var queryArr=queryStr.split("&");for(i=0;i<queryArr.length;i++){pair=queryArr[i].split("=");if(typeof queryObj[pair[0]]==="undefined"){queryObj[pair[0]]=pair[1]}else{if(typeof queryObj[pair[0]]==="string"){queryObj[pair[0]]=[queryObj[pair[0]],pair[1]]}else{queryObj[pair[0]].push(pair[1])}}}return queryObj}var setUrlQuery=(function(){var baseUrl=window.location.href.split("?")[0];return function(query){if(typeof query==="string"){window.history.replaceState(null,"",baseUrl+query)}else{window.history.replaceState(null,"",baseUrl)}}})();$(document).ready(function(){var $tags=$(".js-tags");var $articleTags=$tags.find(".tag-button");var $tagShowAll=$tags.find(".tag-button--all");var $result=$(".js-result");var $sections=$result.find("section");var sectionArticles=[];var $lastFocusButton=null;var sectionTopArticleIndex=[];var hasInit=false;$(".tag-button--all").addClass("focus");$sections.each(function(){sectionArticles.push($(this).find(".item"))});function init(){var i,index=0;for(i=0;i<$sections.length;i++){sectionTopArticleIndex.push(index);index+=$sections.eq(i).find(".item").length}sectionTopArticleIndex.push(index)}function searchButtonsByTag(_tag){if(!_tag){return $tagShowAll}var _buttons=$articleTags.filter('[data-encode="'+_tag+'"]');if(_buttons.length===0){return $tagShowAll}return _buttons}function buttonFocus(target){if(target){target.addClass("focus");$(".tag-button--all").removeClass("focus");$lastFocusButton&&!$lastFocusButton.is(target)&&$lastFocusButton.removeClass("focus");$lastFocusButton=target}}function tagSelect(tag,target){var result={},$articles;var i,j,k,_tag;for(i=0;i<sectionArticles.length;i++){$articles=sectionArticles[i];for(j=0;j<$articles.length;j++){if(tag===""||tag===undefined){result[i]||(result[i]={});result[i][j]=true}else{var tags=$articles.eq(j).data("tags").split(",");for(k=0;k<tags.length;k++){if(tags[k]===tag){result[i]||(result[i]={});result[i][j]=true;break}}}}}for(i=0;i<sectionArticles.length;i++){result[i]&&$sections.eq(i).removeClass("d-none");result[i]||$sections.eq(i).addClass("d-none");for(j=0;j<sectionArticles[i].length;j++){if(result[i]&&result[i][j]){sectionArticles[i].eq(j).removeClass("d-none")}else{sectionArticles[i].eq(j).addClass("d-none")}}}hasInit||($result.removeClass("d-none"),hasInit=true);if(target){buttonFocus(target);_tag=target.attr("data-encode");console.log("[Archive] tag is",_tag);if(_tag===""||typeof _tag!=="string"){setUrlQuery()}else{setUrlQuery("?tag="+_tag)}}else{buttonFocus(searchButtonsByTag(tag))}}var query=queryString(),_tag=query.tag;init();tagSelect(_tag);$tags.on("click","a",function(){tagSelect($(this).data("encode"),$(this))})})})();
|