1 Star 0 Fork 1

landaquan/tianguoguo.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
about.html 3.78 KB
一键复制 编辑 原始数据 按行查看 历史
甜果果 提交于 2021-04-02 10:52 . modified about page
---
layout: page
title: "About"
description: "Hey, this is ST."
header-img: "https://cdn.jsdelivr.net/gh/tian-guo-guo/cdn@1.0/assets/img/post-bg-rwd.jpg"
---
<!-- Language Selector -->
<select class="sel-lang" onchange= "onLanChange(this.options[this.options.selectedIndex].value)">
<option value="0" selected> 中文 Chinese </option>
<option value="1"> 英文 English </option>
</select>
<!-- Chinese Version -->
<div class="zh post-container">
<!--copied from markdown -->
<blockquote>
<p>
生命不息,折腾不止~ <br/>
永远坚信,永远奋斗,永远热爱!
</p>
</blockquote>
<h5>自我介绍</h5>
<ul>
<li>爱学习,爱生活的一只程序媛(•͈ᴗ•͈ૢૢ)❊⿻*喵喵喵~。</li>
</ul>
<h5>联系方式</h5>
<!-- <ul class="list-unstyled"> -->
<ul>
<li>邮件: tianguoguo15@163.com</li>
</ul>
</div>
<!-- English Version -->
<div class="en post-container">
<blockquote>
<p>
Where there is life, there is hope.
</p>
</blockquote>
<h5>Contact</h5>
<!-- <! -<ul class = "list-unstyled">-> -->
<ul>
<li>E-mail: tianguoguo15@163.com </li>
</ul>
</div>
<!-- Handle Language Change -->
<script type="text/javascript">
// get nodes
var $zh = document.querySelector(".zh");
var $en = document.querySelector(".en");
var $select = document.querySelector("select");
// bind hashchange event
window.addEventListener('hashchange', _render);
// handle render
function _render(){
var _hash = window.location.hash;
// en
if(_hash == "#en"){
$select.selectedIndex = 1;
$en.style.display = "block";
$zh.style.display = "none";
// zh by default
}else{
// not trigger onChange, otherwise cause a loop call.
$select.selectedIndex = 0;
$zh.style.display = "block";
$en.style.display = "none";
}
}
// handle select change
function onLanChange(index){
if(index == 0){
window.location.hash = "#zh"
}else{
window.location.hash = "#en"
}
}
// init
_render();
</script>
<!-- Gitalk 评论 start -->
{% if site.gitalk.enable %}
<!-- Gitalk link -->
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
<script src="https://unpkg.com/gitalk@latest/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: '{{site.gitalk.clientID}}',
clientSecret: '{{site.gitalk.clientSecret}}',
repo: '{{site.gitalk.repo}}',
owner: '{{site.gitalk.owner}}',
admin: ['{{site.gitalk.admin}}'],
distractionFreeMode: '{{site.gitalk.distractionFreeMode}}',
id: 'about',
});
gitalk.render('gitalk-container');
</script>
{% endif %}
<!-- Gitalk end -->
<!-- disqus 评论框 start -->
{% if site.disqus.enable %}
<div class="comment">
<div id="disqus_thread" class="disqus-thread">
</div>
</div>
<!-- disqus 评论框 end -->
<!-- disqus 公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = "{{site.disqus.username}}";
var disqus_identifier = "{{site.disqus.username}}/{{page.url}}";
var disqus_url = "{{site.url}}{{page.url}}";
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<!-- disqus 公共JS代码 end -->
{% endif %}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dada4545/tianguoguo.github.io.git
git@gitee.com:dada4545/tianguoguo.github.io.git
dada4545
tianguoguo.github.io
tianguoguo.github.io
master

搜索帮助