Skip to content

Commit

Permalink
-duoshuo-
Browse files Browse the repository at this point in the history
  • Loading branch information
leafcxy committed Jul 1, 2024
1 parent 1e13658 commit 90313c3
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 509 deletions.
16 changes: 0 additions & 16 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,6 @@ han: false
# Baidu Analytics ID
#baidu_analytics:

# Duoshuo ShortName
#duoshuo_shortname:

# Disqus
disqus:
enable: false
Expand Down Expand Up @@ -458,9 +455,6 @@ gitalk:
# Warning: JiaThis does not support https.
#add_this_id:

# Share
#duoshuo_share: true

# Google Webmaster tools verification setting
# See: https://www.google.com/webmasters/
#google_site_verification:
Expand All @@ -479,16 +473,6 @@ gitalk:
# See https://azure.microsoft.com/en-us/services/application-insights/
# application_insights:

# Make duoshuo show UA
# user_id must NOT be null when admin_enable is true!
# you can visit http://dev.duoshuo.com get duoshuo user id.
duoshuo_info:
ua_enable: true
admin_enable: false
user_id: 0
#admin_nickname: Author


# Facebook SDK Support.
# https://github.com/iissnan/hexo-theme-next/pull/410
facebook_sdk:
Expand Down
1 change: 0 additions & 1 deletion _includes/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<div id="content" class="content">
{{ content }}
</div>
{% include _third-party/duoshuo-hot-articles.html %}
{% include _partials/comments.html %}
</div>
{% if site.sidebar.display != 'remove' %}
Expand Down
12 changes: 1 addition & 11 deletions _includes/_macro/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,7 @@
{% endif %}

{% if post.comments %}
{% if site.duoshuo_shortname or site.duoshuo and site.duoshuo.shortname %}
<span class="post-comments-count">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-comment-o"></i>
</span>
<a href="{{ post.url | relative_url }}#comments" itemprop="discussionUrl">
<span class="post-comments-count ds-thread-count" data-thread-key="{{ post.url }}" itemprop="commentCount"></span>
</a>
</span>
{% elsif site.facebook_comments_plugin.enable %}
{% if site.facebook_comments_plugin.enable %}
<span class="post-comments-count">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
Expand Down
6 changes: 1 addition & 5 deletions _includes/_partials/comments.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% if page.comments %}
<div class="comments" id="comments">
{% if site.duoshuo and site.duoshuo.shortname or site.duoshuo_shortname %}
<div class="ds-thread" data-thread-key="{{ page.url | relative_url }}"
data-title="{{ page.title }}" data-url="{{ page.url | absolute_url }}">
</div>
{% elsif site.facebook_sdk.enable and site.facebook_comments_plugin.enable %}
{% if site.facebook_sdk.enable and site.facebook_comments_plugin.enable %}
<div class="fb-comments"
data-href="{{ page.url | absolute_url }}"
data-numposts="{{ site.facebook_comments_plugin.num_of_posts }}"
Expand Down
6 changes: 1 addition & 5 deletions _includes/_partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,7 @@
scheme: '{{ site.scheme }}',
sidebar: {{ site.sidebar | jsonify }},
fancybox: {{ site.fancybox }},
motion: {{ site.use_motion }},
duoshuo: {
userId: '{{ site.duoshuo_info.user_id | default: }}',
author: '{{ site.duoshuo_info.admin_nickname | default: __.author }}'
}
motion: {{ site.use_motion }}
};
</script>

Expand Down
3 changes: 1 addition & 2 deletions _includes/_third-party/comments/disqus.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% unless site.duoshuo_shortname or site.duoshuo and site.duoshuo.shortname %}

{% if site.disqus.enable %}

{% if site.disqus.count %}
Expand Down Expand Up @@ -65,4 +65,3 @@
{% endif %}

{% endif %}
{% endunless %}
33 changes: 0 additions & 33 deletions _includes/_third-party/comments/duoshuo.html

This file was deleted.

3 changes: 1 addition & 2 deletions _includes/_third-party/comments/gentie.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% unless site.disqus_shortname or site.hypercomments_id or site.duoshuo_shortname or site.duoshuo and site.duoshuo.shortname %}

{% if site.gentie_productKey %}
{% assign gentie_productKey = site.gentie_productKey %}
Expand All @@ -13,4 +12,4 @@
<script src="https://img1.ws.126.net/f2e/tie/yun/sdk/loader.js"></script>
{% endif %}

{% endunless %}

8 changes: 2 additions & 6 deletions _includes/_third-party/comments/gitalk.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{% unless site.duoshuo_shortname
or site.disqus_shortname
or site.hypercomments_id
or site.gentie_productKey
or site.duoshuo and site.duoshuo.shortname %}


{% if site.gitalk.enable %}

Expand All @@ -25,4 +21,4 @@

{% endif %}

{% endunless %}

3 changes: 1 addition & 2 deletions _includes/_third-party/comments/hypercomments.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% unless site.disqus_shortname or site.duoshuo_shortname or site.duoshuo and site.duoshuo.shortname %}

{% if site.hypercomments_id %}

Expand All @@ -24,4 +23,4 @@

{% endif %}

{% endunless %}

1 change: 0 additions & 1 deletion _includes/_third-party/comments/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% include _third-party/comments/duoshuo.html %}
{% include _third-party/comments/disqus.html %}
{% include _third-party/comments/hypercomments.html %}
{% include _third-party/comments/gentie.html %}
Expand Down
4 changes: 0 additions & 4 deletions _includes/_third-party/comments/livere.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{% unless site.duoshuo and site.duoshuo.shortname %}
{% unless site.hypercomments_id or site.gentie_productKey or site.duoshuo_shortname or site.disqus.enable and site.disqus.shortname %}

{% if page.comments and site.livere_uid %}
<script type="text/javascript">
Expand All @@ -14,5 +12,3 @@
</script>
{% endif %}

{% endunless %}
{% endunless %}
7 changes: 0 additions & 7 deletions _includes/_third-party/comments/youyan.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{% unless site.duoshuo_shortname
or site.disqus_shortname
or site.hypercomments_id
or site.gentie_productKey
or site.duoshuo and site.duoshuo.shortname %}

{% if site.youyan_uid %}
{% assign uid = site.youyan_uid %}
Expand All @@ -13,5 +8,3 @@
<!-- UY END -->
{% endif %}
{% endif %}

{% endunless %}
5 changes: 0 additions & 5 deletions _includes/_third-party/duoshuo-hot-articles.html

This file was deleted.

2 changes: 0 additions & 2 deletions _includes/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
{% include _partials/share/baidushare.html %}
{% elsif site.add_this_id %}
{% include _partials/share/add-this.html %}
{% elsif site.duoshuo_shortname and site.duoshuo_share %}
{% include _partials/share/duoshuo_share.html %}
{% endif %}
</div>
</div>
4 changes: 3 additions & 1 deletion _posts/2024-07-01-Coding Interview University.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Coding Interview University
date: 2024-07-01 01:02:47
tags: [Blogs, Jekyll, default_tags]
tags: [Blogs, learn]
---

> 原先我为了成为一个软件工程师而建立这份简单的学习主题清单, 但这份清单随着时间的推移而膨胀成今天这样。在做完这份清单上的每个目标后,[我成为了 Amazon 的软件开发工程师](https://startupnextdoor.com/ive-been-acquired-by-amazon/?src=ciu)! 你或许不需要像我一样学习这么多。但是,让你成为一位称职工程师所需要的知识都在这里了。
Expand All @@ -13,6 +13,8 @@ tags: [Blogs, Jekyll, default_tags]
>
> **祝你好运!**
<!-- more -->

<div align="center">
<hr />
<p>
Expand Down
Loading

0 comments on commit 90313c3

Please sign in to comment.