Skip to content

Commit a261b37

Browse files
author
yangjingjing
committed
init blog
1 parent 690ee07 commit a261b37

File tree

320 files changed

+30066
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

320 files changed

+30066
-0
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/google-java-format.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/yangjava.github.io.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 Chaobin Zou
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

_includes/comments.html

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{% if page.comments != false %}
2+
3+
{% if site.comments_provider != 'disqus' and site.lazy_load_disqus and site.disqus and site.disqus.username %}
4+
<a href="#" class="show_disqus_comment" onclick="return false;">Show Disqus Comments</a>
5+
<div id="disqus_thread"></div>
6+
<script>
7+
var disqus_config = function () {
8+
this.page.url = '{{ site.url }}{{ page.url }}';
9+
this.page.identifier = '{{ page.url }}';
10+
this.page.title = '{{ page.title }}';
11+
};
12+
var disqus_loaded = false;
13+
$(function() {
14+
$('.show_disqus_comment').on('click', function() { // DON'T EDIT BELOW THIS LINE
15+
$(this).html('加载中...');
16+
var that = this;
17+
if (!disqus_loaded) {
18+
var d = document, s = d.createElement('script');
19+
20+
s.type = 'text/javascript';
21+
s.async = true;
22+
var shortname = '{{ site.disqus.username }}';
23+
24+
s.src = '//' + shortname + '.disqus.com/embed.js';
25+
26+
s.setAttribute('data-timestamp', +new Date());
27+
(d.head || d.body).appendChild(s);
28+
29+
disqus_loaded = true;
30+
}
31+
$(that).remove();
32+
})
33+
})
34+
</script>
35+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
36+
{% endif %}
37+
38+
{% case site.comments_provider %}
39+
{% when 'disqus' %}
40+
{% if site.disqus and site.disqus.username %}
41+
{% assign load_disqus = true %}
42+
<!-- Disqus Protection, see https://github.com/mzlogin/mzlogin.github.io/issues/2 -->
43+
{% if site.disqus.username == 'mzlogin' %}
44+
{% assign load_disqus = false %}
45+
{% if site.url contains 'mazhuang.org' %}
46+
{% assign load_disqus = true %}
47+
{% endif %}
48+
{% endif %}
49+
{% if load_disqus %}
50+
<div id="disqus_thread"></div>
51+
<script>
52+
var disqus_config = function () {
53+
this.page.url = '{{ site.url }}{{ page.url }}';
54+
this.page.identifier = '{{ page.url }}';
55+
this.page.title = '{{ page.title }}';
56+
};
57+
(function() { // DON'T EDIT BELOW THIS LINE
58+
var d = document, s = d.createElement('script');
59+
60+
s.type = 'text/javascript';
61+
s.async = true;
62+
var shortname = '{{ site.disqus.username }}';
63+
64+
s.src = '//' + shortname + '.disqus.com/embed.js';
65+
66+
s.setAttribute('data-timestamp', +new Date());
67+
(d.head || d.body).appendChild(s);
68+
})();
69+
</script>
70+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
71+
{% endif %}
72+
{% endif %}
73+
{% when 'gitment' %}
74+
<div id="container"></div>
75+
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
76+
<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
77+
<script>
78+
var gitment = new Gitment({
79+
id: '{{ page.url }}',
80+
owner: '{{ site.gitment.owner }}',
81+
repo: '{{ site.gitment.repo }}',
82+
oauth: {
83+
client_id: '{{ site.gitment.oauth.client_id }}',
84+
client_secret: '{{ site.gitment.oauth.client_secret }}',
85+
},
86+
})
87+
gitment.render('container')
88+
</script>
89+
{% when 'gitalk' %}
90+
<div id="gitalk-container"></div>
91+
<link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
92+
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
93+
<script>
94+
var gitalk = new Gitalk({
95+
id: '{{ page.url }}',
96+
clientID: '{{ site.gitalk.clientID }}',
97+
clientSecret: '{{ site.gitalk.clientSecret }}',
98+
repo: '{{ site.gitalk.repo }}',
99+
owner: '{{ site.gitalk.owner }}',
100+
admin: ['{{ site.gitalk.owner }}'],
101+
labels: ['gitment'],
102+
perPage: 50,
103+
})
104+
gitalk.render('gitalk-container')
105+
</script>
106+
{% endcase %}
107+
{% endif %}

_includes/footer.html

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<footer class="container">
2+
<div class="site-footer" role="contentinfo">
3+
<div class="copyright left mobile-block">
4+
© 2021
5+
<span title="{{ site.author}}">{{ site.author }}</span>
6+
<a href="javascript:window.scrollTo(0,0)" class="right mobile-visible">TOP</a>
7+
</div>
8+
9+
<ul class="site-footer-links right mobile-hidden">
10+
<li>
11+
<a href="javascript:window.scrollTo(0,0)" >TOP</a>
12+
</li>
13+
</ul>
14+
<a href="{{ site.github.repository_url }}" target="_blank" aria-label="view source code">
15+
<span class="mega-octicon octicon-mark-github" title="GitHub"></span>
16+
</a>
17+
<ul class="site-footer-links mobile-hidden">
18+
{% for nav in site.navs %}
19+
<li>
20+
<a href="{{ site.url }}{{ nav.href }}" title="{{ nav.label }}" target="{{ nav.target | default: _self }}">{{ nav.label }}</a>
21+
</li>
22+
{% endfor %}
23+
<li><a href="{{ site.url }}{{ site.subscribe_rss }}"><span class="octicon octicon-rss" style="color:orange;"></span></a></li>
24+
</ul>
25+
26+
</div>
27+
</footer>
28+
<!-- / footer -->
29+
<script src="{{ site.url }}/assets/vendor/share.js/dist/js/share.min.js"></script>
30+
<script src="{{ site.url }}/assets/js/geopattern.js"></script>
31+
<script src="{{ site.url }}/assets/js/prism.js"></script>
32+
<link rel="stylesheet" href="{{ site.url }}/assets/css/globals/prism.css">
33+
<script>
34+
jQuery(document).ready(function($) {
35+
// geopattern
36+
$('.geopattern').each(function(){
37+
$(this).geopattern($(this).data('pattern-id'));
38+
});
39+
// hljs.initHighlightingOnLoad();
40+
});
41+
</script>
42+
43+
{% if page.mermaid %}
44+
<script src="{{ site.url }}/assets/js/mermaid.min.js"></script>
45+
<script>mermaid.initialize({startOnLoad:true});</script>
46+
{% endif %}
47+
48+
{% if page.sequence %}
49+
<script src="{{ site.url }}/assets/js/webfont.js"></script>
50+
<script src="{{ site.url }}/assets/js/snap.svg-min.js"></script>
51+
<script src="{{ site.url }}/assets/js/underscore-min.js"></script>
52+
<script src="{{ site.url }}/assets/vendor/js-sequence-diagrams/dist/sequence-diagram-min.js"></script>
53+
<link rel="stylesheet" href="{{ site.url }}/assets/vendor/js-sequence-diagrams/dist/sequence-diagram-min.css">
54+
<script>
55+
$(".language-sequence").sequenceDiagram({theme: 'simple'});
56+
</script>
57+
{% endif %}
58+
59+
{% if page.flow %}
60+
<script src="{{ site.url }}/assets/js/raphael.min.js"></script>
61+
<script src="{{ site.url }}/assets/vendor/flowchart.js/dist/flowchart.min.js"></script>
62+
<script src="{{ site.url }}/assets/js/flow.js"></script>
63+
{% endif %}
64+
65+
{% if page.mathjax %}
66+
<script type="text/javascript" src="https://basis-learning.github.io/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
67+
{% endif %}
68+
69+
{% if site.google.analytics_id %}
70+
<div style="display:none">
71+
<script>
72+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
73+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
74+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
75+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
76+
77+
ga('create', '{{ site.google.analytics_id }}', 'auto');
78+
ga('send', 'pageview');
79+
80+
</script>
81+
</div>
82+
{% endif %}
83+
</body>
84+
</html>

0 commit comments

Comments
 (0)