jekyll-theme-panda 0.2.3 → 0.2.6

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: 3de81689c19fd28338533a42bba68a1239e968b69c193dfd0c7e2ccdd406c7fa
4
+ data.tar.gz: 8ceeb4ffd77fc62baa321edadfed941a66762dae6c98043d430c9855c2c50f09
5
5
  SHA512:
6
- metadata.gz: 33e397bc773129dd407c6938c351492c7d82b35cd0c153437633f42f311039a4513cc6cc2adc389479bd2734c29ce78af36468134010c97357488ec3ad0b3398
7
- data.tar.gz: dceebe71a50e598e568c0f27f5138191eb30bd0f1619244b1f7edf3bc80964ee261d706cbabcda213c890e798ff90fb3ba015c1fa32ed6c0aaf495f096d79e65
6
+ metadata.gz: 071b778e868d1926e52308939311b4a3aa386146cc21676665ddb4f17ac1ed6f01cb428f5b6d9f1b64cecb0aef57b6f2f28dd6a26fd2e8154232b982a336a9a8
7
+ data.tar.gz: 3742c550c3cfc70cdd4b9903493cfb392584276771dd976ab8d29050dccb745ee751d803e7b22bd4556dc7cd96a65edb8f59b21ba1f4a6acc28fbc8606c22992
data/README.md CHANGED
@@ -1,15 +1,12 @@
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
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/)
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)
10
6
 
7
+ Theme Showcase : [RiinoSite - Jeklyy-Theme-Panda](https://riino.site/jekyll-theme-panda/)
11
8
 
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.**
9
+ DEMO: [RiinoSite Blog](https://riino.site/)
13
10
 
14
11
  [TOC]
15
12
 
@@ -80,6 +77,7 @@ banner-title: THEME DOC #optional
80
77
  banner-subtitle: Readme.md #optional, must be with banner-title
81
78
  never-expired: false #default fause, if ture , expired banner will not display
82
79
  # toc options: inline, true, false
80
+ render_with_liquid: true #default: true, set as false to disable liquid
83
81
  ---
84
82
  ```
85
83
 
data/_config.yml CHANGED
@@ -4,13 +4,13 @@ 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
- theme_version: 0.2.2
13
+ theme_version: 0.2.5
14
14
  permalink: /:year-:month-:day-:title:output_ext
15
15
  # Build settings
16
16
  # markdown: kramdown
@@ -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:
@@ -37,34 +38,37 @@ sass:
37
38
 
38
39
  navigation:
39
40
  - text: Blogs
40
- url: /index.html
41
+ url: index.html
41
42
  layout: home
42
43
  - text: Archive
43
- url: /archive
44
+ url: archive
44
45
  layout: forarchive
45
46
  - text: Albums
46
- url: /albums
47
+ url: albums
47
48
  layout: albumlist
48
49
  - text: Presets
49
- url: /presets
50
+ url: presets
50
51
  layout: presetlist
51
- # - text: Visios
52
- # url: ./visios
52
+ - text: About
53
+ url: About1
54
+ layout: about
55
+
53
56
 
54
57
 
55
58
 
56
59
  dropdown_header: Theme #will only exist if dropdown array below has item(s)
57
60
  dropdown:
58
- - text: Blog
61
+ - text: BLOG
59
62
  url: https://riino.site
60
- - text: Photo
61
- url: https://li.riino.site
63
+
62
64
 
63
65
  footer_text:
64
66
  - jekyll-theme-panda demo by Riino
65
- - 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
+
71
+ banner_img: /assets/img/banner.gif
68
72
  hoster_logo: /assets/img/logo_Nest.png
69
73
  hoster_logo_link: https://github.com/sorphwer
70
74
  hoster_logo_alt: Github
@@ -72,6 +76,7 @@ hoster_text:
72
76
  - Nest of Etamine - 10th Anniversary
73
77
  - 2012-2022
74
78
 
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 +1,7 @@
1
- Post your profile here
1
+ This is the demo page of `jekyll-theme-panda`
2
+
3
+ https://riino.site this the main website that is using this theme.
4
+
5
+ For more information, source code, installation, please visit https://github.com/sorphwer/jekyll-theme-panda
6
+
7
+ You can modify the content of demo page freely.
@@ -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 %}
@@ -20,12 +20,14 @@
20
20
  <meta property="og:description"
21
21
  content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
22
22
  {% endcase %}
23
- <meta property="og:image" content="{{ site.url }}{{ site.sidebar-avatar }}">
23
+ <meta property="og:image" content="{{ site.url }}{{ site.banner_img }}">
24
24
  <meta property="og:url" content="{{ site.url }}{{ page.url }}">
25
25
  <meta property="og:site_name" content="{{ site.SEOTitle }}">
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="setTimeout(mermaid.init(undefined, $('.language-mermaid')),1500);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>
@@ -25,6 +25,7 @@
25
25
  {% assign current = 'is-current is-active' %}
26
26
  {% endif %}
27
27
 
28
+
28
29
  <li class=" {{ current }} ">
29
30
  <a href="{{ link.url }}">{{ link.text }}</a>
30
31
  </li>
@@ -60,14 +61,14 @@
60
61
  </nav><!-- .header__sns -->
61
62
  <div class="header__logo sp">
62
63
  <a href="../">
63
- <p class="header__logoTxt black-white-image"><img src="{{ site.url }}/assets/img/logo_Nest.png"
64
+ <p class="header__logoTxt black-white-image"><img src="{{ site.baseurl }}/assets/img/logo_Nest.png"
64
65
  alt="Riino BLOG"></p>
65
66
  </a>
66
67
  </div><!-- .header__logo -->
67
68
 
68
69
  <div class="header__logo sp" style="margin-left: 20px;" onclick="modeSwitcher()">
69
70
  <a href="javascript:void(0);">
70
- <p class="header__logoTxt black-white-image"><img src="{{ site.url }}/assets/img/switcher.png"
71
+ <p class="header__logoTxt black-white-image"><img src="{{ site.baseurl }}/assets/img/switcher.png"
71
72
  alt="Riino BLOG"></p>
72
73
  </a>
73
74
  </div><!-- .swithcer__logo -->
@@ -157,4 +158,5 @@
157
158
 
158
159
  console.log('[↓]BEGIN');
159
160
  console.log("🐼This site is using jekyll-theme-panda ", "{{site.theme_version}}");
161
+
160
162
  </script>
@@ -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>
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: default
3
+ title: About
4
+ ---
5
+ <style>
6
+ img{
7
+ display: inline-block;
8
+
9
+ }
10
+ p img{
11
+ width: inherit !important;
12
+ }
13
+
14
+ </style>
15
+ <section style="height: 100px;"></section>
16
+ <div class="en post-container" id="markdown-content">
17
+ {% capture about_en %}{% include about/en.md %}{% endcapture %}
18
+ {{ about_en | markdownify }}
19
+ </div>
20
+
21
+ <!-- <section style="height: 50px;"> -->
data/_layouts/album.html CHANGED
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
+ <script src="{{ "/assets/js/album.js" | prepend: site.baseurl }}"></script>
4
5
  <body class="home blog lang-ja footer_mt">
5
6
  <section class="home-message js-fadein">
6
7
  <div class="home-message__ttl" id="whiteline">
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="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>
@@ -105,7 +88,7 @@ layout: default
105
88
  {% if curr_date>1 %}
106
89
  {% unless page.never-expired %}
107
90
  <div class="d-flex banner">
108
- <img src="/assets/img/banner.gif" class="warning-image p-2 flex-fill bd-highlight banner-image">
91
+ <img src="assets/img/banner.gif" class="warning-image p-2 flex-fill bd-highlight banner-image">
109
92
  <div class="p-2 flex-fill bd-highlight ">
110
93
  <h1 class="banner-text" style="color: #e83e8c !important;"><i class="fa fa-exclamation-triangle"
111
94
  style="color: #e83e8c !important;font-size: 2.5rem;" aria-hidden="true"></i> Expired</h1>
@@ -119,7 +102,7 @@ layout: default
119
102
  <!-- WIP banner -->
120
103
  {%if page.status == "WIP"%}
121
104
  <div class="d-flex banner">
122
- <img src="/assets/img/banner.gif" class="black-white-image p-2 flex-fill bd-highlight banner-image">
105
+ <img src="assets/img/banner.gif" class="black-white-image p-2 flex-fill bd-highlight banner-image">
123
106
  <div class="p-2 flex-fill bd-highlight ">
124
107
  <h1 class="banner-text">Work in progress</h1>
125
108
  <p class="banner-text"><i class="fa fa-spinner" aria-hidden="true"></i>This post will be updated
data/_sass/common.scss CHANGED
@@ -1,5 +1,5 @@
1
- @charset "UTF-8";
2
1
 
2
+ @charset "UTF-8";
3
3
  .u-beta {
4
4
  color: #11ffaa !important;
5
5
  }
@@ -0,0 +1,7 @@
1
+ $(function() {
2
+ $("img.album").each(function(){
3
+ if($(this).attr("src").startsWith("/")){
4
+ $(this).attr("src", $(this).attr('src').slice(1));
5
+ }
6
+ });
7
+ });
data/assets/js/script.js CHANGED
@@ -17,9 +17,8 @@ function pageTransition() {
17
17
  $('a:not([href^="#"]):not([href^="javascript:void(0);"]):not([target]):not(.js-no-transition)').on('click', function(e){
18
18
  // $('html, body').stop().animate({ scrollTop: 0 }, 400, 'easeInOutSine');
19
19
  e.preventDefault();
20
- url = $(this).attr('href'); // 遷移先のURLを取得
20
+ url = $(this).attr('href');
21
21
  if (url !== '') {
22
- //$('main,footer,.menu').addClass('js-fadeOut');
23
22
  $('main,.menu').addClass('js-fadeOut');
24
23
  setTimeout(function(){
25
24
  window.location = url;
@@ -0,0 +1,10 @@
1
+ $(function() {
2
+ $("#markdown-content img").each(function(){
3
+ if($(this).attr("src").startsWith("..")){
4
+ $(this).attr("src", $(this).attr('src').slice(2));
5
+ };
6
+ if($(this).attr("src").startsWith("/")){
7
+ $(this).attr("src", $(this).attr('src').slice(1));
8
+ }
9
+ });
10
+ });
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.6
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-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -57,6 +57,7 @@ files:
57
57
  - _includes/policy/zh.md
58
58
  - _includes/search.html
59
59
  - _includes/toc.html
60
+ - _layouts/about.html
60
61
  - _layouts/album.html
61
62
  - _layouts/albumlist.html
62
63
  - _layouts/blank.html
@@ -97,6 +98,7 @@ files:
97
98
  - assets/img/banner.gif
98
99
  - assets/img/logo_Nest.png
99
100
  - assets/img/switcher.png
101
+ - assets/js/album.js
100
102
  - assets/js/archive.min.js
101
103
  - assets/js/imagesLoaded-3.1.8.js
102
104
  - assets/js/imagesLoaded-4.1.4.js
@@ -110,7 +112,8 @@ files:
110
112
  - assets/js/script.js
111
113
  - assets/js/slick.min.js
112
114
  - assets/js/tex-chtml-full.min.js
113
- homepage: https://riino.site/2020/03/01/welcome-to-jekyll.html
115
+ - assets/js/typora2jekyll.js
116
+ homepage: https://riino.site/jekyll-theme-panda/
114
117
  licenses:
115
118
  - MIT
116
119
  metadata: {}