seminima 0.1.4 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e05cf0fee8b22a3c98534c7b21f1d647111d10148af7754e199cfd3687ae9f9
4
- data.tar.gz: 9c6c193bebfed47430ad0279774c11ef6a2137780040d1b30a89c5b3f936feec
3
+ metadata.gz: dc946ae728d12814c892067a7cd6ef785d02523f802ca23b5e91168a65b93152
4
+ data.tar.gz: 90cf12271e9dc8bad0fbe3ec4cefb686e93d865ff910ce9a0568531a475cfb37
5
5
  SHA512:
6
- metadata.gz: 2acc2d468a3348b42ddb4546c23ada19a9ae25122ad7babb85944dffccf9829c009c4e3bf115713c802019e4470c2c65262a5329ca274be4b3e1dba64d2efc7c
7
- data.tar.gz: a32d2d5612977ee72aa3a9c339b54ed5c2ff35b022c3486d4a5fd83cc09265aac463070f35fb482e920cdaea5208e840acdddd6d0ea8f4a30ef2319648e0257a
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
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
46
+ ### Talks
47
+ TODO
48
+
49
+ ### Reading seminars
50
+ TODO
40
51
 
41
52
  ## Contributing
42
53
 
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 -%}&mdash; <span>Time: {{ page.start_time }}</span>{%- endif -%} {%- if page.location -%}&nbsp;&mdash; <span>Location: {{ page.location }}</span>{%- endif -%}<br/>{% if page.video_url %}
14
+ {%- if page.start_time -%}&mdash; <span>Time: {{ page.start_time }}</span>{%- endif -%} {%- if page.location -%}&nbsp;&mdash; <span>Location: {{ page.location }}</span>{%- endif -%}<br/>{%- if page.video_url -%}
15
15
  <a class="talk-url" href="{{ page.video_url }}">Video</a>
16
- {% endif %}
17
- {% if page.slides_url %}
16
+ {%- endif -%}
17
+ {%- if page.slides_url -%}
18
18
  <a class="talk-url" href="{{ page.slides_url }}">Slides</a>
19
- {% endif %}
20
- {% if page.notes_url %}
19
+ {%- endif -%}
20
+ {%- if page.notes_url -%}
21
21
  <a class="talk-url" href="{{ page.notes_url }}">Notes</a>
22
- {% endif %}</p>
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
@@ -1,3 +1,4 @@
1
1
  require "jekyll"
2
2
  require "seminima/talks"
3
3
  require "seminima/calendar"
4
+ require "seminima/reading_seminars"
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
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douwe Hoekstra
@@ -130,6 +130,7 @@ files:
130
130
  - assets/css/style.scss
131
131
  - lib/seminima.rb
132
132
  - lib/seminima/calendar.rb
133
+ - lib/seminima/reading_seminars.rb
133
134
  - lib/seminima/talks.rb
134
135
  homepage: https://github.com/seminar-tools/seminima
135
136
  licenses: