seminima 0.1.3 → 0.1.5
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 +4 -4
- data/README.md +12 -1
- data/_config.yml +0 -4
- data/_includes/mathjax.html +11 -0
- data/_includes/sub-footer.html +1 -0
- data/_layouts/talk.html +6 -6
- data/lib/seminima/reading_seminars.rb +27 -0
- data/lib/seminima.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc946ae728d12814c892067a7cd6ef785d02523f802ca23b5e91168a65b93152
|
|
4
|
+
data.tar.gz: 90cf12271e9dc8bad0fbe3ec4cefb686e93d865ff910ce9a0568531a475cfb37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ed028d113dbd51aed64f920f600b4a1acf2810cb12819512268848fdc23114ecea472b0d4a52d4f88fbb7bf8c691be62a3c25143647f32219030fbfb4b0f56a
|
|
7
|
+
data.tar.gz: eebe2a1356489e2358c08dfdb262ab4f2471125f86bda3dfda06967f2371c196f6a5f416a41659911ab2291522c2a3fa57b368cde52f996c99d8adb4597ebd91
|
data/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This is a [Minima][minima]-based theme for [Jekyll][jekyll]. It is developed specifically for use as a theme for websites for seminars hosted in the academic world.
|
|
4
4
|
|
|
5
|
+
It loads Mathjax by default so this can be used. To get inline math use `$...$` and to get display math use `$$ ... $$`.
|
|
6
|
+
|
|
7
|
+
See an example usage here: [friday-fish.github.io](https://friday-fish.github.io/).
|
|
8
|
+
|
|
5
9
|
## Installation
|
|
6
10
|
|
|
7
11
|
Add this line to your Jekyll site's `Gemfile`:
|
|
@@ -14,6 +18,9 @@ And add this line to your Jekyll site's `_config.yml`:
|
|
|
14
18
|
|
|
15
19
|
```yaml
|
|
16
20
|
theme: seminima
|
|
21
|
+
|
|
22
|
+
plugins:
|
|
23
|
+
- seminima
|
|
17
24
|
```
|
|
18
25
|
|
|
19
26
|
And then execute:
|
|
@@ -36,7 +43,11 @@ exclude:
|
|
|
36
43
|
- flake.lock
|
|
37
44
|
```
|
|
38
45
|
|
|
39
|
-
|
|
46
|
+
### Talks
|
|
47
|
+
TODO
|
|
48
|
+
|
|
49
|
+
### Reading seminars
|
|
50
|
+
TODO
|
|
40
51
|
|
|
41
52
|
## Contributing
|
|
42
53
|
|
data/_config.yml
CHANGED
data/_includes/sub-footer.html
CHANGED
data/_layouts/talk.html
CHANGED
|
@@ -11,15 +11,15 @@ layout: base
|
|
|
11
11
|
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
|
12
12
|
{{ page.date | date: date_format }}
|
|
13
13
|
</time>
|
|
14
|
-
{%- if page.start_time -%}— <span>Time: {{ page.start_time }}</span>{%- endif -%} {%- if page.location -%} — <span>Location: {{ page.location }}</span>{%- endif -%}<br/>{
|
|
14
|
+
{%- if page.start_time -%}— <span>Time: {{ page.start_time }}</span>{%- endif -%} {%- if page.location -%} — <span>Location: {{ page.location }}</span>{%- endif -%}<br/>{%- if page.video_url -%}
|
|
15
15
|
<a class="talk-url" href="{{ page.video_url }}">Video</a>
|
|
16
|
-
{
|
|
17
|
-
{
|
|
16
|
+
{%- endif -%}
|
|
17
|
+
{%- if page.slides_url -%}
|
|
18
18
|
<a class="talk-url" href="{{ page.slides_url }}">Slides</a>
|
|
19
|
-
{
|
|
20
|
-
{
|
|
19
|
+
{%- endif -%}
|
|
20
|
+
{%- if page.notes_url -%}
|
|
21
21
|
<a class="talk-url" href="{{ page.notes_url }}">Notes</a>
|
|
22
|
-
{
|
|
22
|
+
{%- endif -%}</p>
|
|
23
23
|
</header>
|
|
24
24
|
|
|
25
25
|
<div class="post-content">
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require 'jekyll'
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
module Jekyll
|
|
5
|
+
class ReadingSeminarJSONGenerator < Jekyll::Generator
|
|
6
|
+
def make_data(site)
|
|
7
|
+
reading_seminars = site.collections["reading_seminars"].docs
|
|
8
|
+
|
|
9
|
+
data = {}
|
|
10
|
+
reading_seminars.each do |seminar|
|
|
11
|
+
data[seminar.data["key"]] = seminar.data["title"]
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
data
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def generate(site)
|
|
18
|
+
data = make_data site
|
|
19
|
+
|
|
20
|
+
PageWithoutAFile.new(site, __dir__, "", "reading_seminars.json").tap do |file|
|
|
21
|
+
jsonified_data = JSON.generate(data)
|
|
22
|
+
file.content = jsonified_data
|
|
23
|
+
site.pages << file
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
data/lib/seminima.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seminima
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Douwe Hoekstra
|
|
@@ -102,6 +102,7 @@ files:
|
|
|
102
102
|
- _includes/google-analytics.html
|
|
103
103
|
- _includes/head.html
|
|
104
104
|
- _includes/header.html
|
|
105
|
+
- _includes/mathjax.html
|
|
105
106
|
- _includes/nav-items.html
|
|
106
107
|
- _includes/past_talk.html
|
|
107
108
|
- _includes/social.html
|
|
@@ -129,6 +130,7 @@ files:
|
|
|
129
130
|
- assets/css/style.scss
|
|
130
131
|
- lib/seminima.rb
|
|
131
132
|
- lib/seminima/calendar.rb
|
|
133
|
+
- lib/seminima/reading_seminars.rb
|
|
132
134
|
- lib/seminima/talks.rb
|
|
133
135
|
homepage: https://github.com/seminar-tools/seminima
|
|
134
136
|
licenses:
|