jekyll-theme-panda 0.2.3 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e59d404b286bd5fa89078133e278f69baa47e9ef51ac570dc11f1a9440ecad28
4
- data.tar.gz: 59dc7f7b93d81f3f098646624b47b1a810ec05280002b4370db5b0602f134b81
3
+ metadata.gz: 5c1b67b32284f7ea78800b6604711a9096dbae9f6ffd1b07d783443b8e41f61d
4
+ data.tar.gz: ce3f07c3ac02bed548d7de1f96477bd1e022e2175ed1027a391515358588aba0
5
5
  SHA512:
6
- metadata.gz: 33e397bc773129dd407c6938c351492c7d82b35cd0c153437633f42f311039a4513cc6cc2adc389479bd2734c29ce78af36468134010c97357488ec3ad0b3398
7
- data.tar.gz: dceebe71a50e598e568c0f27f5138191eb30bd0f1619244b1f7edf3bc80964ee261d706cbabcda213c890e798ff90fb3ba015c1fa32ed6c0aaf495f096d79e65
6
+ metadata.gz: edf02c9389f5f2086a7ffdd8210732752250ddba1810804093f3afe90e027d5cc7389fae0b4a2a69afc75cb6a56c31802c88918b6f470bb423b8ad1d07998e4b
7
+ data.tar.gz: 1861af9b83b470904ec538c9b51513b0856f84c230a7256cba64d2bd2cd7b8bf6cd87e034fdd42d01ebfd59477ec113b657bff2c65aaa4212227df69bfb7943c
data/README.md CHANGED
@@ -1,15 +1,16 @@
1
1
  # jekyll-theme-panda
2
2
 
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)
3
+ [![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-white.svg)](https://sonarcloud.io/summary/new_code?id=sorphwer_jekyll-theme-panda)
4
+
5
+ [![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) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sorphwer_jekyll-theme-panda&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=sorphwer_jekyll-theme-panda)
4
6
 
5
7
  Theme Showcase : [RiinoSite - Jeklyy-Theme-Panda](https://riino.site/jekyll-theme-panda/)
6
8
 
7
- DEMO 1: [RiinoSite Blog](https://riino.site/)
9
+ DEMO: [RiinoSite Blog](https://riino.site/)
10
+
8
11
 
9
- DEMO 2: [low illuminance](https://li.riino.site/)
10
12
 
11
13
 
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
 
14
15
  [TOC]
15
16
 
@@ -80,6 +81,7 @@ banner-title: THEME DOC #optional
80
81
  banner-subtitle: Readme.md #optional, must be with banner-title
81
82
  never-expired: false #default fause, if ture , expired banner will not display
82
83
  # toc options: inline, true, false
84
+ render_with_liquid: true #default: true, set as false to disable liquid
83
85
  ---
84
86
  ```
85
87
 
data/_config.yml CHANGED
@@ -4,10 +4,10 @@ title: jekyll-theme-panda
4
4
  author: riino
5
5
  email: riino@gmail.com
6
6
  SEOTitle: jekyll-theme-panda demo
7
- baseurl: "" # the subpath of your site, e.g. /blog
7
+ baseurl: "/jekyll-theme-panda" # the subpath of your site, e.g. /blog
8
8
  url: "https://riino.site" # the base hostname & protocol for your site, e.g. http://example.com
9
- twitter_username: twitter_name
10
- github_username: github_name
9
+ twitter_username: sorphwer
10
+ github_username: sorphwer
11
11
  github_url: https://github.com/sorphwer
12
12
  repo_url: https://github.com/sorphwer/jekyll-theme-panda
13
13
  theme_version: 0.2.2
@@ -26,6 +26,7 @@ plugins:
26
26
  - jekyll-feed
27
27
  - jekyll-paginate
28
28
  - jemoji
29
+ - jekyll-seo-tag
29
30
  paginate: 10
30
31
 
31
32
  toc:
@@ -55,9 +56,9 @@ navigation:
55
56
 
56
57
  dropdown_header: Theme #will only exist if dropdown array below has item(s)
57
58
  dropdown:
58
- - text: Blog
59
+ - text: BLOG
59
60
  url: https://riino.site
60
- - text: Photo
61
+ - text: LOW ILLU.
61
62
  url: https://li.riino.site
62
63
 
63
64
  footer_text:
@@ -65,6 +66,8 @@ footer_text:
65
66
  - Image and animte assets &copy by <a href="https://li.riino.site"><i>Low illuminance</i></a>
66
67
  - All Rights Reserved.
67
68
 
69
+ footer_html: <a href="{{ site.baseurl }}/feed.xml">RSS Subscribe |</a><span></span><a href="{{ site.baseurl }}/policy/">Policy</a>
70
+
68
71
  hoster_logo: /assets/img/logo_Nest.png
69
72
  hoster_logo_link: https://github.com/sorphwer
70
73
  hoster_logo_alt: Github
@@ -72,6 +75,8 @@ hoster_text:
72
75
  - Nest of Etamine - 10th Anniversary
73
76
  - 2012-2022
74
77
 
78
+ optional_footer_html_code:
79
+
75
80
  # Exclude from processing.
76
81
  # The following items will not be processed, by default. Create a custom list
77
82
  # to override the default setting.
@@ -1,8 +1,10 @@
1
1
  <footer class="js-fadein">
2
2
  <div class="footer__link">
3
3
  <p>
4
- <a href="{{ site.baseurl }}/feed.xml">RSS Subscribe</a><span>/</span><a href="{{ site.baseurl }}/policy/">Policy</a>
5
- </p>
4
+
5
+ {{ site.footer_html }}
6
+
7
+ </p>
6
8
  </div>
7
9
  <!-- .footer__link -->
8
10
  <div class="footer__copy">
@@ -21,6 +23,7 @@
21
23
  <small>{{item}}</small>
22
24
  {% endfor %}
23
25
  {% endif %}
26
+ <!-- {% include search.html %} -->
24
27
  </div>
25
28
  <!-- .footer__copy -->
26
29
  </footer>
data/_includes/head.html CHANGED
@@ -1,5 +1,5 @@
1
1
  <head>
2
-
2
+
3
3
  <meta property="og:title"
4
4
  content="{% if page.title %}{{ page.title }} - {{ site.SEOTitle }}{% else %}{{ site.SEOTitle }}{% endif %}">
5
5
  {% case page.layout %}
@@ -26,6 +26,8 @@
26
26
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
27
27
  <title>{% if page.title %}{{ page.title }} - {{ site.SEOTitle }}{% else %}{{ site.SEOTitle }}{% endif %}</title>
28
28
 
29
+ <!-- favicon -->
30
+ <link rel="shortcut icon" type="image/png" href="{{ site.baseurl | append: "/favicon.ico"}}">
29
31
  <!-- preload -->
30
32
 
31
33
  <!--CSS inside-->
@@ -54,7 +56,7 @@
54
56
  <script async
55
57
  type="text/javascript"
56
58
  src='{{ "/assets/js/mermaid.min.js" | prepend: site.baseurl }}'
57
- onload="mermaid.init(undefined, $('.language-mermaid'));"></script>
59
+ onload="mermaid.init(undefined, $('.language-mermaid'));console.log('mermaid.js is loaded')"></script>
58
60
  <!-- <script type="text/javascript" src='{{ "/assets/js/skrollr-0.6.3.js" | prepend: site.baseurl }}'></script> -->
59
61
  <!-- slick plugin -->
60
62
  <script defer type="text/javascript" src='{{ "/assets/js/slick.min.js" | prepend: site.baseurl }}'></script>
@@ -60,14 +60,14 @@
60
60
  </nav><!-- .header__sns -->
61
61
  <div class="header__logo sp">
62
62
  <a href="../">
63
- <p class="header__logoTxt black-white-image"><img src="{{ site.url }}/assets/img/logo_Nest.png"
63
+ <p class="header__logoTxt black-white-image"><img src="{{ site.baseurl }}/assets/img/logo_Nest.png"
64
64
  alt="Riino BLOG"></p>
65
65
  </a>
66
66
  </div><!-- .header__logo -->
67
67
 
68
68
  <div class="header__logo sp" style="margin-left: 20px;" onclick="modeSwitcher()">
69
69
  <a href="javascript:void(0);">
70
- <p class="header__logoTxt black-white-image"><img src="{{ site.url }}/assets/img/switcher.png"
70
+ <p class="header__logoTxt black-white-image"><img src="{{ site.baseurl }}/assets/img/switcher.png"
71
71
  alt="Riino BLOG"></p>
72
72
  </a>
73
73
  </div><!-- .swithcer__logo -->
@@ -4,6 +4,7 @@
4
4
  href="https://riino.site/jekyll-search-bar/search/css/search.css">
5
5
  <script defer type="text/javascript" src='https://riino.site/jekyll-search-bar/search/js/typeahead.bundle.js'></script>
6
6
  <script defer type="text/javascript" src='https://riino.site/jekyll-search-bar/search/js/fuzzyset.js'></script>
7
- <script type="text/javascript"
7
+ <script sync
8
+ type="text/javascript"
8
9
  src='https://riino.site/jekyll-search-bar/search/js/search.js'
9
- onload="document.write(searchBarHtml('https://riino.site'));"></script>
10
+ onload="document.write(searchBarHtml('https://riino.site'));setSearchJsonBaseURL('{{site.baseurl}}')"></script>
data/_layouts/post.html CHANGED
@@ -2,13 +2,9 @@
2
2
  layout: default
3
3
  ---
4
4
  {%if page.mathjax != false %}
5
- <!-- <script type="text/javascript" id="MathJax-script" async
6
- src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.1/es5/tex-chtml-full.min.js">
7
- </script> -->
8
-
9
- <link rel="stylesheet" href="{{ "assets/css/prism.css" | prepend: site.baseurl }}">
10
- <script src="{{ "assets/js/prism.js" | prepend: site.baseurl }}"></script>
11
- <script type="text/javascript" id="MathJax-script" async src="{{ "assets/js/tex-chtml-full.min.js" | prepend: site.baseurl }}"></script>
5
+ <link rel="stylesheet" href="{{ "/assets/css/prism.css" | prepend: site.baseurl }}">
6
+ <script src="{{ "/assets/js/prism.js" | prepend: site.baseurl }}"></script>
7
+ <script type="text/javascript" id="MathJax-script" async src="{{ "/assets/js/tex-chtml-full.min.js" | prepend: site.baseurl }}"></script>
12
8
  <script>MathJax = {
13
9
  tex: {
14
10
  inlineMath: [['$', '$'], ['\\(', '\\)']]
@@ -17,25 +13,12 @@ layout: default
17
13
  fontCache: 'global'
18
14
  }
19
15
  };</script>
20
- <!-- <script type="text/x-mathjax-config">
21
- MathJax.Hub.Config({
22
- tex2jax: {
23
- skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
24
- inlineMath: [ ['$','$'], ["\\(","\\)"] ],
25
- }
26
- });
27
- </script> -->
28
- {%endif%}
29
- <!-- {%if page.mathjax != false %}
30
- <script
31
- type="text/javascript"
32
- async
33
- src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
34
- onload="MathJax.Hub.Config({tex2jax: {skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],inlineMath: [['$','$']]}});"
35
- </script>
36
- {%endif%} -->
37
-
16
+ {%endif%}
38
17
 
18
+ {% if page.auto-convert-img %}
19
+ <script src="{{ "/assets/js/typora2jekyll.js" | prepend: site.baseurl }}"></script>
20
+ {% endif %}
21
+ <!-- <script src="{{ "/assets/js/typora2jekyll.js" | prepend: site.baseurl }}"></script> -->
39
22
  <section id="front-wedge" style="height: 0px;"></section>
40
23
  {% if page.toc != false %}
41
24
  <div class="sidebar_catelog sticky-top"></div>
@@ -89,7 +72,7 @@ layout: default
89
72
  <!-- custom banner -->
90
73
  {% if page.banner-title%}
91
74
  <div class="d-flex banner">
92
- <img src="/assets/img/banner.gif" class="black-white-image p-2 flex-fill bd-highlight banner-image">
75
+ <img src="{{ site.baseurl | append: "/assets/img/banner.gif"}}" class="black-white-image p-2 flex-fill bd-highlight banner-image">
93
76
  <div class="p-2 flex-fill bd-highlight ">
94
77
  <h1 class="banner-text">{{page.banner-title}}</h1>
95
78
  <p class="banner-text">{{page.banner-subtitle}}</p>
@@ -0,0 +1,5 @@
1
+ $(function() {
2
+ $("#markdown-content img").each(function(){
3
+ $(this).attr("src", $(this).attr('src').slice(2))
4
+ });
5
+ });
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.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - riino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-04 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -110,7 +110,8 @@ files:
110
110
  - assets/js/script.js
111
111
  - assets/js/slick.min.js
112
112
  - assets/js/tex-chtml-full.min.js
113
- homepage: https://riino.site/2020/03/01/welcome-to-jekyll.html
113
+ - assets/js/typora2jekyll.js
114
+ homepage: https://riino.site/jekyll-theme-panda/
114
115
  licenses:
115
116
  - MIT
116
117
  metadata: {}