-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto deploy from GitHub Actions build 696
- Loading branch information
Showing
292 changed files
with
604 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,282 @@ | ||
<!doctype html> | ||
<!-- | ||
Minimal Mistakes Jekyll Theme 4.26.2 by Michael Rose | ||
Copyright 2013-2024 Michael Rose - mademistakes.com | @mmistakes | ||
Free for personal and commercial use under the MIT license | ||
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE | ||
--> | ||
<html lang="zh-CN" class="no-js"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<!-- begin _includes/seo.html --> | ||
<title>LUG @ USTC - LUG @ USTC</title> | ||
<meta name="description" content="中国科学技术大学 Linux 用户协会"> | ||
<meta name="author" content="USTCLUG"> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:locale" content="zh_CN"> | ||
<meta property="og:site_name" content="LUG @ USTC"> | ||
<meta property="og:title" content="LUG @ USTC"> | ||
<meta property="og:url" content="https://lug.ustc.edu.cn/_wiki/newhere/"> | ||
<meta property="og:description" content="中国科学技术大学 Linux 用户协会"> | ||
<link rel="canonical" href="https://lug.ustc.edu.cn/_wiki/newhere/"> | ||
<!-- end _includes/seo.html --> | ||
<link href="/feed.xml" type="application/atom+xml" rel="alternate" title="LUG @ USTC Feed"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="apple-touch-icon" sizes="57x57" href="/static/favicon/apple-icon-57x57.png"> | ||
<link rel="apple-touch-icon" sizes="60x60" href="/static/favicon/apple-icon-60x60.png"> | ||
<link rel="apple-touch-icon" sizes="72x72" href="/static/favicon/apple-icon-72x72.png"> | ||
<link rel="apple-touch-icon" sizes="76x76" href="/static/favicon/apple-icon-76x76.png"> | ||
<link rel="apple-touch-icon" sizes="114x114" href="/static/favicon/apple-icon-114x114.png"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="/static/favicon/apple-icon-120x120.png"> | ||
<link rel="apple-touch-icon" sizes="144x144" href="/static/favicon/apple-icon-144x144.png"> | ||
<link rel="apple-touch-icon" sizes="152x152" href="/static/favicon/apple-icon-152x152.png"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-icon-180x180.png"> | ||
<link rel="icon" type="image/png" sizes="192x192" href="/static/favicon/android-icon-192x192.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="96x96" href="/static/favicon/favicon-96x96.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon/favicon-16x16.png"> | ||
<link rel="manifest" href="/static/favicon/manifest.json"> | ||
<meta name="msapplication-TileColor" content="#f3f6f6"> | ||
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> | ||
<meta name="theme-color" content="#f3f6f6"> | ||
<script type="text/javascript"> | ||
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/g, '') + ' js '; | ||
window.enable_copy_code_button = true; | ||
</script> | ||
<!-- For all browsers --> | ||
<link rel="stylesheet" href="/assets/css/main.css?v=68c9370d16"> | ||
<link rel="stylesheet" href="/_extra/fontawesome/css/all.min.css" media="invalid" onload="this.media='all'"> | ||
<link rel="stylesheet" href="/_extra/open-sans.css" media="invalid" onload="this.media='all'"> | ||
<!-- start custom head snippets --> | ||
<!-- insert favicons. use https://realfavicongenerator.net/ --> | ||
<!-- end custom head snippets --> | ||
</head> | ||
<body class="layout--single"> | ||
<nav class="skip-links"> | ||
<ul> | ||
<li><a href="#site-nav" class="screen-reader-shortcut">转到主导航栏</a></li> | ||
<li><a href="#main" class="screen-reader-shortcut">转到内容</a></li> | ||
<li><a href="#footer" class="screen-reader-shortcut">转到底部</a></li> | ||
</ul> | ||
</nav> | ||
<div class="masthead"> | ||
<div class="masthead__inner-wrap"> | ||
<div class="masthead__menu"> | ||
<nav id="site-nav" class="greedy-nav"> | ||
<a class="site-logo" href="/"><img src="/static/lug-penguin.png" alt="LUG @ USTC"></a> | ||
<a class="site-title" href="/"> | ||
LUG @ USTC | ||
</a> | ||
<ul class="visible-links"> | ||
<li class="masthead__menu-item"> | ||
<a | ||
href="/wiki/" | ||
|
||
|
||
><i class="fad fa-lg fa-fw fa-star-shooting"></i> Wiki</a> | ||
</li> | ||
<li class="masthead__menu-item"> | ||
<a | ||
href="/news/" | ||
|
||
|
||
><i class="fad fa-lg fa-fw fa-newspaper"></i> News</a> | ||
</li> | ||
<li class="masthead__menu-item"> | ||
<a | ||
href="/planet/" | ||
|
||
|
||
><i class="fad fa-lg fa-fw fa-planet-ringed fa-swap-opacity"></i> Planet</a> | ||
</li> | ||
<li class="masthead__menu-item"> | ||
<a | ||
href="https://github.com/ustclug" | ||
|
||
|
||
><i class="fab fa-lg fa-fw fa-github"></i> GitHub</a> | ||
</li> | ||
<li class="masthead__menu-item"> | ||
<a | ||
href="https://mirrors.ustc.edu.cn/" | ||
|
||
|
||
><i class="fad fa-lg fa-fw fa-server"></i> Mirrors</a> | ||
</li> | ||
</ul> | ||
<button class="search__toggle" type="button"> | ||
<span class="visually-hidden">切换搜索</span> | ||
<i class="fas fa-search"></i> | ||
</button> | ||
<button class="greedy-nav__toggle hidden" type="button"> | ||
<span class="visually-hidden">切换菜单</span> | ||
<div class="navicon"></div> | ||
</button> | ||
<ul class="hidden-links hidden"></ul> | ||
</nav> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="initial-content"> | ||
<div id="main" role="main"> | ||
<article class="page" itemscope itemtype="https://schema.org/CreativeWork"> | ||
<div class="page__inner-wrap"> | ||
<header> | ||
</header> | ||
<section class="page__content" itemprop="text"> | ||
<aside class="sidebar__right sticky"> | ||
<nav class="toc"> | ||
<header> | ||
<h4 class="nav__title"><i class="fas fa-file-alt"></i> 目录</h4> | ||
</header> | ||
</nav> | ||
</aside> | ||
</section> | ||
<footer class="page__meta"> | ||
</footer> | ||
</div> | ||
</article> | ||
</div> | ||
</div> | ||
<div class="search-content"> | ||
<div class="search-content__inner-wrap"> | ||
<div class="search-searchbar"></div> | ||
<div class="search-hits"></div> | ||
</div> | ||
</div> | ||
<div id="footer" class="page__footer"> | ||
<footer> | ||
<!-- start custom footer snippets --> | ||
<!-- end custom footer snippets --> | ||
<div class="footer-row"> | ||
<div class="footer-block footer__about"> | ||
<p>中国科学技术大学 Linux 用户协会是由中国科学技术大学在校的 GNU/Linux 爱好者发起并组成的团体,旨在联合科大的 GNU/Linux | ||
使用者,搭建信息交流共享的平台,宣传自由软件的价值,提高自由软件社区文化氛围,推广自由软件的应用。</p> | ||
</div> | ||
<div class="footer-block footer__extras"> | ||
<div class="footer__contact"> | ||
<ul> | ||
<li> | ||
<a href="/wiki/intro/"><i class="fad fa-fw fa-address-card"></i> 关于我们</a> | ||
</li> | ||
<li> | ||
<a href="/wiki/lug/contact/"><i class="fas fa-fw fa-phone-alt"></i> 联系我们</a> | ||
</li> | ||
<li> | ||
<a href="/wiki/lug/contribute/"><i class="fad fa-fw fa-users"></i> 加入我们</a> | ||
</li> | ||
<li> | ||
<a href="/feed/"><i class="fad fa-fw fa-rss" style="--fa-secondary-opacity: 0.6;"></i> RSS 订阅</a> | ||
</li> | ||
<li> | ||
<a href="https://github.com/ustclug/website"><i class="fab fa-fw fa-github"></i> 本站仓库</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="footer__logo"> | ||
<div class="footer__logo-image"> | ||
<img src="https://lug.ustc.edu.cn/static/logo-white.svg" /> | ||
</div> | ||
<div class="footer__logo-text"> | ||
<!-- a href="http://www.beian.miit.gov.cn" target="_blank">皖ICP备05002528号</a --> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
</div> | ||
<script src="/assets/js/main.min.js"></script> | ||
<script> | ||
// Including InstantSearch.js library and styling | ||
const loadSearch = function() { | ||
const loadCSS = function(src) { | ||
var link = document.createElement('link'); | ||
link.rel = 'stylesheet'; | ||
link.type = 'text/css'; | ||
link.href = src; | ||
link.media = 'all'; | ||
document.head.appendChild(link); | ||
}; | ||
|
||
var script = document.createElement('script'); | ||
script.setAttribute("type", "text/javascript"); | ||
script.setAttribute("src", "https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.min.js"); | ||
script.addEventListener("load", function() { | ||
// Instantiating InstantSearch.js with Algolia credentials | ||
const search = instantsearch({ | ||
appId: 'CM5ZKX0CV3', | ||
apiKey: 'aa942e5bdda7368300e322cba95f47f6', | ||
indexName: 'default', | ||
searchParameters: { | ||
restrictSearchableAttributes: ['title', 'content'] | ||
} | ||
}); | ||
|
||
const hitTemplate = function(hit) { | ||
const url = hit.url; | ||
const hightlight = hit._highlightResult; | ||
const title = hightlight.title && hightlight.title.value || ""; | ||
const content = hightlight.html && hightlight.html.value || ""; | ||
|
||
return ` | ||
<div class="list__item"> | ||
<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork"> | ||
<h2 class="archive__item-title" itemprop="headline"><a href="${url}">${title}</a></h2> | ||
<div class="archive__item-excerpt" itemprop="description">${content}</div> | ||
</article> | ||
</div> | ||
`; | ||
} | ||
|
||
// Adding searchbar and results widgets | ||
search.addWidget( | ||
instantsearch.widgets.searchBox({ | ||
container: '.search-searchbar', | ||
poweredBy: true, | ||
placeholder: '输入您要搜索的关键词...' | ||
}) | ||
); | ||
search.addWidget( | ||
instantsearch.widgets.hits({ | ||
container: '.search-hits', | ||
templates: { | ||
item: hitTemplate, | ||
empty: '无结果', | ||
} | ||
}) | ||
); | ||
|
||
if (!search.started) { | ||
search.start(); | ||
} | ||
}); | ||
document.body.appendChild(script); | ||
|
||
loadCSS("https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.min.css"); | ||
loadCSS("https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch-theme-algolia.min.css"); | ||
}; | ||
|
||
// Starting the search only when toggle is clicked | ||
$(document).ready(function() { | ||
var scriptLoaded = false; | ||
|
||
$(".search__toggle").on("click", function() { | ||
if (!scriptLoaded) { | ||
loadSearch(); | ||
scriptLoaded = true; | ||
} | ||
}); | ||
}); | ||
</script> | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-R7BPZT6779"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
|
||
gtag('config', 'G-R7BPZT6779', { 'anonymize_ip': false}); | ||
</script> | ||
<img src="/static/USTC_logo.svg" style="position: fixed; bottom: -320px; left: -200px; opacity: 0.1; z-index: -100;" /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.