jekyll-theme-panda 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +79 -0
  4. data/_config.yml +72 -0
  5. data/_includes/about/en.md +1 -0
  6. data/_includes/about/zh.md +0 -0
  7. data/_includes/footer.html +80 -0
  8. data/_includes/head.html +81 -0
  9. data/_includes/header.html +158 -0
  10. data/_includes/policy/en.md +1 -0
  11. data/_includes/policy/zh.md +9 -0
  12. data/_includes/search.html +5 -0
  13. data/_includes/toc.html +112 -0
  14. data/_layouts/default.html +9 -0
  15. data/_layouts/forarchive.html +91 -0
  16. data/_layouts/home.html +115 -0
  17. data/_layouts/post.html +117 -0
  18. data/_sass/common.scss +4480 -0
  19. data/_sass/header.scss +622 -0
  20. data/_sass/post.scss +362 -0
  21. data/_sass/syntax.scss +191 -0
  22. data/assets/css/bootstrap.min.css +6 -0
  23. data/assets/css/font-awesome.min.css +4 -0
  24. data/assets/css/styles.scss +6 -0
  25. data/assets/fonts/FontAwesome.otf +0 -0
  26. data/assets/fonts/amarillo/AmarilloUSAF.svg +181 -0
  27. data/assets/fonts/amarillo/AmarilloUSAF.ttf +0 -0
  28. data/assets/fonts/amarillo/AmarilloUSAF.woff +0 -0
  29. data/assets/fonts/amarillo/amarillo-font.css +18 -0
  30. data/assets/fonts/amarillo/amarurgt.eot +0 -0
  31. data/assets/fonts/amarillo/amarurgt.woff2 +0 -0
  32. data/assets/fonts/fontawesome-webfont.eot +0 -0
  33. data/assets/fonts/fontawesome-webfont.svg +2671 -0
  34. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  35. data/assets/fonts/fontawesome-webfont.woff +0 -0
  36. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  37. data/assets/img/banner.gif +0 -0
  38. data/assets/img/logo_Nest.png +0 -0
  39. data/assets/img/switcher.png +0 -0
  40. data/assets/js/archive.min.js +5 -0
  41. data/assets/js/imagesLoaded-3.1.8.js +9434 -0
  42. data/assets/js/imagesLoaded-4.1.4.js +497 -0
  43. data/assets/js/jquery-3.5.1.min.js +2 -0
  44. data/assets/js/mermaid.min.js +31 -0
  45. data/assets/js/script.js +216 -0
  46. data/assets/js/slick.min.js +1 -0
  47. metadata +116 -0
@@ -0,0 +1,91 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+
6
+ <!--
7
+ Credits: this page shamelessly borrowed a lot from:
8
+ https://github.com/kitian616/jekyll-TeXt-theme
9
+ -->
10
+ <!-- Page Header -->
11
+
12
+
13
+
14
+ <!-- Main Content -->
15
+ <section style="height:100px"></section>
16
+ <div class="container">
17
+ <div class="row">
18
+ <div class="col-md">
19
+ <!-- Tags (as filter) -->
20
+ <div id='tag_cloud' class="d-flex flex-wrap js-tags">
21
+ <a class="tag-button--all" data-encode="" href="{{site.baseurl }}/archive.html">
22
+ <b>Show All</b>
23
+ <sup>{{site.posts.size}}</sup>
24
+ </a>
25
+
26
+ {% capture tags %}
27
+ {% for tag in site.tags %}
28
+ <a
29
+ href="archive.html?tag={{ tag[0] }}"
30
+ data-sort="{{ site.posts.size | minus: tag[1].size | prepend: '0000' | slice: -4, 4 }}"
31
+ data-encode="{{ tag[0] | strip | url_encode }}"
32
+ class="tag-button"
33
+ title="{{ tag[0] }}" rel="{{ tag[1].size }}">
34
+ {{ tag[0] }}
35
+ <sup>{{tag[1].size}}</sup>
36
+ </a>
37
+ {% endfor %}
38
+ {% endcapture %}
39
+ {{ tags | split:'</a>' | sort | join:'</a>' }}
40
+ </div>
41
+ <section style="height:100px"></section>
42
+ <!-- Article List -->
43
+ <div class="mini-post-list js-result d-none">
44
+ {%- assign _sorted_list = site.posts -%}
45
+ {%- assign _sorted_list = _sorted_list | sort: 'date' -%}
46
+ {%- assign _sorted_list = _sorted_list | reverse -%}
47
+
48
+
49
+ {%- for _article in _sorted_list -%}
50
+ {%- assign _tags = '' -%}
51
+ {%- for _tag in _article.tags -%}
52
+ {%- assign _tag_encode = _tag | strip | url_encode -%}
53
+ {%- if forloop.last -%}
54
+ {%- assign _tags = _tags | append: _tag_encode -%}
55
+ {%- else -%}
56
+ {%- assign _tags = _tags | append: _tag_encode | append: ',' -%}
57
+ {%- endif -%}
58
+ {%- endfor -%}
59
+
60
+ {% comment %} group by year {% endcomment %}
61
+ {%- assign _currentdate = _article.date | date: '%Y' -%}
62
+ {%- if _currentdate != _date -%}
63
+ {%- unless forloop.first -%}</section>{%- endunless -%}
64
+ <section>
65
+ <span class="fa listing-seperator">
66
+ <span class="tag-text"><h3>{{ _currentdate }}</h3></span>
67
+ </span>
68
+ {%- assign _date = _currentdate -%}
69
+ {%- endif -%}
70
+
71
+ <div class="post-preview item" data-tags="{{ _tags }}">
72
+ <a href="{{ _article.url | prepend: site.baseurl }}">
73
+
74
+ <h3 class="post-title">
75
+ {{ _article.title }}
76
+ </h3>
77
+ {% if _article.subtitle %}
78
+ <h4 class="post-subtitle">
79
+ {{ _article.subtitle }}
80
+ </h4>
81
+ {% endif %}
82
+ </a>
83
+ <hr>
84
+
85
+ </div>
86
+ {% endfor %}
87
+ </div>
88
+ </div>
89
+ </div>
90
+ <script src='{{ "/assets/js/archive.min.js " | prepend: site.baseurl }}'></script>
91
+
@@ -0,0 +1,115 @@
1
+ ---
2
+ # Feel free to add content and custom Front Matter to this file.
3
+ # To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
4
+
5
+ layout: default
6
+
7
+ ---
8
+ <style>
9
+ .home-message{
10
+
11
+ margin-top:50px!important;/*Only works in home.html*/
12
+ min-width: auto !important;
13
+ }
14
+ </style>
15
+ <section style="height: 120px;"></section>
16
+ {% for post in site.posts %}
17
+ {% if post.sticky and paginator.page==1%}
18
+
19
+
20
+ <section class="home-message js-fadein">
21
+ <div class="home-message__ttl">
22
+ <a href="{{ post.url | prepend: site.baseurl }}" >
23
+ {% if post.status %}
24
+ <h2>
25
+ <b>[Pinned] </b>{{ post.title }}<sup>[{{post.status}}]</sup>
26
+ </h2>
27
+ {% else %}
28
+ <h2>
29
+ <b>[Pinned] </b>{{ post.title }}
30
+ </h2>
31
+ {% endif %}
32
+ {% if post.subtitle %}
33
+ <p class="u-txt__label">
34
+ {{ post.subtitle }}
35
+ </p>
36
+ {% endif %}
37
+
38
+ <div class="post-content-preview">
39
+ <p class="u-txt__label">
40
+ {% if post.lang == 'en' %}
41
+ {{ post.content | strip_html | truncate:300 }}
42
+ {% else %}
43
+ {{ post.content | strip_html | truncate:200 }}
44
+ {% endif %}
45
+ </p>
46
+ </div>
47
+
48
+ </a>
49
+ </div>
50
+ <p class="post-meta">
51
+ Posted by {% if post.author %}{{ post.author }}{% else %}{{ site.title }}{% endif %} on {{ post.date | date: "%B %-d, %Y" }}
52
+ </p>
53
+ </section>
54
+ <hr>
55
+ {% endif %}{% endfor %}
56
+
57
+
58
+
59
+
60
+
61
+ {% for post in paginator.posts %}{% unless post.sticky %}
62
+ {% unless post.hide %}
63
+ <section class="home-message js-fadein">
64
+ <div class="home-message__ttl">
65
+ <a href="{{ post.url | prepend: site.baseurl }}" >
66
+ {% if post.status %}
67
+ <h2>
68
+ {{ post.title }}<sup>[{{post.status}}]</sup>
69
+ </h2>
70
+ {% else %}
71
+ <h2>
72
+ {{ post.title }}
73
+ </h2>
74
+ {% endif %}
75
+ {% if post.subtitle %}
76
+ <p class="u-txt__label">
77
+ {{ post.subtitle }}
78
+ </p>
79
+ {% endif %}
80
+
81
+ <div class="post-content-preview">
82
+ <p class="u-txt__label">
83
+ {% if post.lang == 'en' %}
84
+ {{ post.content | strip_html | truncate:300 }}
85
+ {% else %}
86
+ {{ post.content | strip_html | truncate:200 }}
87
+ {% endif %}
88
+ </p>
89
+ </div>
90
+
91
+ </a>
92
+ </div>
93
+ <p class="post-meta">
94
+ Posted by {% if post.author %}{{ post.author }}{% else %}{{ site.title }}{% endif %} on {{ post.date | date: "%B %-d, %Y" }}
95
+ </p>
96
+ </section>
97
+ <hr>
98
+ {%endunless%}
99
+ {% endunless %}{% endfor %}
100
+
101
+ <!-- Pager -->
102
+ {% if paginator.total_pages > 1 %}
103
+ <ul class="pager" style="text-align: center;list-style-type:none">
104
+ {% if paginator.previous_page %}
105
+ <li class="previous">
106
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
107
+ </li>
108
+ {% endif %}
109
+ {% if paginator.next_page %}
110
+ <li class="next">
111
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
112
+ </li>
113
+ {% endif %}
114
+ </ul>
115
+ {% endif %}
@@ -0,0 +1,117 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+
6
+
7
+ {%if page.mathjax != false %}
8
+ <script type="text/x-mathjax-config">
9
+ MathJax.Hub.Config({
10
+ tex2jax: {
11
+ skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
12
+ inlineMath: [['$','$']]
13
+ }
14
+ });
15
+ </script>
16
+ <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
17
+ </script>
18
+ {%endif%}
19
+
20
+
21
+ <section id="front-wedge" style="height: 0px;"></section>
22
+ {% if page.toc != false %}
23
+ <div class="sidebar_catelog sticky-top"></div>
24
+ {% endif %}
25
+ <section class="js-fadein main-body">
26
+
27
+ <div class="home-message__ttl" style="text-align: left;">
28
+ <h1>
29
+ {% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}
30
+
31
+ {% if page.status%}<sup>[{{page.status}}]</sup>{%endif%}
32
+ <a class="edit-button" href="{{site.repo_url}}/blob/master/{{page.path}}" title="Edit on GitHub"><i
33
+ class="fa fa-edit"></i></a>
34
+ <!-- <a class="download tbutton" href="{{site.url}}/{{page.path}}">Download</a> -->
35
+ </h1>
36
+ <h4 class="subheading">{{ page.subtitle }}</h4>
37
+
38
+ {% if page.last-modify %}
39
+ <span class="meta">Last modified by <i>{% if page.author %}{{ page.author }}{% else %}{{ site.title }}{% endif
40
+ %}</i> on {{page.last-modify | date: "%B %-d, %Y"}}
41
+
42
+ {% else %}
43
+ <span class="meta">Posted by <i>{% if page.author %}{{ page.author }}{% else %}{{ site.title }}{% endif
44
+ %}</i> on {{ page.date | date: "%B %-d, %Y" }}
45
+
46
+ {% endif %}
47
+
48
+
49
+ </span><i class="fa fa-tags"></i>
50
+
51
+ {% for tag in page.tags %}
52
+ <a class="tag" href="{{ site.baseurl }}/archive.html?tag={{ tag | url_encode }}" title="{{ tag }}">{{ tag
53
+ }}</a>
54
+ {% endfor %}
55
+
56
+ </div>
57
+
58
+ <div class="container">
59
+ {% if page.toc == "inline" %}
60
+ <div>
61
+ {% include toc.html html=content class='toc' h_max=3 %}
62
+ </div>
63
+ {% endif %}
64
+ {% if page.toc != false and page.toc != "inline"%}
65
+ <div id="table-of-contents">
66
+ {% include toc.html html=content class='toc' h_max=3 %}
67
+ </div>
68
+ {% endif %}
69
+ <div id="markdown-content">
70
+
71
+ <!-- custom banner -->
72
+ {% if page.banner-title%}
73
+ <div class="d-flex banner">
74
+ <img src="/assets/img/banner.gif" class="black-white-image p-2 flex-fill bd-highlight banner-image">
75
+ <div class="p-2 flex-fill bd-highlight ">
76
+ <h1 class="banner-text">{{page.banner-title}}</h1>
77
+ <p class="banner-text">{{page.banner-subtitle}}</p>
78
+ </div>
79
+ </div>
80
+ {%endif%}
81
+ <!-- custom banner -->
82
+ <!-- expired banner -->
83
+ {% capture post_date%}{{ page.date | date: "%Y" }}{%endcapture%}
84
+ {% capture curr_date%}{{ "now" | date: "%Y" }}{%endcapture%}
85
+ {% assign curr_date = curr_date | minus: post_date %}
86
+ {% capture time %}{{curr_date|minus: post_date}}{%endcapture%}
87
+ {% if curr_date>1 %}
88
+ <div class="d-flex banner">
89
+ <img src="/assets/img/banner.gif" class="warning-image p-2 flex-fill bd-highlight banner-image">
90
+ <div class="p-2 flex-fill bd-highlight ">
91
+ <h1 class="banner-text" style="color: #e83e8c !important;"><i class="fa fa-exclamation-triangle"
92
+ style="color: #e83e8c !important;font-size: 2.5rem;" aria-hidden="true"></i> Expired</h1>
93
+ <p class="banner-text">Post published over one year ago</p>
94
+ </div>
95
+ </div>
96
+ {%endif%}
97
+
98
+ <!-- expired banner -->
99
+ <!-- WIP banner -->
100
+ {%if page.status == "WIP"%}
101
+ <div class="d-flex banner">
102
+ <img src="/assets/img/banner.gif" class="black-white-image p-2 flex-fill bd-highlight banner-image">
103
+ <div class="p-2 flex-fill bd-highlight ">
104
+ <h1 class="banner-text">Work in progress</h1>
105
+ <p class="banner-text"><i class="fa fa-spinner" aria-hidden="true"></i>This post will be updated
106
+ soon</p>
107
+ </div>
108
+ </div>
109
+ {%endif%}
110
+ <!-- WIP banner -->
111
+
112
+ {{ content }}
113
+ </div>
114
+
115
+ </div>
116
+
117
+ </section>