jekyll-theme-minimal-academic 1.0.2 → 1.0.3

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: 164c105c8fa3b5afcc9ae0f5ce7dd171b751ea25d9760d91c06e52c03e39bc88
4
- data.tar.gz: a0808b43ca368aab87805fa303a6290761d05cda724aa9fd0e623ee69dd71c0c
3
+ metadata.gz: e5877b812916dff3c383f83e8c5203460b4239f2d614872cfbcf64e31067c599
4
+ data.tar.gz: e5884bf20c2c794c42895646ebed5323ac679be8cfda80afc3bdbcaa403143f7
5
5
  SHA512:
6
- metadata.gz: 599d6aab7e009beb91bef36c21999a616db747c90b8d72ae96773d0dacd69b83c804482407ba768901c270e6bc32dd3285022487e2f6c5248777a96cda01878e
7
- data.tar.gz: a839ea170f4a9ed567636d8ec678ff7f76a3b299a7eec6da69e7d6e781298f61627087514062220c4f1e8adf46497b30723fdf3913a7f8047af72b90ceacd92a
6
+ metadata.gz: dd3ce14b6c404a62b385dc09585899339cbf08b5454b5c671bc5ad39990834d70fa0a30b002ddb6751b8e8ee1cb3e1801ef49c2c7b171eb1aaf4459cca401caf
7
+ data.tar.gz: 001ac73cab2801be04f27fb733e6f7031268c8e080ab9f39ff4cd0223bc3adef44f2fa6618488ea52becf322d657d56e2825a9f6a1c5367e4049b6af979c89ff
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  [![LICENSE](https://img.shields.io/github/license/yaoyao-liu/minimal-academic)](https://github.com/yaoyao-liu/minimal-academic/blob/master/LICENSE)
4
4
  [![gem](https://img.shields.io/gem/v/jekyll-theme-minimal-academic)](https://rubygems.org/gems/jekyll-theme-minimal-academic)
5
- [![jekyll](https://img.shields.io/badge/built%20with-Jekyll-orange)](https://jekyllrb.com/)
5
+ [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.7-orange.svg)](https://jekyllrb.com/)
6
+
7
+ [Demo the theme](https://minimal-academic.yyliu.net/)
6
8
 
7
9
  *This is the source code of my homepage. I build this website based on [minimal](https://github.com/orderedlist/minimal).*
8
10
  <br>
@@ -29,7 +31,7 @@ remote_theme: yaoyao-liu/minimal-academic
29
31
 
30
32
  ### Using with Jekyll
31
33
 
32
- *You need to install Ruby and Jekyll fisrt.*
34
+ *You need to install [Ruby](https://www.ruby-lang.org/en/) and [Jekyll](https://jekyllrb.com/) fisrt.*
33
35
 
34
36
  Clone this repository:
35
37
 
@@ -7,14 +7,16 @@
7
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1">
9
9
  <meta name="description" content="{{ site.description }}">
10
- <meta name="keywords" content="{{ site.title }}">
10
+ {% if site.keywords %}
11
+ <meta name="keywords" content="{{ site.keywords }}">
12
+ {% endif %}
11
13
  {% if site.canonical %}
12
14
  <link rel="canonical" href="{{ site.canonical }}"/>
13
15
  {% endif %}
14
16
 
15
17
  <link rel="icon" media="(prefers-color-scheme:dark)" href="{{ site.favicon_dark }}" type="image/png" />
16
18
  <link rel="icon" media="(prefers-color-scheme:light)" href="{{ site.favicon }}" type="image/png" />
17
- <script src="https://unpkg.com/favicon-switcher@1.2.2/dist/index.js" crossorigin="anonymous" type="application/javascript"></script>
19
+ <script src="./assets/js/favicon-switcher.js" type="application/javascript"></script>
18
20
 
19
21
  <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/academicons/1.8.6/css/academicons.min.css integrity="sha256-uFVgMKfistnJAfoCUQigIl+JfUaP47GrRKjf6CTPVmw=" crossorigin=anonymous>
20
22
  <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin=anonymous>
@@ -24,23 +26,23 @@
24
26
  <body>
25
27
  <div class="wrapper">
26
28
  <header>
27
- <center>
28
29
 
29
30
  {% if site.avatar %}
30
- <a class="image avatar"><img src="{{site.avatar}}" alt="" onContextMenu="return false" /></a>
31
+ <a class="image avatar"><img src="{{site.avatar}}" alt="avatar" onContextMenu="return false" /></a>
31
32
  {% endif %}
32
33
 
33
34
  <h1>{{ site.title }}</h1>
34
-
35
- <p>{{ site.affiliation }}
36
-
35
+ <p>
36
+ {% if site.position %}
37
+ {{ site.position }}
38
+ <br>
39
+ {% endif %}
40
+ {{ site.affiliation }}
37
41
  <br>
38
-
39
42
  {% if site.email %}
40
43
  {{ site.email }}</p>
41
44
  {% endif %}
42
45
 
43
- </center>
44
46
  </header>
45
47
  <section>
46
48
 
@@ -48,14 +50,10 @@
48
50
 
49
51
  <br>
50
52
 
51
- <p><small>The <a href="https://github.com/yaoyao-liu/minimal-academic" target="_blank" rel="noopener">Minimal Academic Theme</a> by <a href="https://yyliu.net/" target="_blank" rel="noopener">Yaoyao Liu</a> | Built with Jekyll</small></p>
53
+ <p><small>Powered by Jekyll and <a href="https://github.com/yaoyao-liu/minimal-academic" target="_blank" rel="noopener">Minimal Academic Theme</a>.</small></p>
52
54
 
53
55
  </section>
54
56
  <footer>
55
- <center>
56
- <style>
57
- .social-icons a{display:inline-block;height:3rem;width:3rem;background-color:#495057;color:#fff!important;border-radius:100%;text-align:center;font-size:1.5rem;line-height:3.1rem;margin-right:1rem}.social-icons a:last-child{margin-right:0}.social-icons a:hover{background-color:#000000}
58
- </style>
59
57
  <div class="social-icons">
60
58
 
61
59
  {% if site.linkedin %}
@@ -74,12 +72,9 @@
74
72
  </a>
75
73
  {% endif %}
76
74
  </div>
77
-
78
-
79
75
  <br>
80
76
  <br>
81
77
  <br>
82
- </center>
83
78
  </footer>
84
79
  </div>
85
80
  <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
@@ -9,6 +9,8 @@ body {
9
9
  margin:0
10
10
  }
11
11
 
12
+ .social-icons a{display:inline-block;height:3rem;width:3rem;background-color:#495057;color:#fff!important;border-radius:100%;text-align:center;font-size:1.5rem;line-height:3.1rem;margin-right:1rem}.social-icons a:last-child{margin-right:0}.social-icons a:hover{background-color:#000000}
13
+
12
14
  autocolor{
13
15
  color:#494949;
14
16
  }
@@ -226,7 +228,8 @@ header {
226
228
  float:left;
227
229
  position:fixed;
228
230
  -webkit-font-smoothing:subpixel-antialiased;
229
- padding-top:4.0em
231
+ padding-top:4.0em;
232
+ text-align:center
230
233
  }
231
234
 
232
235
 
@@ -320,6 +323,7 @@ footer {
320
323
  position:fixed;
321
324
  bottom:30px;
322
325
  -webkit-font-smoothing:subpixel-antialiased;
326
+ text-align:center;
323
327
  }
324
328
 
325
329
  @media print, screen and (max-width: 960px) {
Binary file
@@ -0,0 +1,64 @@
1
+ ;(function(mod){
2
+ function collectLinks() {
3
+ return Array.prototype.slice.apply(
4
+ document.head.querySelectorAll('link[rel*="icon"]')
5
+ )
6
+ }
7
+
8
+ function applyLink(source, target) {
9
+ target.setAttribute('type', source.getAttribute('type'))
10
+ target.setAttribute('href', source.getAttribute('href'))
11
+ }
12
+
13
+ // eslint-disable-next-line no-unused-vars
14
+ function initSwitcher(delay) {
15
+ // Exit if media queries aren't supported
16
+ if (typeof window.matchMedia !== 'function') {
17
+ return function noop() {}
18
+ }
19
+
20
+ var links = collectLinks()
21
+ var current = document.createElement('link')
22
+ var prevMatch
23
+
24
+ current.setAttribute('rel', 'shortcut icon')
25
+ document.head.appendChild(current)
26
+
27
+ function faviconApplyLoop() {
28
+ var matched
29
+
30
+ links.forEach(function(link) {
31
+ if (window.matchMedia(link.media).matches) {
32
+ matched = link
33
+ }
34
+ })
35
+
36
+ if (! matched) {
37
+ return
38
+ }
39
+
40
+ if (matched.media !== prevMatch) {
41
+ prevMatch = matched.media
42
+ applyLink(matched, current)
43
+ }
44
+ }
45
+
46
+ var intervalId = setInterval(faviconApplyLoop, delay || 300)
47
+
48
+ function unsubscribe() {
49
+ clearInterval(intervalId)
50
+ links.forEach(function(link) {
51
+ document.head.appendChild(link)
52
+ })
53
+ }
54
+
55
+ faviconApplyLoop()
56
+ links.forEach(function(link) {
57
+ document.head.removeChild(link)
58
+ })
59
+
60
+ return unsubscribe
61
+ }
62
+
63
+ initSwitcher()
64
+ })()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-minimal-academic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaoyao Liu
@@ -97,7 +97,6 @@ files:
97
97
  - LICENSE
98
98
  - README.md
99
99
  - _layouts/homepage.html
100
- - _sass/.DS_Store
101
100
  - _sass/fonts.scss
102
101
  - _sass/jekyll-theme-minimal-academic.scss
103
102
  - _sass/rouge-github.scss
@@ -106,6 +105,7 @@ files:
106
105
  - assets/img/avatar.png
107
106
  - assets/img/favicon-dark.png
108
107
  - assets/img/favicon.png
108
+ - assets/js/favicon-switcher.js
109
109
  - assets/js/scale.fix.js
110
110
  homepage: https://github.com/yaoyao-liu/minimal-academic
111
111
  licenses:
Binary file