jekyll-theme-neysa 0.1.5 → 0.1.6

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: 248c42a0fc512d950b62b15974d2bf097c8dce9b7658c7c03f909e44aec89456
4
- data.tar.gz: f5cf3be8ea81331c0ae6e96877785b748de7c8df82fa13b4b6b52faadf9de831
3
+ metadata.gz: 9c0caa49e9734f1a1afc12125d5ba43b141e057b688d058a6f10d52c2e49ee1e
4
+ data.tar.gz: '058cd72167bbbf6c148cd1cf4c47198ca6f15f8a48604ca72629cfa9a9d7bcad'
5
5
  SHA512:
6
- metadata.gz: 42944ebacacd8f18cfdd080fffbeed9912350665414a5b4caf45688689d55855c1c56e0fc6b569d585193223dcedd03f6847ddcd5456706ff9330e9925d0d2ae
7
- data.tar.gz: d194eb4fc75be48ee6fde6ecb3985311b251fa4016b44e6357f7b596074ca3905f6ba75b2ec04f99f3c8d0c881429c97298b6224e1eed5a8f021550af96615d7
6
+ metadata.gz: 566f4bd6ec7ca8a49b70a01b4dc58510e748ede65b2ae770af8e7a53a087cc74c2905aee403932c1874ed87c03f9308da855ca1e6f3f064aa05e65e28b1c5b08
7
+ data.tar.gz: fd741dff6679683bc9d3947824033af629329801dc27c4bfafb684fad4651690bd87186070c02626b5b518f36a091583e0ab431040b55d2948d8d71cf2328d01
data/_config.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  # Hide title of repository
2
- name: ""
2
+ name: " "
3
3
  title: null
4
4
  description:
5
5
  show_downloads: false
6
6
  theme: jekyll-theme-neysa
7
7
 
8
8
  # Build settings
9
+
9
10
  markdown: kramdown # to show TOC
10
11
  kramdown:
11
12
  input: GFM
@@ -18,6 +19,14 @@ kramdown:
18
19
  enable_coderay: false
19
20
  parse_block_html: true # default for kramdown is false. This will enable using Markdown links
20
21
 
22
+
23
+ toc:
24
+ min_level: 2
25
+ max_level: 6
26
+
27
+
28
+
29
+
21
30
  ## => Markdown Enhancements
22
31
  ## Mathjax
23
32
  mathjax: true # false (default), true
@@ -32,6 +41,11 @@ parse:
32
41
  sass:
33
42
  sass_dir: _sass
34
43
 
44
+
45
+ exclude:
46
+ - script
47
+
48
+
35
49
  # -----------------------------------------------------------------------------
36
50
  # 统计
37
51
  # -----------------------------------------------------------------------------
@@ -0,0 +1,9 @@
1
+ <script>
2
+ var _hmt = _hmt || [];
3
+ (function() {
4
+ var hm = document.createElement("script");
5
+ hm.src = "//hm.baidu.com/hm.js?{{ site.baidu-analyisis }}";
6
+ var s = document.getElementsByTagName("script")[0];
7
+ s.parentNode.insertBefore(hm, s);
8
+ })();
9
+ </script>
@@ -1,10 +1,23 @@
1
- <footer class="inner">
2
- {% if site.github.is_project_page %}
3
- <p class="copyright">{{ site.title | default: site.github.repository_name }} maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
4
- {% endif %}
5
- <p>Published with <a href="https://pages.github.com">GitHub Pages</a>
6
- &copy; Copyright {{ site.time | date: '%Y' }} {{ site.first_name }} {{ site.last_name }} | Last updated: {{ "now" | date: '%B %d, %Y' }}</p>
7
-
8
- </footer>
9
-
10
-
1
+ <footer class="inner">
2
+ <!-- For checkbox setting -->
3
+ <script type="text/javascript">
4
+ var inputs = document.getElementsByTagName('input');
5
+ for (var i=0; i<inputs.length; i++) {
6
+ if (inputs[i].type == 'checkbox') {
7
+ if (inputs[i].checked == false){
8
+ inputs[i].disabled = false;
9
+ }
10
+ }
11
+ }
12
+ </script>
13
+
14
+ <!-- Foot note -->
15
+ {% if site.github.is_project_page %}
16
+ <p class="copyright">{{ site.title | default: site.github.repository_name }} maintained by <a href="https://ni-chen.github.io">Ni Chen</a> | Last updated: {{ "now" | date: '%B %d, %Y' }} </p>
17
+ {% else %}
18
+ <p> &copy; Copyright {{ site.time | date: '%Y' }} <a href="https://ni-chen.github.io">Ni Chen</a> | Last updated: {{ "now" | date: '%B %d, %Y' }} </p>
19
+ {% endif %}
20
+
21
+ </footer>
22
+
23
+
@@ -1,10 +1,16 @@
1
- {% if site.google_analytics %}
2
- <script>
3
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7
- ga('create', '{{ site.google_analytics }}', 'auto');
8
- ga('send', 'pageview');
9
- </script>
10
- {% endif %}
1
+ <script>
2
+ (function (i, s, o, g, r, a, m) {
3
+ i['GoogleAnalyticsObject'] = r;
4
+ i[r] = i[r] || function () {
5
+ (i[r].q = i[r].q || []).push(arguments)
6
+ }, i[r].l = 1 * new Date();
7
+ a = s.createElement(o),
8
+ m = s.getElementsByTagName(o)[0];
9
+ a.async = 1;
10
+ a.src = g;
11
+ m.parentNode.insertBefore(a, m)
12
+ })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
13
+
14
+ ga('create', 'UA-56515654-4', 'auto');
15
+ ga('send', 'pageview');
16
+ </script>
@@ -0,0 +1,30 @@
1
+ <!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
2
+ <!-- Global site tag (gtag.js) - Google Analytics -->
3
+ <script async src="https://www.googletagmanager.com/gtag/js?id=UA-56515654-4"></script>
4
+ <script>
5
+ window.dataLayer = window.dataLayer || [];
6
+ function gtag(){dataLayer.push(arguments);}
7
+ gtag('js', new Date());
8
+
9
+ gtag('config', 'UA-56515654-4');
10
+ </script>
11
+
12
+ <!-- Baidu Analytics -->
13
+ <script>
14
+ var _hmt = _hmt || [];
15
+ (function() {
16
+ var hm = document.createElement("script");
17
+ hm.src = "https://hm.baidu.com/hm.js?0662740a0d2368cc5cfaa508dd843362";
18
+ var s = document.getElementsByTagName("script")[0];
19
+ s.parentNode.insertBefore(hm, s);
20
+ })();
21
+ </script>
22
+
23
+ <!-- Setup Google Analytics -->
24
+ {% include google-analytics.html %}
25
+ {% include baidu-analysis.html %}
26
+
27
+ <!-- You can set your favicon here -->
28
+ <!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
29
+
30
+ <!-- end custom head snippets -->
@@ -7,7 +7,7 @@
7
7
  <meta name="viewport" content="width=device-width,maximum-scale=2">
8
8
  <link rel="stylesheet" type="text/css" media="screen" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
9
9
 
10
- {% include head-custom.html %}
10
+ {% include head.html %}
11
11
  </head>
12
12
 
13
13
  <body>
@@ -7,7 +7,7 @@
7
7
  <meta name="viewport" content="width=device-width,maximum-scale=2">
8
8
  <link rel="stylesheet" type="text/css" media="screen" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
9
9
 
10
- {% include head-custom.html %}
10
+ {% include head.html %}
11
11
  </head>
12
12
 
13
13
  <body>
@@ -7,7 +7,7 @@
7
7
  <meta name="viewport" content="width=device-width,maximum-scale=2">
8
8
  <link rel="stylesheet" type="text/css" media="screen" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
9
9
 
10
- {% include head-custom.html %}
10
+ {% include head.html %}
11
11
  </head>
12
12
 
13
13
  <body>