Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orex lugs #411

Open
wants to merge 155 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
c7573f7
post: ChongQing LUG
Aug 12, 2019
904ae3e
post: planet: fix up typo
lzufalcon Aug 12, 2019
0069fb7
post: planet: update urls
lzufalcon Aug 12, 2019
6c4bdec
post: planet: update some content
lzufalcon Aug 12, 2019
aa6a278
post: publish makefile-deep-usage
lzufalcon Aug 12, 2019
648ba0e
post: makefile-deep: add free-card
lzufalcon Aug 13, 2019
9822eb5
post: fix up free-card
lzufalcon Aug 13, 2019
787b32d
post: makefile-deep: update some content
lzufalcon Aug 14, 2019
f9474c8
widgets: fix up prev/next page about draft
lzufalcon Aug 14, 2019
dbcd679
post: planet: update more
lzufalcon Aug 15, 2019
c5cae05
post: planet: update more
lzufalcon Aug 15, 2019
ed608ed
post: planet: split falcon-and-linux out
lzufalcon Aug 15, 2019
0d93424
post: planet: update more
lzufalcon Aug 15, 2019
dcaa9e7
post: falcon-and-linux: fix up typo
lzufalcon Aug 15, 2019
7e902c5
post: falcon-and-linux: update more
lzufalcon Aug 15, 2019
8a62af8
project: tinylinux: add more useful urls
lzufalcon Aug 15, 2019
6f36852
post: busybox: fix up cover page
lzufalcon Aug 15, 2019
b89fab0
post: busybox: add missing pic
lzufalcon Aug 16, 2019
ede244b
weekly news 2019/8/3rd
unicornx Aug 15, 2019
7071a08
post: network adb: update more usage
lzufalcon Aug 16, 2019
0fad703
weekly news: fixed some quote text issue
unicornx Aug 16, 2019
d733671
post: network adb: update permission desc
lzufalcon Aug 16, 2019
c3c3024
tinylinux: add libraryopt url
lzufalcon Aug 16, 2019
2f2e551
tinylinux: add libcs and embedded systems
lzufalcon Aug 16, 2019
3f1c77d
post: linux-lab-v0.2-rc2
lzufalcon Aug 16, 2019
13a14c5
weekly: template: update style
lzufalcon Aug 16, 2019
e671c1a
post: linux-lab-v0.2-rc2: update loongson support
lzufalcon Aug 16, 2019
544a28c
post: git-tips: update typo
lzufalcon Aug 17, 2019
8cdf062
post: publish git-tips
lzufalcon Aug 17, 2019
5281ef9
post: git-tips: update more
lzufalcon Aug 17, 2019
7f4c0d4
post: say-goodby-to-aout
lzufalcon Aug 17, 2019
833b768
post: a.out: update more
lzufalcon Aug 18, 2019
a9d6213
post: add running-elf
lzufalcon Aug 18, 2019
f4bd5da
post: a.out: update title
lzufalcon Aug 18, 2019
a8e0766
post: running-elf: fix up some errors
lzufalcon Aug 18, 2019
cda6afb
home_ads: add free planet card
lzufalcon Aug 19, 2019
5637880
post: cross: update categories
lzufalcon Aug 19, 2019
a92a2c3
ads: update content
lzufalcon Aug 19, 2019
6bff991
ads: add footer ads
lzufalcon Aug 19, 2019
8e5a6d8
ads: update footer ads
lzufalcon Aug 19, 2019
58d9ca2
ads: add footer ads for wap
lzufalcon Aug 19, 2019
fa275e5
ads: add sidebar ads
lzufalcon Aug 19, 2019
3b9f7bc
top: allow to top a page and post in home, post and page
lzufalcon Aug 19, 2019
51cca51
courses: add missing picture
lzufalcon Aug 19, 2019
0906198
courses: add discount code
lzufalcon Aug 19, 2019
ae874b8
posts: top two articles
lzufalcon Aug 19, 2019
1e720ca
top: add to weekly and filter for its own
lzufalcon Aug 19, 2019
2cf0915
top: update style
lzufalcon Aug 19, 2019
1ffc5c6
top: update list style
lzufalcon Aug 19, 2019
1156196
ads: courses: update title
lzufalcon Aug 19, 2019
23cf301
top: list pages too
lzufalcon Aug 19, 2019
09c5bc8
course: update picture
lzufalcon Aug 19, 2019
4f7e2e9
courses: add it to all contact places
lzufalcon Aug 19, 2019
083b074
post: add 360-elf course
lzufalcon Aug 19, 2019
50e160c
post: update 360-elf course
lzufalcon Aug 19, 2019
7e1ef90
post: 360-elf: fix up image url
lzufalcon Aug 20, 2019
0964717
post: 360-elf: update more
lzufalcon Aug 20, 2019
6fc8aad
contact: remove 360-elf course
lzufalcon Aug 20, 2019
a38e889
image: reduce the image size
lzufalcon Aug 20, 2019
ed62c87
image: reduce cbook cover size
lzufalcon Aug 20, 2019
f2d8bdf
post: 360-elf: update register method
lzufalcon Aug 20, 2019
429a034
post: 360-elf: add jserv
lzufalcon Aug 20, 2019
ac0f54d
post: 360-elf: fix up format for mobile
lzufalcon Aug 20, 2019
3de1bc1
post: 360-elf: update more
lzufalcon Aug 20, 2019
097cd4c
post: 360-elf: add more sub sections
lzufalcon Aug 20, 2019
15bd48b
post: 360-elf: add more sub sections
lzufalcon Aug 20, 2019
96a4b38
post: 360-elf: update title
lzufalcon Aug 20, 2019
7ce91b1
post: 360-elf: update title
lzufalcon Aug 20, 2019
96ae0c2
post: 360-elf: update more
lzufalcon Aug 20, 2019
cefb4dd
post: 360-elf: update more
lzufalcon Aug 20, 2019
db2d7e2
post: 360-elf: update more
lzufalcon Aug 20, 2019
59a5beb
post: update top status
lzufalcon Aug 20, 2019
4d3d18b
post: 360-elf: update title for mobile
lzufalcon Aug 20, 2019
dedff76
post: 360-elf: update title
lzufalcon Aug 20, 2019
66746aa
articles: clean up top and draft filter logic
lzufalcon Aug 20, 2019
0f03448
post: 360-elf: re-open it
lzufalcon Aug 20, 2019
4884346
post: 360-elf: update more
lzufalcon Aug 20, 2019
88e1805
top: filter the page itself
lzufalcon Aug 20, 2019
f76f39d
post: falcon-and-linue: remove from top list
lzufalcon Aug 20, 2019
981c88d
publish lwn 391222
unicornx Aug 20, 2019
15388ad
post: update 360-elf course
lzufalcon Aug 20, 2019
7facd44
ads: remove sidebar ads
lzufalcon Aug 20, 2019
60797a7
post: 360-elf: update more
lzufalcon Aug 20, 2019
0ab4a63
post: 360-elf: update more
lzufalcon Aug 20, 2019
58166f5
post: 360-elf: highlight register content
lzufalcon Aug 20, 2019
7ed64d3
post: 360-elf: update more
lzufalcon Aug 20, 2019
3d02841
post: 360-elf: update more
lzufalcon Aug 20, 2019
3cf8139
post: 360-elf: clean up a lot
lzufalcon Aug 20, 2019
e3f0ec0
post: 360-elf: clean up more
lzufalcon Aug 20, 2019
c97aaa3
post: 360-elf: update topic introduction
lzufalcon Aug 20, 2019
abfeb52
post: 360-elf: update more
lzufalcon Aug 20, 2019
edcb5ae
post: 360-elf: update cbook data
lzufalcon Aug 20, 2019
3546991
post: 360-elf: draft it
lzufalcon Aug 20, 2019
a30b521
post: 360-elf: update topic
lzufalcon Aug 20, 2019
50f1a2d
post: 360-elf: reopen it
lzufalcon Aug 20, 2019
222fc02
post: 360-elf: update more
lzufalcon Aug 21, 2019
2ece166
post: 360-elf: update codes
lzufalcon Aug 21, 2019
507e217
post: 360-elf: update table of content
lzufalcon Aug 21, 2019
61bbcfb
post: 360-elf: update exercise parts
lzufalcon Aug 21, 2019
b1befd9
post: 360-elf: update register part
lzufalcon Aug 21, 2019
3bb96b9
theme: add tencent ads
lzufalcon Aug 21, 2019
db1fec0
post: 360-elf: update more
lzufalcon Aug 21, 2019
3503722
post: update 360-elf
lzufalcon Aug 21, 2019
56dc8b0
post: 360-elf: fix up a typo
lzufalcon Aug 21, 2019
b956ba5
post: 360-elf: update a typo
lzufalcon Aug 22, 2019
c1a34e7
post: 360-elf: update more
lzufalcon Aug 22, 2019
a52f3e4
post: 360-elf: sync with wechat group
lzufalcon Aug 22, 2019
08e1cfe
post: 360-elf: add missing image
lzufalcon Aug 22, 2019
55fbbfc
post: 360-elf: fix up typo
lzufalcon Aug 22, 2019
44892c7
post: 360-elf: fix up image link
lzufalcon Aug 22, 2019
5007a51
post: 360-elf: update desc
lzufalcon Aug 22, 2019
626508e
weekly news 2019/08/4th
unicornx Aug 21, 2019
2ce62b5
lwn 562211 draft to false
unicornx Aug 23, 2019
67a7aaa
weely: fix up style issue
lzufalcon Aug 23, 2019
4fa4e8d
post: weekly: mask as top article
lzufalcon Aug 23, 2019
539d443
posts: compiler-opt: update for old kernel
lzufalcon Aug 25, 2019
9c52861
post: dis-com-opt: add -Og
lzufalcon Aug 25, 2019
50be5dc
Revert "posts: compiler-opt: update for old kernel"
lzufalcon Aug 25, 2019
2a0c812
goodbye-a.out draft to false
unicornx Aug 26, 2019
e2ee5d9
aout: add a missing newline
lzufalcon Aug 26, 2019
a986635
360-elf: use abs path
lzufalcon Aug 26, 2019
596f2b0
tools: add online markdown converter
lzufalcon Aug 26, 2019
fe929e2
draft to false: lwn 668126
unicornx Aug 27, 2019
9666464
fix graph display issue for use-jdb-to-debug-android-application
unicornx Aug 27, 2019
6947ee6
continue fix format issue
unicornx Aug 27, 2019
e9a2902
use graph blocks to maek look better than list
unicornx Aug 20, 2019
f4af027
post: publish disable-compiler-optimization
unicornx Aug 28, 2019
b4bae78
tools/draft: fix up a lot
lzufalcon Aug 28, 2019
a9de22c
first commit for lwn folder re-org and files update
unicornx Aug 28, 2019
898a046
continue lwn-sum change
unicornx Aug 29, 2019
3b5a8a7
weekly news 2019/8/5th
unicornx Aug 29, 2019
a7f5430
post: publish the-code-and-revolution-os
unicornx Aug 31, 2019
52a9051
post: fix up gpu typo
lzufalcon Aug 31, 2019
f2d11b6
post: update the-code-and-revolution-os
lzufalcon Sep 1, 2019
bdc09db
post: publish running-elf-in-a-micro-system
unicornx Sep 2, 2019
5fde1e5
post: publish lwn-230574-schedulers-plot-thickens
unicornx Sep 3, 2019
1a36b6d
lwn: updated article list for time
unicornx Sep 3, 2019
b648ada
post generate-clean-assembly
unicornx Sep 4, 2019
f8693d9
android-perf-optimize-solutions-of-mobile-manufacturers
DecJude Aug 24, 2019
c052275
post: android-perf-opt: fix up some format issue
lzufalcon Sep 5, 2019
c157bde
categories: emulator: add unicorn and bochs
lzufalcon Sep 5, 2019
9f71e2d
post: add binary tools
lzufalcon Sep 5, 2019
4671b0f
post: bin-tools: fix up title levels
lzufalcon Sep 5, 2019
f03fab8
post: binary-tools: update a little
lzufalcon Sep 6, 2019
26ea9a6
weekly news 2019/09/1st
unicornx Sep 6, 2019
6b178a5
correct saixiaoxi
unicornx Sep 6, 2019
5a9aaa7
code: really prettify it
lzufalcon Sep 6, 2019
d33256e
move 360-elf to home ads
lzufalcon Sep 6, 2019
cca9d0e
post lwn 428230
unicornx Sep 7, 2019
8e87d24
improved mtrace-memleak
unicornx Sep 7, 2019
34347a1
post: linux jobs top city list
lzufalcon Sep 7, 2019
9bee903
post: linux-city: add missing pics
lzufalcon Sep 7, 2019
7da4b02
post: publish mtrace-memleak
unicornx Sep 9, 2019
0ba46a5
post mtrace-memleak
unicornx Sep 9, 2019
077a262
post: LUGs collection
Sep 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ JB :
categories_limit: 3

code_prettify:
theme: prettify
theme: doxy

comments :
provider : changyan
Expand Down
6 changes: 5 additions & 1 deletion _data/categories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
- name: 模拟器
categories:
- name: Qemu
- name: Unicorn
- name: Bochs
- name: Javascript Emulator
- name: 开发环境
categories:
Expand Down Expand Up @@ -358,6 +360,7 @@
- name: 研发管理
- name: 质量保障
- name: 码农生活
- name: 就业机会

- name: 项目实践
categories:
Expand Down Expand Up @@ -389,6 +392,8 @@
- name: 泰晓沙龙
- name: 泰晓福利
- name: 泰晓资讯
- name: 视频课程
- name: 视频直播
- name: Linux 知识星球
- name: 关于我们

Expand All @@ -402,4 +407,3 @@
- name: Web 建站系统
categories:
- name: Wordpress
- name: 视频直播
6 changes: 4 additions & 2 deletions _data/people.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,13 @@ Dong Liyuan:

Wu Weilin:
name: Wu Weilin
nickname: william
nickname: DecJude
archive: true
article: true
wechat : DecJude
email: [email protected]
github: DecJude
info: Thermal 工程师。
info: Android/Linux 系统优化

Zhao Bin:
name: Zhao Bin
Expand Down
5 changes: 5 additions & 0 deletions _data/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@
permalink: https://validator.w3.org/feed/
description: a free service that checks the syntax of Atom or RSS feeds.
group: tools

- title: 在线 Markdown 转换工具
permalink: http://md.aclickall.com/
description: 支持把 Markdown 转换为公众号支持的格式,比 Markdown Here 要友好
group: tools
8 changes: 8 additions & 0 deletions _includes/themes/tinylab.org/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@
});
</script>

<script>
!function(g,d,t,e,v,n,s){if(g.gdt)return;v=g.gdt=function(){v.tk?v.tk.apply(v,arguments):v.queue.push(arguments)};v.sv='1.0';v.bt=1;v.queue=[];n=d.createElement(t);n.async=!0;n.src=e;s=d.getElementsByTagName(t)[0];s.parentNode.insertBefore(n,s);}(window,document,'script','//qzonestyle.gtimg.cn/qzone/biz/gdt/dmp/user-action/gdtevent.min.js');
gdt('init','1109793838');
gdt('track','PAGE_VIEW');
</script>
<noscript>
<img height="1" width="1" style="display:none" src="https://a.gdt.qq.com/pixel?user_action_set_id=1109793838&action_type=PAGE_VIEW&noscript=1"/>
</noscript>
</head>

<body>
Expand Down
16 changes: 16 additions & 0 deletions _includes/themes/tinylab.org/page.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
{% if page.group != "home" %}
<section id="content">
{% assign articles = site.pages %}
{% assign condition = 'top' %}
{% assign value = true %}
{% assign style = "tiny" %}
{% include widgets/articles %}

{% assign articles = site.posts %}
{% include widgets/articles %}

{% assign style = null %}
</section>
{% endif %}

<section id="content">
<article>

Expand Down Expand Up @@ -34,6 +49,7 @@ <h1>{{ page.title }}</h1>
{% else %}
{% include widgets/contact %}
{% endif %}
{% include widgets/footer_ads %}

{% if page.license != false %}
<hr>
Expand Down
14 changes: 14 additions & 0 deletions _includes/themes/tinylab.org/post.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<section id="content">
{% assign articles = site.pages %}
{% assign condition = 'top' %}
{% assign value = true %}
{% assign style = "tiny" %}
{% include widgets/articles %}

{% assign articles = site.posts %}
{% include widgets/articles %}
{% assign style = null %}
</section>

<section id="content">
<article>
<header>
Expand Down Expand Up @@ -64,4 +76,6 @@ <h1 title="{{ page.title }}">{{ page.title }}</h1>

{% include widgets/prev_next_post %}

{% include widgets/footer_ads %}

</section>
10 changes: 10 additions & 0 deletions _includes/themes/tinylab.org/weekly.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<section id="content">
{% assign articles = site.posts %}
{% assign condition = 'top' %}
{% assign value = true %}
{% assign style = "tiny" %}
{% include widgets/articles %}
{% assign style = null %}
</section>

<section id="content">
<article>
<header>
Expand All @@ -19,6 +28,7 @@ <h1 title="{{ page.title }}">{{ page.title }}</h1>
<hr/>
<strong>泰晓资讯</strong>,汇总一周技术趣闻与文章。
<br/>
<br/>
</div>

{% include widgets/sponsor %}
Expand Down
30 changes: 28 additions & 2 deletions _includes/widgets/articles
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,34 @@
{% endif %}

{% if article.draft and article.draft == true %}
{% if condition != 'draft' and value != true %}
{% if condition == 'draft' and value == true %}
{% assign dummy = null %}
{% else %}
{% continue %}
{% endif %}
{% endif %}

{% assign top_start="" %}
{% assign top_end="" %}
{% assign top_style="" %}

{% if article.top and article.top == true %}
{% if condition == 'top' and value == true and page.title != article.title %}
{% assign top_style="" %}
{% assign top_start="<span style='color:#fb8685'>[置顶]</span> " %}
{% assign top_end="" %}
{% else %}
{% if condition != 'draft' or article.draft != true %}
{% continue %}
{% endif %}
{% endif %}
{% endif %}

<article>
<header>

{% if style != "tiny" %}

{% assign article_date = nil %}
{% if article.date %}
{% assign article_date = article.date %}
Expand All @@ -33,10 +53,14 @@
<time>{{ article_date | date: "%Y-%m-%d" }}</time>
{% endif %}

{% endif %}

<h2>
<a class="tooltip article" href="{{ article.url }}">{% if article.desc %}<span>{{ article.desc }}</span>{% endif %}{{ article.title }}</a>
{{ top_start }}<a class="tooltip article" href="{{ article.url }}" {{ top_style}}>{% if article.desc %}<span>{{ article.desc }}</span>{% endif %}{{ article.title }}{{ top_end }}</a>
</h2>

{% if style != "tiny" %}

{% if article.group %}{% assign group = article.group %}{% else %}{% assign group = "original" %}{% endif %}
{% assign group_name = site.data.groups[group] %}

Expand Down Expand Up @@ -75,6 +99,8 @@

</group>

{% endif %}

</header>
</article>
{% endfor %}
1 change: 1 addition & 0 deletions _includes/widgets/author_box_sidebar
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<img id="loading_img_sidebar" style="height: 90px; width: 90px;" src="{{ site.production_url}}/assets/themes/tinylab.org/img/loading.gif"></img>
</div>
<script async type="text/javascript">$(document).ready(function () { $('#loading_img_sidebar').hide(); $('#page_url').qrcode({ text: "{{ page_url }}", width: 90, height: 90 }); });</script>

</div>

{% assign author = null %}
Expand Down
1 change: 1 addition & 0 deletions _includes/widgets/footer
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<p align="center">
关注我们:
{% for about in site.data.about %}
Expand Down
23 changes: 23 additions & 0 deletions _includes/widgets/footer_ads
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

<div id="footer_layer" style="text-align: center; max-width='100%';">

<script type="text/javascript">
(function() {
var s = "_" + Math.random().toString(36).slice(2);
document.write('<div style="" id="' + s + '"></div>');
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
var id = "u4485687";
} else {
var id = "u4485471";
}
(window.slotbydup = window.slotbydup || []).push({
id: id,
container: s
});
})();
</script>
<!-- 多条广告如下脚本只需引入一次 -->
<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" >
</script>

</div>
1 change: 1 addition & 0 deletions _includes/widgets/home_ads
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<marquee direction="left" scrollamount="2" behavior="alternate" onmouseover="this.stop()" onmouseout="this.start()" bgcolor="#efefef"><a href="http://tinylab.org/360-elf" target="_blank" style="color:#008B8B">开课啦:Linux 码农 5 万月薪必修课!</a></marquee>
44 changes: 34 additions & 10 deletions _includes/widgets/prev_next_button
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{% assign icon_right = "<i class='icon-large icon-fixed-width icon-right-open'></i>" %}
{% assign visible = "" %}
{% assign invisible = "class='invisible'" %}


<div id="prev">
<!-- Previous Page -->
{% if paginator.previous_page %}
Expand All @@ -13,12 +15,23 @@
{% assign title = paginator.previous_page | prepend: "第 " | append: " 页" %}
{% endif %}
{% else %}
{% if page.previous %}
{% assign href = BASE_PATH | append: page.previous.url %}
{% assign title = page.previous.title %}

{% assign previous = page.previous %}

{% for i in (0..10000) %}
{% if previous and previous.draft and previous.draft == true %}
{% assign previous = previous.previous %}
{% else %}
{% break %}
{% endif %}
{% endfor %}

{% if previous %}
{% assign href = BASE_PATH | append: previous.url %}
{% assign title = previous.title %}
{% else %}
{% assign title = "最后一篇" %}
{% assign href = "#" %}
{% assign title = "最后一篇" %}
{% assign href = "#" %}
{% assign visible = invisible %}
{% endif %}
{% endif %}
Expand All @@ -31,12 +44,23 @@
{% assign href = paginator.next_page | prepend: "/page" %}
{% assign title = paginator.next_page | prepend: "第 " | append: " 页" %}
{% else %}
{% if page.next %}
{% assign href = BASE_PATH | append: page.next.url %}
{% assign title = page.next.title %}

{% assign next = page.next %}

{% for i in (0..10000) %}
{% if next and next.draft and next.draft == true %}
{% assign next = next.next %}
{% else %}
{% break %}
{% endif %}
{% endfor %}

{% if next %}
{% assign href = BASE_PATH | append: next.url %}
{% assign title = next.title %}
{% else %}
{% assign title = "最后一篇" %}
{% assign href = "#" %}
{% assign title = "最后一篇" %}
{% assign href = "#" %}
{% assign visible = invisible %}
{% endif %}
{% endif %}
Expand Down
30 changes: 26 additions & 4 deletions _includes/widgets/prev_next_post
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
<div class="pagination" align="center">
<ul>
{% assign title_length = site.JB.posts.title_length %}
{% if page.previous %}
<li class="prev"><a href="{{ BASE_PATH }}{{ page.previous.url }}" title="{{ page.previous.title }}"><long_prev_next>&larr; {{ page.previous.title | truncate: title_length, '...' }}</long_prev_next><short_prev_next>&larr; 上一页</short_prev_next></a></li>

{% assign previous = page.previous %}

{% for i in (0..10000) %}
{% if previous and previous.draft and previous.draft == true %}
{% assign previous = previous.previous %}
{% else %}
{% break %}
{% endif %}
{% endfor %}

{% if previous %}
<li class="prev"><a href="{{ BASE_PATH }}{{ previous.url }}" title="{{ previous.title }}"><long_prev_next>&larr; {{ previous.title | truncate: title_length, '...' }}</long_prev_next><short_prev_next>&larr; 上一页</short_prev_next></a></li>
{% else %}
<li class="prev disabled"><a>&larr; 上一页</a></li>
{% endif %}
<li><a href="{{ BASE_PATH }}{{ site.JB.archive_path }}">所有文章</a></li>
{% if page.next %}
<li class="next"><a href="{{ BASE_PATH }}{{ page.next.url }}" title="{{ page.next.title }}"><long_prev_next>{{ page.next.title | truncate: title_length '...' }} &rarr;</long_prev_next><short_prev_next>下一页 &rarr;</short_prev_next></a></li>

{% assign next = page.next %}

{% for i in (0..10000) %}
{% if next and next.draft and next.draft == true %}
{% assign next = next.next %}
{% else %}
{% break %}
{% endif %}
{% endfor %}

{% if next %}
<li class="next"><a href="{{ BASE_PATH }}{{ next.url }}" title="{{ next.title }}"><long_prev_next>{{ next.title | truncate: title_length '...' }} &rarr;</long_prev_next><short_prev_next>下一页 &rarr;</short_prev_next></a></li>
{% else %}
<li class="next disabled"><a>下一页 &rarr;</a>
{% endif %}
Expand Down
5 changes: 5 additions & 0 deletions _includes/widgets/sidebar_ads
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

<a>精品课程推荐 (<span style="font-size: 85%; color:#fb8685">专属折扣码:W26F</span>)</a>
<div style="padding-top: 10px; padding-bottom: 10px;" id="page_url">
<a target="_blank" href="https://www.yomocode.com/courses/9"><img src="/images/courses/360_elf.jpg" title="泰晓科技 首次与 “阅码场” 合作推出:《360° 剖析 Linux ELF》视频课程,火热报名中……" width="290px" /></a>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This book will teach you how to build an embedded (Android Linux) system withBus

## Cover of this book

![The cover of the book: Instant Optimizing Embedded Systems using Busybox [Instant]](http://www.packtpub.com/sites/default/files/9851OS_cov.jpg)
![The cover of the book: Instant Optimizing Embedded Systems using Busybox [Instant]](http://tinylab.org/wp-content/uploads/2019/08/busybox-cover.gif)

## Overview

Expand Down
4 changes: 4 additions & 0 deletions _posts/2014-08-04-use-adb-via-network.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ categories:
* 如果要切换回USB模式呢?

$ adb usb

也可以在系统启动后直接通过网络使用 adb,用 `setprop` 设置 `persist.adb.tcp.port` 属性即可,这种 persist 属性设置一次就永久生效,这里需要 root 权限。也可以把配置直接写到 init 脚本。

# setprop persist.adb.tcp.port 5555
Loading