jekyll-theme-panda 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c910f1241a52aafbcb2badc0c18b7315a75215d0b565b3816c01c73c2b7c69a7
4
- data.tar.gz: a9174383fb7db2555c5546e8b4a3eba52abf518a94f7c845968f6ee6e8cf85c7
3
+ metadata.gz: f304b9318a60fe034bfe665ea67cc9ed91bd39219f8d7376d878c67248433877
4
+ data.tar.gz: ed82b499e975bcdc4bd79574158a26c69643ac4af513459349029f4413033c73
5
5
  SHA512:
6
- metadata.gz: 627758c87f4873112287f26007c2fee03d6808bbb2d67d7d8fbb857da45e5e033050ec026670c9d5adc677b0a4b1b18fbbcda59c19ad26fdfb895c832fe3c367
7
- data.tar.gz: b502401b766beddadefde7586cbc520cda1bc9bfed944c5ac553cd6520139682c9b0e8bd3b3f0ba021206c1c6e58e59c727c7521bfcb5198a174cf98748c55fa
6
+ metadata.gz: 3a0bf61e0cb3fd81f8e10a92fb866f1a5ee6b58521e0dad8a1d2c05442d4e6ce00f6f8e9e4daa959b940f6dc8cb5d59a25bf680cbf4ef1a9ef17d273b3b24bc8
7
+ data.tar.gz: e6ca3016e06d8a8f5e4a803df30c64d3f6f7b7be7005e8864178cb4851f809302e24776938da2a685b58bdbdee6a8b39d1057e22879e47b9dc609dc8d718e4ae
data/README.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/jekyll-theme-panda.svg)](https://badge.fury.io/rb/jekyll-theme-panda) ![](https://ruby-gem-downloads-badge.herokuapp.com/jekyll-theme-panda?type=total)
4
4
 
5
+ Theme Showcase : [RiinoSite - Jeklyy-Theme-Panda](https://riino.site/jekyll-theme-panda/)
6
+
7
+ DEMO 1: [RiinoSite Blog](https://riino.site/)
8
+
9
+ DEMO 2: [low illuminance](https://li.riino.site/)
10
+
11
+
12
+ **! Notes: Currently the mathjax.js might be unavailable in your blog, please use it locally or change CDN url in your own projects. We will fix this in next version.**
13
+
14
+ [TOC]
15
+
5
16
  ## Installation
6
17
 
7
18
  ### Choice 1 : Set up via jekyll-remote-theme
@@ -33,7 +44,7 @@ And then execute:
33
44
  Or install it yourself as:
34
45
 
35
46
  $ gem install jekyll-theme-panda
36
-
47
+
37
48
  ### Choice 3 : Directly use this repo
38
49
 
39
50
  Clone this repo or download this repo in your computer, then edit files in `_post` and edit `_config.yml`.
@@ -44,25 +55,97 @@ permalink: /:year-:month-:day-:title:output_ext
44
55
  ```
45
56
  **Since navigation header uses relative path in default situation**
46
57
 
47
- ## Usage
58
+ ## YAML front matter example
59
+
60
+ ### post
61
+
62
+ ```yaml
63
+ ---
64
+ layout: post
65
+ title: "Theme Showcase"
66
+ subtitle: "Features and yaml configuration demo" #optional
67
+ author: "RiinoSite" #optional
68
+ date: 2020-03-01 17:08:09 +0800
69
+ tags: #optional
70
+ - jekyll
71
+ - doc
72
+ status: doc #optional,if status is 'WIP', will display a WIP banner
73
+ last-modify: 2020-07-10 10:30:00 +0000 #optional
74
+ toc: true #default: true
75
+ sticky : true #default: false
76
+ hide: false #default: false (hide from Home page only)
77
+ mathjax: true #default: true
78
+ mermaid: true #default: true
79
+ banner-title: THEME DOC #optional
80
+ banner-subtitle: Readme.md #optional, must be with banner-title
81
+ # toc options: inline, true, false
82
+ ---
83
+ ```
84
+
85
+ ### album
86
+
87
+ ```yaml
88
+ ---
89
+ layout: album
90
+ title: Postcard Series 2019
91
+ hidden: true #must be true
92
+ description: ['text1','text2']
93
+ cover_number: 2 #determine which image will be the cover
94
+ photos:
95
+ - url: /img/albums/postcard/poster-1.jpg
96
+ description: photo description
97
+ - url: /img/albums/postcard/poster-11.jpg
98
+ description: photo description
99
+ ---
100
+ ```
101
+
102
+ ### preset
103
+
104
+ ```yaml
105
+ ---
106
+ layout: preset
107
+ title: Shilin Filter
108
+ cover_before: /img/presets/shilin/shilin_before.jpg
109
+ cover_after: /img/presets/shilin/shilin_after.jpg
110
+ hidden: true #must be true
111
+ description: ['text']
112
+ download_url: google.com
113
+ derivation: ['text']
114
+ derivation_img : ./img/presets/shilin/shilin_after_1.jpg
115
+ samples:
116
+ - title: 'Atmosphere adjustment'
117
+ subtitle: '冷たい雰囲気を与える'
118
+ img_url: '/img/presets/shilin/shilin_1.jpg'
119
+ img_text: '@ Twatutia, Taipei, 2019'
120
+ ---
121
+ ```
122
+
123
+
124
+
125
+ ## Toolkits
48
126
 
49
127
  ### Available layouts:
50
128
 
51
- | name | description | filename |
52
- | ---------- | ------------------- | --------------- |
53
- | default | default layout | default.html |
54
- | home | index page layout | home.html |
55
- | forarchive | archive page layout | forarchive.html |
56
- | post | post page layout | post.html |
129
+ | name | description | filename |
130
+ | ---------- | -------------------------------------------------------- | ------------------------ |
131
+ | default | default layout with contents in a `home-message` section | _layouts\default.html |
132
+ | home | index page layout | _layouts\home.html |
133
+ | forarchive | archive page layout | _layouts\forarchive.html |
134
+ | post | post page layout | _layouts\post.html |
135
+ | blank | default layout without `home-message` section | _layouts\blank.html |
136
+ | preset | preset introduction page layout | _layouts\preset.html |
137
+ | presetlist | presets page layout | _layouts\presetlist.html |
138
+ | album | album page layout | _layouts\album.html |
139
+ | albumlist | albums page layout | _layouts\albumlist.html |
57
140
 
58
141
  **Available includes(html):**
59
142
 
60
- | name | description | filename |
61
- | ------ | --------------------------------------------- | ----------- |
62
- | footer | footer component, can be edited in _config | footer.html |
63
- | head | head tag | home.html |
64
- | header | navigator component, can be edited in _config | header.html |
65
- | search | search bar plug-in | search.html |
143
+ | name | description | filename |
144
+ | ------ | --------------------------------------------- | --------------------- |
145
+ | footer | footer component, can be edited in _config | _includes\footer.html |
146
+ | head | head tag | _includes\home.html |
147
+ | header | navigator component, can be edited in _config | _includes\header.html |
148
+ | search | search bar plug-in | _includes\search.html |
66
149
 
67
150
  **Available includes(md):**
68
151
 
@@ -87,6 +170,8 @@ We suggest fork this repo and set it as your own **remote_theme** to modify this
87
170
 
88
171
  `jekyll-theme-panda` is currently use [jekyll-search-bar](https://github.com/sorphwer/jekyll-search-bar) hosted in riino.site in default mode. To modify this search tool, please check the corresponding github page.
89
172
 
173
+ Notice: Search tool can only be used within `post` type posts. To disable search tool, create a blank `search.json` in your root.
174
+
90
175
  ## License
91
176
 
92
177
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/_config.yml CHANGED
@@ -48,12 +48,12 @@ navigation:
48
48
  - text: profile
49
49
  url: ./about/
50
50
 
51
- dropdown_header: BLOG #will only exist if dropdown array below has item(s)
51
+ dropdown_header: Theme #will only exist if dropdown array below has item(s)
52
52
  dropdown:
53
- - text: drop1.
54
- url: example.com
55
- - text: drop2.
56
- url: example.com
53
+ - text: Blog
54
+ url: https://riino.site
55
+ - text: Photo
56
+ url: https://li.riino.site
57
57
 
58
58
  footer_text:
59
59
  - jekyll-theme-panda demo by Riino
@@ -37,7 +37,7 @@
37
37
  <div class="navi__langList">
38
38
  {% for item in site.dropdown %}
39
39
 
40
- <span><a href="{{item.link}}">{{item.text}}</a></span>
40
+ <span><a href="{{item.url}}">{{item.text}}</a></span>
41
41
 
42
42
  {% endfor %}
43
43
  </div>
data/_layouts/post.html CHANGED
@@ -1,19 +1,26 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
-
5
- <script rel="preload" as="script"
6
- src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js">
7
- </script>
8
-
9
4
  {%if page.mathjax != false %}
5
+ <script async src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
6
+ <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
7
+ <script>window.MathJax = {
8
+ tex: {
9
+ inlineMath: [['$', '$'], ['\\(', '\\)']]
10
+ },
11
+ svg: {
12
+ fontCache: 'global'
13
+ }
14
+ };</script>
15
+ {%endif%}
16
+ <!-- {%if page.mathjax != false %}
10
17
  <script
11
18
  type="text/javascript"
12
19
  async
13
20
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
14
21
  onload="MathJax.Hub.Config({tex2jax: {skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],inlineMath: [['$','$']]}});"
15
22
  </script>
16
- {%endif%}
23
+ {%endif%} -->
17
24
 
18
25
 
19
26
  <section id="front-wedge" style="height: 0px;"></section>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-panda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - riino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-01 00:00:00.000000000 Z
11
+ date: 2021-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll