Skip to content

Commit

Permalink
My customization
Browse files Browse the repository at this point in the history
  • Loading branch information
wufei committed Feb 20, 2024
1 parent aacd808 commit 9df3039
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 147 deletions.
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
huangxuan.me
riscv-perf.top
45 changes: 11 additions & 34 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
# Site settings
title: Hux Blog
SEOTitle: 黄玄的博客 | Hux Blog
title: RISC-V on the Performance Top
SEOTitle: RISC-V on the Performance Top | Performance Blog
header-img: img/home-bg.jpg
email: huxpro@gmail.com
description: "这里是 @Hux黄玄 的个人博客,与你一起发现更大的世界 | 要做一个有 swag 的程序员"
keyword: "黄玄, Hux黄玄, Hux, 鬼栈, huxpro, @huxpro, 黄玄的博客, Hux Blog, 博客, 个人网站, 互联网, Web, JavaScript, React, React Native, 前端, 设计"
url: "https://huangxuan.me" # your host, for absolute URL
email: at.wufei@qq.com
description: "这里是 Wu Fei 关于RISC-V Performance的个人博客"
keyword: "RISC-V, Performance, Linux"
url: "https://riscv-perf.top" # your host, for absolute URL
baseurl: "" # for example, '/blog' if your blog hosted on 'host/blog'

# Publish posts or collection documents with a future date.
future: true

# SNS settings
RSS: false
weibo_username: huxpro
zhihu_username: huxpro
github_username: huxpro
twitter_username: huxpro
#facebook_username: huxpro
#linkedin_username: firstname-lastname-idxxxx

# Build settings
# from 2016, 'pygments' is unsupported on GitHub Pages. Use 'rouge' for highlighting instead.
highlighter: rouge
Expand Down Expand Up @@ -58,24 +49,18 @@ kramdown:
line_numbers: true
start_line: 1

# Disqus settings
disqus_username: hux

# Netease settings
netease_comment: false

# Analytics settings
# Baidu Analytics
# ba_track_id: [your track id]
ba_track_id: db4bb3acb2e55dc81c79a6a90f575407

# Google Analytics
ga_track_id: "UA-49627206-1" # Format: UA-xxxxxx-xx
ga_domain: huangxuan.me
# ga_track_id: "UA-49627206-1" # Format: UA-xxxxxx-xx TODO
# ga_domain: riscv-perf.top

# Sidebar settings
sidebar: true # whether or not using Sidebar.
sidebar-about-description: "要做一个有 swag 的程序员 <br> React Team @ Meta"
sidebar-avatar: https://github.com/Huxpro.png # use absolute URL, seeing it's used in both `/` and `/about/`
sidebar-about-description: ""
sidebar-avatar: todo.png # use absolute URL, seeing it's used in both `/` and `/about/`

# Featured Tags
featured-tags: true # whether or not using Feature-Tags
Expand All @@ -91,12 +76,4 @@ page-mathjax: false
# Friends
friends:
[
{ title: "乱序(Midare)", href: "http://mida.re/" },
{ title: "Ebn Zhang", href: "https://ebnbin.dev/" },
{ title: "Kun Qian", href: "http://kunq.me" },
{ title: "Sherry Woo", href: "https://sherrywoo.me/" },
{ title: "SmdCn", href: "http://blog.smdcn.net" },
{ title: "JiyinYiyong", href: "http://tiye.me/" },
{ title: "DHong Say", href: "http://dhong.co" },
{ title: "尹峰以为", href: "http://ingf.github.io/" },
]
3 changes: 0 additions & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
<!-- Web App Manifest -->
<link rel="manifest" href="{{ site.baseurl }}/pwa/manifest.json">

<!-- Favicon -->
<link rel="shortcut icon" href="{{ site.baseurl }}/img/favicon.ico">

<!-- Canonical URL -->
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

Expand Down
4 changes: 0 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
{% include footer.html %}


<!-- Image to hack wechat -->
<img src="/img/icon_wechat.png" width="0" height="0" />
<!-- Migrate from head to bottom, no longer block render and still work -->

</body>

</html>
9 changes: 0 additions & 9 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@
col-xs-12 sidebar-container">
<!-- Featured Tags -->
{% include featured-tags.html %}

<!-- Short About -->
{% include short-about.html %}

<!-- Friends Blog -->
{% include friends.html %}

<!-- Ads -->
{% include ads.html %}
</div>
{% endif %}
</div>
Expand Down
58 changes: 9 additions & 49 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,6 @@
{% endif %}
</ul>
<hr style="visibility: hidden;">

{% if site.disqus_username %}
<!-- disqus 评论框 start -->
<div class="comment">
<div id="disqus_thread" class="disqus-thread"></div>
</div>
<!-- disqus 评论框 end -->
{% endif %}

{% if site.netease_comment %}
<!-- 网易云跟帖 评论框 start -->
<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
<!-- 网易云跟帖 评论框 end -->
{% endif %}
</div>

<!-- Side Catalog Container -->
Expand Down Expand Up @@ -94,48 +80,22 @@ <h5>
</div>
</div>
</div>

<script src="https://utteranc.es/client.js"
repo="atwufei/atwufei.github.io"
issue-term="pathname"
theme="github-light"
crossorigin="anonymous"
async>
</script>

</article>

<!-- add support for mathjax by voleking-->
{% if page.mathjax %}
{% include mathjax_support.html %}
{% endif %}

{% if site.netease_comment %}
<!-- 网易云跟帖JS代码 start -->
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>
<script>
var cloudTieConfig = {
url: document.location.href,
sourceId: "",
productKey: "de25fc98a6fe48b3bc8a7ae765da99a0",
target: "cloud-tie-wrapper"
};
var yunManualLoad = true;
Tie.loader("aHR0cHM6Ly9hcGkuZ2VudGllLjE2My5jb20vcGMvbGl2ZXNjcmlwdC5odG1s", true);
</script>
<!-- 网易云跟帖JS代码 end -->
{% endif %}


{% if site.disqus_username %}
<!-- disqus 公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = "{{site.disqus_username}}";
var disqus_identifier = "{{page.id}}";
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 %}


{% if site.anchorjs %}
<!-- async load function -->
<script>
Expand Down
44 changes: 1 addition & 43 deletions about.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,6 @@
---
layout: page
title: "About"
description: "「他单纯只想把日子过得不浪费」"
header-img: "img/bg-me-2022.jpg"
description: "这里是 Wu Fei 关于RISC-V Performance的个人博客"
header-mask: 0.3
multilingual: true
---

{% include multilingual-sel.html %}

<!-- Chinese Version -->
<div class="zh post-container">
{% capture about_zh %}{% include about/zh.md %}{% endcapture %}
{{ about_zh | markdownify }}
</div>

<!-- English Version -->
<div class="en post-container">
{% capture about_en %}{% include about/en.md %}{% endcapture %}
{{ about_en | markdownify }}
</div>


{% if site.disqus_username %}
<!-- disqus 评论框 start -->
<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 %}
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: page
description: "「离开世界之前 一切都是过程」"
---

{% for post in paginator.posts %}
Expand Down
4 changes: 1 addition & 3 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const PRECACHE_LIST = [
"./js/bootstrap.min.js",
"./js/hux-blog.min.js",
"./js/snackbar.js",
"./img/icon_wechat.png",
"./img/avatar-hux.jpg",
"./img/home-bg.jpg",
"./img/404-bg.jpg",
"./css/hux-blog.min.css",
Expand Down Expand Up @@ -265,4 +263,4 @@ function revalidateContent(cachedResp, fetchedResp) {
}
})
.catch(err => console.log(err))
}
}

0 comments on commit 9df3039

Please sign in to comment.