seminima 0.1.4 → 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: 1e05cf0fee8b22a3c98534c7b21f1d647111d10148af7754e199cfd3687ae9f9
4
- data.tar.gz: 9c6c193bebfed47430ad0279774c11ef6a2137780040d1b30a89c5b3f936feec
3
+ metadata.gz: a3efa0cd80e6c60bf2a4a0bdaa99c8a0513447e92ad25a09a1575dfef8ad93a8
4
+ data.tar.gz: 9d65f2f60cecbfafb23d81f01d7d19bfe440ba2730394c54ed666dcd629bd340
5
5
  SHA512:
6
- metadata.gz: 2acc2d468a3348b42ddb4546c23ada19a9ae25122ad7babb85944dffccf9829c009c4e3bf115713c802019e4470c2c65262a5329ca274be4b3e1dba64d2efc7c
7
- data.tar.gz: a32d2d5612977ee72aa3a9c339b54ed5c2ff35b022c3486d4a5fd83cc09265aac463070f35fb482e920cdaea5208e840acdddd6d0ea8f4a30ef2319648e0257a
6
+ metadata.gz: faeaabbbf807d608dbd2615b1af96e6d69d399e1536c75d8ea6300c880a36044b4954621d9fbdc3139ff82aee445b945536bb2b5adca381a5e10a3ceacf55112
7
+ data.tar.gz: 230a47e19e007a180583ac1c0cd9e6cfbc3fc359c89728d28a07699c52d604d788e9c56f4d6245f015be9c1cf6c22773d94b55791adb9c01666a0ea13a1a076b
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/_config.yml CHANGED
@@ -4,7 +4,6 @@ theme: seminima
4
4
 
5
5
  plugins:
6
6
  - jekyll-seo-tag
7
- - jekyll-feed
8
7
  - seminima
9
8
 
10
9
  # The seminima presupposes the existence of these collections
@@ -6,17 +6,4 @@
6
6
  </a>
7
7
  </li>
8
8
  {%- endfor -%}
9
- {% unless site.minima.hide_site_feed_link %}
10
- <li>
11
- <a href="{{ site.feed.path | default: 'feed.xml' | absolute_url }}" target="_blank" title="Subscribe to syndication feed">
12
- <svg class="svg-icon grey" viewbox="0 0 16 16">
13
- <path d="M12.8 16C12.8 8.978 7.022 3.2 0 3.2V0c8.777 0 16 7.223 16 16h-3.2zM2.194
14
- 11.61c1.21 0 2.195.985 2.195 2.196 0 1.21-.99 2.194-2.2 2.194C.98 16 0 15.017 0
15
- 13.806c0-1.21.983-2.195 2.194-2.195zM10.606
16
- 16h-3.11c0-4.113-3.383-7.497-7.496-7.497v-3.11c5.818 0 10.606 4.79 10.606 10.607z"
17
- />
18
- </svg>
19
- </a>
20
- </li>
21
- {%- endunless %}
22
9
  </ul>
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douwe Hoekstra
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.4'
27
- - !ruby/object:Gem::Dependency
28
- name: jekyll-feed
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.9'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.9'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: jekyll-seo-tag
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -130,6 +116,7 @@ files:
130
116
  - assets/css/style.scss
131
117
  - lib/seminima.rb
132
118
  - lib/seminima/calendar.rb
119
+ - lib/seminima/reading_seminars.rb
133
120
  - lib/seminima/talks.rb
134
121
  homepage: https://github.com/seminar-tools/seminima
135
122
  licenses: