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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db254539cfb877204c5a8b103784e953ad94377272727e2335cf81f5a78dae43
4
- data.tar.gz: 4b25c258bd85535ff7d1969b464617c444f1d72aa372889fa1427da8958d533b
3
+ metadata.gz: dc946ae728d12814c892067a7cd6ef785d02523f802ca23b5e91168a65b93152
4
+ data.tar.gz: 90cf12271e9dc8bad0fbe3ec4cefb686e93d865ff910ce9a0568531a475cfb37
5
5
  SHA512:
6
- metadata.gz: 8d93e512e70dfbc51abcda10d6182daee8a9bde97d8faf5c6fe436eec344f39e84e9f9fec086c23c97a2002c942127936b0d72db4005980db28c77194e6ed007
7
- data.tar.gz: '09f80fdcf79fc3f23c8f322d2e3f5047e962cd3e40800b1412116bc6d75f24615da221784dcc09d5171fc50cb4c867db71a793722f3d45e4b13aeece354f4df9'
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/_config.yml CHANGED
@@ -1,9 +1,5 @@
1
1
  title: Seminima Example
2
2
 
3
- author:
4
- name: Douwe Hoekstra
5
- email: dev@dhoekstra.xyz
6
-
7
3
  theme: seminima
8
4
 
9
5
  plugins:
@@ -0,0 +1,11 @@
1
+ <script id="MathJax-script" async
2
+ src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js">
3
+ </script>
4
+ <script>
5
+ MathJax = {
6
+ tex: {
7
+ inlineMath: [['$', '$'], ['\\(', '\\)']],
8
+ displayMath: [['$$', '$$'], ['\\[', '\\]']],
9
+ }
10
+ };
11
+ </script>
@@ -2,3 +2,4 @@
2
2
  Use this to insert markup before the closing body tag.
3
3
  For example, scripts that need to be executed after the document has finished loading.
4
4
  {% endcomment %}
5
+ {% include mathjax.html %}
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.3
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: