jekyll-theme-minimal-academic 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/_layouts/homepage.html +12 -17
- data/_sass/jekyll-theme-minimal-academic.scss +5 -1
- data/assets/.DS_Store +0 -0
- data/assets/js/favicon-switcher.js +64 -0
- metadata +2 -2
- data/_sass/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5877b812916dff3c383f83e8c5203460b4239f2d614872cfbcf64e31067c599
|
4
|
+
data.tar.gz: e5884bf20c2c794c42895646ebed5323ac679be8cfda80afc3bdbcaa403143f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
[![
|
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
|
|
data/_layouts/homepage.html
CHANGED
@@ -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
|
-
|
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="
|
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
|
-
|
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>
|
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) {
|
data/assets/.DS_Store
CHANGED
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.
|
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:
|
data/_sass/.DS_Store
DELETED
Binary file
|