title: NCU-SCC # 站点标题 description: | # 头像背后的信息(html格式),<br/>代表换行 Student Cluster Competition Team at Nanchang University<br/> 爆爆后花园<br/> 快来308<br/> Made by Congrui Yin url: https://ncuscc.github.io/ # 你的域名,例如 https://wu-kan.github.io baseurl: "" # 假如你的博客是建在某个目录下的,请在这里加上目录名,并且下面配置的所有链接里的`/assets`前也要加,即`/your_baseurl/assets`。这一项结尾不要有'/'。 defaults: # 将所有配置选项使用<https://jekyllrb.com/docs/configuration/front-matter-defaults/>功能进行配置 - scope: path: "" # an empty string here means all files in the project values: # 以下配置项也可以在任意页面自定义 jekyll-theme-WuK: # 我的主题的自定义样式都在这个命名空间 comments: # 用于存储网页评论 append: | <script src="https://utteranc.es/client.js" repo="NCUSCC/NCUSCC.github.io" issue-term="url" theme="github-light" crossorigin="anonymous" async ></script> default: body: theme-base: theme-base-0d # 可选的主题色包括08~0f,见 <https://github.com/poole/lanyon> layout-reverse: true # 开启后sidebar在右边,反之左边 sidebar-overlay: true # 开启后正文不随sidebar移动而移动 html_lang: zh # <https://www.w3school.com.cn/tags/html_ref_language_codes.asp> sidebar: # 此配置项下是一些关于侧边栏的配置 disable: false # 是否不显示sidebar avatar: # 侧边栏显示的头像 enable: true img: 'https://cdnjson.com/image/j6VWA' nav: # 导航部分的内容,你也可以自己增加文字、图标(来自fontawesome)和对应的链接 - title: '<i class="fas fa-home fa-fw"></i> Index' href: / - title: '<i class="fas fa-award fa-fw"></i> Honors' href: /Honors/ - title: '<i class="fas fa-users fa-fw"></i> Members' href: /Members/ - title: '<i class="fas fa-file-powerpoint fa-fw"></i> Talks' href: /Talks/ # - title: '<i class="fa-solid fa-archive fa-fw"></i> Archive' # href: /archive/ - title: '<i class="fas fa-address-book fa-fw"></i> Contact' href: /Contact/ - title: '<i class="fab fa-github fa-fw"></i> GitHub' href: https://github.com/NCUSCC simple_jekyll_search: # 侧边栏的全站搜索 enable: true full_text_search: false # 可能导致缓慢的搜索和加载 append: | # 如果看不懂就不改 <style> #sidebar-search-input { background: none; border: none; color: White; width: 100%; } #sidebar-search-results-container { overflow: hidden hidden; max-height: 66.6vh; } #sidebar-search-results-container:hover { overflow: auto auto; } </style> <input id="sidebar-search-input" placeholder="Search" /> <ol id="sidebar-search-results-container" ></ol> <script src='https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.9.1' async='async' onload=' SimpleJekyllSearch({ json: "/assets/simple-jekyll-search/search.json", searchInput: document.getElementById("sidebar-search-input"), resultsContainer: document.getElementById("sidebar-search-results-container"), searchResultTemplate: `<li><a href="{url}">{title}</a></li>`, limit: 99, fuzzy: true })' ></script> jekyll-toc: # 侧边栏的目录插件,https://github.com/allejo/jekyll-toc enable: true prepend: | # 目录过长时自动折叠 <style> #toc { overflow: hidden hidden; max-height: 66.6vh; } #toc:hover{ overflow: auto auto; } </style> append_to_sidebar: #- <script defer="defer" src="https://cdn.jsdelivr.net/gh/poole/lanyon@v1.1.0/public/js/script.min.js"></script> # 点击空白处而非按钮从而关闭侧边栏的插件,可选 - | # 侧边栏使用主题色 <style> #sidebar-checkbox:checked ~ .sidebar-toggle, .sidebar, .sidebar-toggle:active { background-color: var(--theme-base-color); } </style> - | # 修复点击侧边栏按钮回到顶部的问题 <style> .sidebar-checkbox { display: none; } .sidebar-toggle { position: fixed; background: none; } </style> - | # 修复侧边栏特定情况下抖动的问题,感谢 [@AmachiInori](https://github.com/wu-kan/wu-kan.github.io/issues/11) <style> .sidebar { overflow: hidden; min-height: 101%; } .sidebar:hover{ overflow-y: scroll; } </style> - | # 侧边栏头像效果 <style> .effect { margin: 1rem; perspective: 900px; } .effect-info { text-align: center; position: absolute; top: 0; width: 100%; transform-style: preserve-3d; } .effect-img { z-index: 11; width: 100%; height: 100%; position: relative; transition: all 0.5s ease-in-out; } .effect-img:before { position: absolute; display: block; } .effect-right_to_left .effect-img { transform-origin: 0% 50%; } .effect-right_to_left:hover .effect-img { transform: rotate3d(0, 1, 0, -180deg); } </style> - | # 运行时间,可将倒数第三行的时间改成你自己的建站时间,格式仿照上面的;不需要的话可以把这一项都删掉 <div> <i class="fa-solid fa-cog fa-spin fa-fw"></i> <span id="run_time_day"> <i class="fa-solid fa-spinner fa-pulse"></i> </span>d <span id="run_time_hour"> <i class="fa-solid fa-spinner fa-pulse"></i> </span>h <span id="run_time_minute"> <i class="fa-solid fa-spinner fa-pulse"></i> </span>m <span id="run_time_second"> <i class="fa-solid fa-spinner fa-pulse"></i> </span>s <script> setInterval(function (d,h,m,s,b) { function setzero(i) { return i < 10 ? "0" + i : i; } let BirthDay = new Date(b); let today = new Date(); let timeold = (today.getTime() - BirthDay.getTime()); let sectimeold = timeold / 1000; let secondsold = Math.floor(sectimeold); let msPerDay = 24 * 60 * 60 * 1000; let e_daysold = timeold / msPerDay; let daysold = Math.floor(e_daysold); let e_hrsold = (e_daysold - daysold) * 24; let hrsold = Math.floor(e_hrsold); let e_minsold = (e_hrsold - hrsold) * 60; let minsold = Math.floor((e_hrsold - hrsold) * 60); let seconds = Math.floor((e_minsold - minsold) * 60); d.textContent = daysold; h.textContent = setzero(hrsold); m.textContent = setzero(minsold); s.textContent = setzero(seconds); }, 1000, document.getElementById("run_time_day"), document.getElementById("run_time_hour"), document.getElementById("run_time_minute"), document.getElementById("run_time_second"), "3/10/2022 11:03:56")// 建队时间? </script> </div> - | # 不蒜子页面统计,看不懂可不改 <div> <div> <i class="fa-solid fa-eye fa-fw"></i> <span id="busuanzi_value_page_pv"> <i class="fa-solid fa-spinner fa-pulse"></i> </span> </div> <div> <i class="fa-solid fa-paw fa-fw"></i> <span id="busuanzi_value_site_pv"> <i class="fa-solid fa-spinner fa-pulse"></i> </span> </div> <div> <i class="fa-solid fa-user-friends fa-fw"></i> <span id="busuanzi_value_site_uv"> <i class="fa-solid fa-spinner fa-pulse"></i> </span> </div> <script src='https://cdn.jsdelivr.net/npm/busuanzi@2.3/bsz.pure.mini.js' async='async' ></script> </div> - | # 觉得我的主题好用的话,让更多的人知道它吧! <div> <i class="fa-solid fa-thumbs-up fa-fw"></i> <a href="https://jekyll-theme-WuK.wu-kan.cn"> jekyll-theme-WuK </a> </div> - | # Copyright声明 <div> <i class="fa-solid fa-copyright fa-fw"></i> 2016-2023 NCU-SCC </div> wordcount: # 全站字数统计 enable: true # 本地调试时建议关闭,非常影响站点生成速度(所需时间与博文数量的平方成正比) prepend: <i class="fa-solid fa-user-edit fa-fw"></i> kilo: k unit: words append_to_head: # 通过内嵌html的方式引入并定制插件,删改前确定知道自己在做什么。定制插件的方式可以参考这篇文章 <https://wu-kan.cn/_posts/2019-01-18-基于Jekyll搭建个人博客/> - | # jsdelivr 防挂脚本,来自 https://github.com/PipecraftNet/jsdelivr-auto-fallback/blob/0.2.2/index.min.js <script> (n=>{"use strict";let r,s,e;const l=["cdn.jsdelivr.net","fastly.jsdelivr.net","gcore.jsdelivr.net","cdn.zenless.top","testingcf.jsdelivr.net","test1.jsdelivr.net"],t="//",a=l[0],i=Date.now(),o=2e3,c="jsdelivr-auto-fallback",f="/gh/PipecraftNet/jsdelivr-auto-fallback@main/empty.css?",d=e=>e&&e.includes(t+a),m=e=>e.replace(t+a,t+r),u=window.setTimeout,v=n.querySelectorAll.bind(n),g=()=>{let e,t;for(e of v('link[rel="stylesheet"]'))t=e.href,d(t)&&!t.includes(f)&&(e.href=m(t));for(e of v("script"))if(t=e.src,d(t)){const r=n.createElement("script");r.src=m(t),e.defer=!0,e.src="",e.before(r),e.remove()}for(e of v("img"))t=e.src,d(t)&&(e.src="",e.src=m(t));for(e of v("*[style]"))t=e.getAttribute("style"),d(t)&&e.setAttribute("style",m(t));for(e of v("style"))t=e.innerHTML,d(t)&&(e.innerHTML=m(t))},y=()=>{!e&&s&&r&&(console.warn(a+" is not available. Use "+r),e=!0,u(g,0),u(g,20),setInterval(g,500))},b=(()=>{try{return Object.assign({},JSON.parse(localStorage.getItem(c)||"{}"))}catch{return{}}})();var h=()=>{b.time=i,b.failed=!1,b.fastNode=null;for(const t of l)((e,t)=>{let r;const s=n.createElement("link"),l=e=>{r&&(clearTimeout(r),r=0,e||(s.href="data:text/plain;base64,"),s.remove(),t(e))};r=u(l,o),s.addEventListener("error",()=>l(!1)),s.addEventListener("load",()=>l(!0)),s.rel="stylesheet",s.text="text/css",s.href=e+f+i,n.head.insertAdjacentElement("afterbegin",s)})("https://"+t,e=>{e||t!==a||(s=!0,b.failed=!0),e&&!r&&(r=t),e&&!b.fastNode&&(b.fastNode=t),y()});u(()=>{s&&!r&&(r=l[1],y()),localStorage.setItem(c,JSON.stringify(b))},o+100)};b.time&&i-b.time<36e5&&b.failed&&b.fastNode?(s=!0,r=b.fastNode,y(),u(h,1e3)):h()})(document); </script> - | # 自定义主题色,可对应 <https://www.runoob.com/cssref/css-colornames.html> 挑选 <style> .theme-base-07 { --theme-base-color: rgb(0,86,31); } </style> - | # 一些页面优化标签,看不懂可跳过 <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="alternate" href="/feed.xml" title="RSS" type="application/rss+xml" /> - | # 网站小图标,可换成你自己的图片,改href中的部分即可 <link rel="apple-touch-icon-precomposed" href="https://cdnjson.com/image/j6VWA" /> <link rel="shortcut icon" href="https://cdnjson.com/image/j6VWA" /> - | # 来自lanyon的页面样式,不要改 <link rel="stylesheet" href="https://cdn.jsdelivr.net/combine/gh/poole/lanyon@v1.1.0/public/css/poole.min.css,gh/poole/lanyon@v1.1.0/public/css/lanyon.min.css,gh/poole/lanyon@v1.1.0/public/css/syntax.min.css" /> - | # fontawesome图标;标题和引用之前插一个图标 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.1/css/all.min.css" /> - | # 侧边栏放缩修正 <style> .wrap { transition-property: width,background-size,transform; transition-duration: .3s; transition-timing-function: ease-in-out; display: inline-block; } @media screen and (min-width: 28rem) { .sidebar-overlay #sidebar-checkbox:checked ~ .wrap { width: calc(100% - 14rem); transform: translateX(14rem); } .layout-reverse.sidebar-overlay #sidebar-checkbox:checked ~ .wrap { transform: translateX(0); } } </style> - | # <https://zenozeng.github.io/fonts.css/>,跨平台中文字体解决方案 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/courier-prime@4.5.7/index.min.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/noto-serif-tc@4.5.9/500.min.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/noto-serif-sc@4.5.9/chinese-simplified-500.min.css" /> <style> .sidebar, html, h1, h2, h3, h4, h5, h6, code, pre { font-family: "Courier Prime", "Courier New", "Courier", "Noto Sans Mono", "Noto Serif TC", "Noto Serif SC", "Noto Serif CJK TC", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", STZhongsong, STSong, "Songti SC", "AR PL New Sung", "AR PL SungtiL GB", NSimSun, SimSun, "TW\-Sung", "WenQuanYi Bitmap Song", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", PMingLiU, MingLiU, monospace; } </style> - | # 修复行内图片默认样式 <style> img { display: inline-block; margin: 0; } </style> - | # 自定义滚动条,仅对Chrome系浏览器生效 <style> ::-webkit-scrollbar { width: 3px; height: 3px; } ::-webkit-scrollbar-thumb { background-color: Gray; } </style> - | # 防止代码块过长 <style> @media only screen { pre { white-space: pre; max-height: 66.6vh; padding: 0 1rem; overflow: hidden hidden; } pre:hover { overflow: auto auto; } } </style> - | # 链接样式修正 <style> .container a, .related-posts li a:hover { color: inherit; text-decoration: none; border-bottom: 1px solid var(--theme-base-color); } </style> page: title: # 为每个页面自动生成一个 H1 title enable: true prepend: - | # 标题和引用前插一个图标 <style> h1::before, h2::before, h3::before, h4::before, h5::before, h6::before, blockquote::before { font-family: "Font Awesome 6 Free"; font-weight: bold; font-size: smaller; margin-right: .5rem; content: "\f292"; } blockquote::before { content: "\f10d"; } </style> - | # 选中字体颜色 <style> ::selection { color: White; background: Black; } </style> - | # 调整标题样式 <style> h1, h2, h3, h4, h5, h6 { margin: 2rem 0rem 1rem 0rem; } </style> - | # 表格样式美化 <style> td, th { padding: 0px; border: 0px; } table { border: 0px; } table tbody { display: block; overflow: scroll; } table thead, tbody tr { display: table; table-layout: fixed; width: 100%; } </style> - | # 列表项增加行距 <style> .content li { margin: .25rem; } </style> - | # 首行缩进2字符 <style> p { text-indent: 2rem; } p img { max-width: calc(100% - 4rem); } </style> - | # 增加宽屏下的显示内容 <style> .container { min-width: 66.6%; min-height: 100vh; } @media only print { .container { min-width: 100%; } } </style> - | <style> .container.content { padding: 2rem; } </style> plugin: - smart_include: enable: true key: $ append: | # 对KaTeX过长公式渲染超出页面的修正,感谢[@AmachiInori](https://github.com/wu-kan/wu-kan.github.io/issues/13) <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.3/dist/katex.min.css" /> <style> .katex-display>.katex { white-space: normal; } </style> <script src="https://cdn.jsdelivr.net/combine/npm/katex@0.15.3/dist/katex.min.js,npm/katex@0.15.3/dist/contrib/auto-render.min.js" async="async" onload='renderMathInElement(document.body, { delimiters: [{left: "$$", right: "$$", display: true}, { left: "$", right: "$", display: false }, {left: "\\(", right: "\\)", display: false}, {left: "\\[", right: "\\]", display: true}]})' ></script> - smart_include: enable: true key: language-vega-lite append: | <style> pre.language-vega-lite, code.language-vega-lite { display: none; } </style> <script src="https://cdn.jsdelivr.net/combine/npm/vega@5.22.1,npm/vega-lite@5.2.0,npm/vega-embed@6.20.8" async="async" onload=' for(let x of document.getElementsByClassName("language-vega-lite")) if(x.nodeName=="CODE") { let m = document.createElement("div"); x.parentNode.insertAdjacentElement("beforebegin", m); vegaEmbed(m, JSON.parse(x.textContent)); }' ></script> - smart_include: enable: true key: language-mermaid append: | <style> pre.language-mermaid, code.language-mermaid { display: none; } @media only screen { .mermaid { overflow: hidden hidden; max-width: 100%; max-height: 66.6vh; } .mermaid { overflow: auto auto; } } </style> <script src="https://cdn.jsdelivr.net/npm/mermaid@9.0.1/dist/mermaid.min.js" async="async" onload=' for(let x of document.getElementsByClassName("language-mermaid")) if(x.nodeName=="CODE") { let m = document.createElement("div"); m.classList.add("mermaid"); m.textContent = x.textContent; x.parentNode.insertAdjacentElement("beforebegin", m); }' ></script> home: # 展示页的配置可跳过,详见<https://revealjs.com/> append_to_section_tag: - key: data-markdown - key: data-separator # 水平展示页分隔符 value: <!-- .slide --> - key: data-separator-vertical # 垂直展示页分隔符 value: <!-- .slide vertical=true --> - key: data-background-color value: "White" prepend: | <link rel="stylesheet" href="https://cdn.jsdelivr.net/combine/npm/reveal.js@4.3.1/dist/reveal.min.css,npm/reveal.js@4.3.1/dist/theme/serif.min.css" /> <style> .sidebar { line-height: 1.5; } .reveal .slides { text-align: left; } .reveal a, .reveal a:hover, .reveal a:focus { color: inherit; border-bottom: 1px solid var(--theme-base-color); } </style> append: | <script async="async" src="https://cdn.jsdelivr.net/combine/npm/reveal.js@4.3.1/dist/reveal.min.js,npm/reveal.js@4.3.1/plugin/markdown/markdown.min.js,npm/reveal.js@4.3.1/plugin/math/math.min.js" onload=" for(let x of document.getElementsByClassName('wrap')) x.classList.add('reveal'); Reveal.initialize({ height: '100%', mouseWheel: true, navigationMode: 'linear', plugins: [ RevealMarkdown,RevealMath.KaTeX ] }); "></script> compress_html: # <https://github.com/penibelst/jekyll-compress-html> clippings: all comments: [] # 注释不能压缩,否则 reveal.js 的 ppt切屏受影响 endings: all ignore: envs: all # 暂时关掉页面压缩 blanklines: false profile: false startings: [] # githubpage上支持的插件见<https://pages.github.com/versions/> plugins: # <https://jekyllrb.com/docs/plugins/> - jekyll-readme-index # 使用readme做index,从而和github渲染效果一致 - jekyll-default-layout # 为每个markdown自动生成layout - jekyll-seo-tag # 为每个页面生成标题 - jekyll-sitemap # 为站点生成站点地图 - jekyll-feed # 为站点生成RSS源 - jekyll-redirect-from # 站点页面重定向 - jekyll-remote-theme # 使用remote_theme插件实现主题的前后分离,详见<https://github.com/benbalter/jekyll-remote-theme/> remote_theme: https://github.com/wu-kan/jekyll-theme-WuK@4.2.0 #使用固定版本号以防止主题更新导致站点显示错乱 readme_index: # 缺失index.md和index.html时,使用README.md代替之 with_frontmatter: true # 支持带有yaml头的README permalink: pretty # timezone: Asia/Shanghai # 解决githubpage显示时间不正确的问题,见<https://www.iana.org/time-zones> future: true # 允许发布时间在未来的文章 # limit_posts: 999 # 限制博文数量 # encoding: utf-8 markdown: kramdown kramdown: # 见<https://kramdown.gettalong.org/options.html> input: GFM # 见<http://jekyllcn.com/docs/configuration/#kramdown> syntax_highlighter_opts: # 可见<https://kramdown.gettalong.org/syntax_highlighter/rouge.html> block: disable: false line_numbers: false #渲染出来的效果好鬼畜 span: disable: false # 以下为 githubpage上不可修改的参数,见<https://help.github.com/en/github/working-with-github-pages/about-github-pages-and-jekyll> #lsi: false # 为相关文章生成索引 #safe: true # 禁用自定义插件 #source: [your repo's top level directory] # Jekyll 读取文件的路径 #incremental: false # 增量生成 #highlighter: rouge # 代码高亮器 #gist: # noscript: false #kramdown: # math_engine: mathjax # syntax_highlighter: rouge