jekyll-theme-paperwiki 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +57 -0
  4. data/_config.yml +33 -0
  5. data/_includes/collections_sidebar.html +57 -0
  6. data/_includes/global_footer.html +4 -0
  7. data/_includes/global_head.html +27 -0
  8. data/_includes/global_header.html +25 -0
  9. data/_layouts/_dictionary.html +10 -0
  10. data/_layouts/collections.html +15 -0
  11. data/_layouts/default.html +21 -0
  12. data/_layouts/grammar.html +17 -0
  13. data/_layouts/page.html +9 -0
  14. data/_layouts/portal.html +41 -0
  15. data/_layouts/post.html +12 -0
  16. data/_layouts/reference_desk.html +50 -0
  17. data/_layouts/wiki.html +96 -0
  18. data/_layouts/work.html +17 -0
  19. data/_plugins/_gloss.rb +22 -0
  20. data/_plugins/_interlinear.rb +24 -0
  21. data/_plugins/ipa.rb +19 -0
  22. data/_plugins/lang.rb +27 -0
  23. data/_sass/partials/_base.scss +150 -0
  24. data/_sass/partials/_blog.scss +10 -0
  25. data/_sass/partials/_collections.scss +183 -0
  26. data/_sass/partials/_entries.scss +136 -0
  27. data/_sass/partials/_global.scss +111 -0
  28. data/_sass/partials/_glossing.scss +37 -0
  29. data/_sass/partials/_launchpad.scss +123 -0
  30. data/_sass/partials/_page.scss +13 -0
  31. data/_sass/partials/_search.scss +7 -0
  32. data/_sass/style.scss +14 -0
  33. data/_sass/variables/_colors.scss +49 -0
  34. data/_sass/variables/_fonts.scss +126 -0
  35. data/assets/css/style.scss +5 -0
  36. data/assets/fonts/.DS_Store +0 -0
  37. data/assets/fonts/Inter/.DS_Store +0 -0
  38. data/assets/fonts/Inter/Inter-Bold.otf +0 -0
  39. data/assets/fonts/Inter/Inter-Bold.woff +0 -0
  40. data/assets/fonts/Inter/Inter-Bold.woff2 +0 -0
  41. data/assets/fonts/Inter/Inter-Italic.otf +0 -0
  42. data/assets/fonts/Inter/Inter-Italic.woff +0 -0
  43. data/assets/fonts/Inter/Inter-Italic.woff2 +0 -0
  44. data/assets/fonts/Inter/Inter-Regular.otf +0 -0
  45. data/assets/fonts/Inter/Inter-Regular.woff +0 -0
  46. data/assets/fonts/Inter/Inter-Regular.woff2 +0 -0
  47. data/assets/fonts/Inter/LICENSE.txt +94 -0
  48. data/assets/fonts/LiberationMono/.DS_Store +0 -0
  49. data/assets/fonts/LiberationMono/LICENSE +102 -0
  50. data/assets/fonts/LiberationMono/LiberationMono-Bold.ttf +0 -0
  51. data/assets/fonts/LiberationMono/LiberationMono-Italic.ttf +0 -0
  52. data/assets/fonts/LiberationMono/LiberationMono-Regular.ttf +0 -0
  53. data/assets/fonts/LibertinusSerif/LibertinusSerif-Bold.otf +0 -0
  54. data/assets/fonts/LibertinusSerif/LibertinusSerif-Bold.woff2 +0 -0
  55. data/assets/fonts/LibertinusSerif/LibertinusSerif-BoldItalic.otf +0 -0
  56. data/assets/fonts/LibertinusSerif/LibertinusSerif-BoldItalic.woff2 +0 -0
  57. data/assets/fonts/LibertinusSerif/LibertinusSerif-Italic.otf +0 -0
  58. data/assets/fonts/LibertinusSerif/LibertinusSerif-Italic.woff2 +0 -0
  59. data/assets/fonts/LibertinusSerif/LibertinusSerif-Regular.otf +0 -0
  60. data/assets/fonts/LibertinusSerif/LibertinusSerif-Regular.woff2 +0 -0
  61. data/assets/fonts/LibertinusSerif/OFL.txt +93 -0
  62. data/assets/fonts/RemixIcon/.keep +0 -0
  63. data/assets/fonts/RemixIcon/.keep 3 +0 -0
  64. data/assets/fonts/RemixIcon/remixicon.css +2317 -0
  65. data/assets/fonts/RemixIcon/remixicon.eot +0 -0
  66. data/assets/fonts/RemixIcon/remixicon.glyph.json +1 -0
  67. data/assets/fonts/RemixIcon/remixicon.less +2319 -0
  68. data/assets/fonts/RemixIcon/remixicon.svg +6835 -0
  69. data/assets/fonts/RemixIcon/remixicon.symbol.svg +11356 -0
  70. data/assets/fonts/RemixIcon/remixicon.ttf +0 -0
  71. data/assets/fonts/RemixIcon/remixicon.woff +0 -0
  72. data/assets/fonts/RemixIcon/remixicon.woff2 +0 -0
  73. data/assets/images/favicon.png +0 -0
  74. data/assets/js/list.js +2020 -0
  75. data/assets/js/lunr.js +3475 -0
  76. data/assets/js/search.js +46 -0
  77. data/assets/js/toc.js +104 -0
  78. metadata +133 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: da46d1d89d0fd11d31dfb83965d03037cc806261914e0c6bb9aeb19c8a1eba98
4
+ data.tar.gz: b547e90cebac20b09f79762e81525b84244966269d174a1a776452650669f3b7
5
+ SHA512:
6
+ metadata.gz: 3c9518080bb2976df95c09ae790f77455f0943f15588f0c278713e17571ccbe168863be16b6ca4eda6824a336f796448d68d71d2cafe1a9848f38d8b6d30bb91
7
+ data.tar.gz: 6d51567d4bead58cc27afa58e60e21851d5ba2e7b58a1fb538b40e4bb13a45b8f939326703752bf407d766ce7192f108157372f5df4d55ecae18d48f0cff7c32
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 pomeloshark
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # jekyll-theme-paperwiki
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "jekyll-theme-paperwiki"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jekyll-theme-paperwiki
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jekyll-theme-paperwiki
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-paperwiki.gemspec` accordingly.
48
+
49
+ ## License
50
+
51
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
53
+ ## Credits
54
+
55
+ This theme uses the fonts [Inter](https://rsms.me/inter/), [Libertinus Serif](https://github.com/alerque/libertinus), and [Liberation Mono](https://fontlibrary.org/en/font/liberation-mono), all of which are released under the SIL Open Font License; and the icon font [RemixIcon](https://remixicon.com/), which is available under the Apache License 2.0. The [example favicon](https://www.flaticon.com/free-icon/picture_4671171) is by Royyan Wijaya at Flaticon.
56
+
57
+ The search function uses [Lunr.js](https://lunrjs.com/).
data/_config.yml ADDED
@@ -0,0 +1,33 @@
1
+ # Build settings
2
+ include: ['_pages'] # forces custom pages to be organized into their own directory
3
+
4
+ #
5
+ collections_dir: collections
6
+ collections:
7
+ wiki:
8
+ output: true
9
+ permalink: /:collection/:name
10
+
11
+ # Front matter defaults, so you don't need to set layouts on every new page.
12
+ # As long as pages are in the correct folder, they'll automatically have the
13
+ # correct layout. You can override this via each page's front matter.
14
+ defaults:
15
+ -
16
+ scope:
17
+ path: "" # an empty string here means all files in the project
18
+ type: "pages"
19
+ values:
20
+ layout: "page"
21
+ permalink: "/:path/:basename"
22
+ -
23
+ scope:
24
+ path: "" # an empty string here means all files in the project
25
+ type: "posts"
26
+ values:
27
+ layout: "post"
28
+ -
29
+ scope:
30
+ path: "_wiki" # all pages in the wiki folder
31
+ type: "wiki"
32
+ values:
33
+ layout: "wiki"
@@ -0,0 +1,57 @@
1
+ <nav class="collections-sidebar">
2
+
3
+ <ul>
4
+ <li>
5
+ {% if page.url == "/wiki" %}
6
+ Wiki
7
+ {% endif %}
8
+ {% if page.url contains "/wiki:" or page.url contains "/wiki/" %}
9
+ < <a href="/wiki">Back to Wiki</a>
10
+ {% endif %}
11
+ {% if page.url == "/works" %}
12
+ Works
13
+ {% endif %}
14
+ {% if page.url contains "/works:" or page.url contains "/works/" %}
15
+ < <a href="/works">Back to Works</a>
16
+ {% endif %}
17
+ {% if page.url == "/polyglot" %}
18
+ Polyglot
19
+ {% endif %}
20
+ {% if page.url == "/polyglot/grammars:all" or page.url == "/polyglot/dictionary:all" %}
21
+ < <a href="/polyglot">Back to Polyglot</a>
22
+ {% endif %}
23
+ </li>
24
+
25
+ {% if page.url contains "/wiki" %}
26
+ {% for item in site.data.collections_wiki %}
27
+ <li>
28
+ <a href="{{ item.link }}">
29
+ {{ item.name }}
30
+ </a>
31
+ </li>
32
+ {% endfor %}
33
+ {% endif %}
34
+
35
+ {% if page.url contains "/works" %}
36
+ {% for item in site.data.collections_works %}
37
+ <li>
38
+ <a href="{{ item.link }}">
39
+ {{ item.name }}
40
+ </a>
41
+ </li>
42
+ {% endfor %}
43
+ {% endif %}
44
+
45
+ {% if page.url contains "/polyglot" %}
46
+ {% for item in site.data.collections_polyglot %}
47
+ <li>
48
+ <a href="{{ item.link }}">
49
+ {{ item.name }}
50
+ </a>
51
+ </li>
52
+ {% endfor %}
53
+ {% endif %}
54
+
55
+ </ul>
56
+
57
+ </nav>
@@ -0,0 +1,4 @@
1
+ <footer class="global-footer">
2
+ <p>This work is licensed under a <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons attribution non-commercial Share-A-Like 4.0 international license.</a></p>
3
+ <p>Powered by <a href="https://jekyllrb.com/">Jekyll</a>, with help from <a href="https://remixicon.com/">Remix Icon</a> and <a href="https://lunrjs.com/">Lunr.js</a>. View the source code on Github.</p>
4
+ </footer>
@@ -0,0 +1,27 @@
1
+ <head>
2
+
3
+ <meta charset="utf-8">
4
+
5
+ <title>
6
+ {% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}
7
+ </title>
8
+
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
10
+
11
+ <link rel="stylesheet" href="/assets/css/style.css">
12
+ <link rel="stylesheet" href="/assets/fonts/RemixIcon/remixicon.css">
13
+
14
+ <link rel="icon" type="image/png" sizes="512x512" href="/assets/images/favicon.png">
15
+
16
+ <!-------
17
+ <script src="http://files.keyes.ie/things/baseliner/baseliner-latest.min.js">
18
+ </script>
19
+
20
+ <script>
21
+ window.onload = function() {
22
+ baseliner = new Baseliner(28);
23
+ }
24
+ </script>
25
+ -------->
26
+
27
+ </head>
@@ -0,0 +1,25 @@
1
+ <header class="global-header">
2
+
3
+ <h1 class="global-logo">
4
+ <a href="/">
5
+ <img src="/assets/images/favicon.png" class="global-favicon">
6
+ {{ site.title | capitalize }}
7
+ </a>
8
+ </h1>
9
+
10
+ <nav class="global-nav">
11
+
12
+ {% for item in site.data.navigation %}
13
+ <a href="{{ item.link }}" class="global-nav-link">
14
+ {{ item.name }}
15
+ </a>
16
+ {% endfor %}
17
+
18
+ <form class="global-search" action="/search" method="GET">
19
+ <input required type="search" class="global-searchbar" placeholder="Search" name="q">
20
+ <!---<button type="submit" class="global-search_submit"><i class="ri-search-line"></i></button>--->
21
+ </form>
22
+
23
+ </nav>
24
+
25
+ </header>
@@ -0,0 +1,10 @@
1
+ <!---No front matter bc this is a work in progress lol--->
2
+
3
+ <dl>
4
+ {% for item in site.data.lexicon %}
5
+ <dt>{{ item.term }}</dt>
6
+ <dd>{{ item.def }}</dd>
7
+ {% endfor %}
8
+ </dl>
9
+
10
+ <!---Idk if it's possible to set a template that can retrieve the name of the correct file from the url or if I'm just gonna have to do them all individually--->
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include collections_sidebar.html %}
6
+
7
+ <section class="collections-content">
8
+
9
+ {% if page.title %}
10
+ <h1>{{ page.title }}</h1>
11
+ {% endif %}
12
+
13
+ {{ content }}
14
+
15
+ </section>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="en">
4
+
5
+ {% include global_head.html %}
6
+
7
+ <body>
8
+
9
+ {% include global_header.html %}
10
+
11
+ <main>
12
+
13
+ {{ content }}
14
+
15
+ </main>
16
+
17
+ {% include global_footer.html %}
18
+
19
+ </body>
20
+
21
+ </html>
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <nav class="entry-index">
6
+
7
+ </nav>
8
+
9
+ <article class="entry entry-grammar">
10
+
11
+ <h1>{{ page.title }}</h1>
12
+
13
+ {{ content }}
14
+
15
+ </article>
16
+
17
+ <script src="/assets/js/toc.js"></script>
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="page-content">
6
+
7
+ {{ content }}
8
+
9
+ </article>
@@ -0,0 +1,41 @@
1
+ ---
2
+ layout: collections
3
+ ---
4
+
5
+ {% for item in site.data.portals_wiki %}
6
+ {% if page.title contains item.name %}
7
+
8
+ <ul class="portal-list">
9
+
10
+ {% for item in item.categories %}
11
+
12
+ <li class="portal-cat">
13
+ <a href="{{ item.link }}">{{ item.cat }}</a>
14
+
15
+ {% if item.subcategories %}
16
+ <ul class="portal-subcat_list">
17
+
18
+ {% for item in item.subcategories %}
19
+ <li class="portal-subcat_inline">
20
+ <a href="{{ item.link }}" class="portal-subcat">{{ item.subcat }}</a>
21
+
22
+ {% if item.tags %}
23
+
24
+ {% for item in item.tags %}
25
+ <a href="" class="portal-tag">{{ item.tag }}</a>
26
+ {% endfor %}
27
+ {% endif %}
28
+ </li>
29
+ {% endfor %}
30
+
31
+ </ul>
32
+ {% endif %}
33
+
34
+ </li>
35
+
36
+ {% endfor %}
37
+
38
+ </ul>
39
+
40
+ {% endif %}
41
+ {% endfor %}
@@ -0,0 +1,12 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ <header>
6
+ <h1>{{ page.title }}</h1>
7
+ <p>{{ page.date | date_to_string }} - {{ page.author }}</p>
8
+ </header>
9
+
10
+ <article>
11
+ {{ content }}
12
+ </article>
@@ -0,0 +1,50 @@
1
+ ---
2
+ layout: collections
3
+ ---
4
+
5
+ <section class="reference-desk">
6
+
7
+ {% if page.url == "/wiki" %}
8
+ <header class="collections-portals">
9
+ <h1 class="collections-portals_header">Pick a topic</h1>
10
+ <nav class="collections-portals_grid">
11
+
12
+ {% for item in site.data.portals_wiki %}
13
+ <a href="{{ item.link }}" class="collections-portal_card">
14
+ <header>
15
+ <i class="{{ item.icon }} portal-icon"></i>
16
+ {{ item.name }}
17
+ </header>
18
+ {{ item.summary }}
19
+ </a>
20
+ {% endfor %}
21
+ </nav>
22
+ </header>
23
+ {% endif %}
24
+
25
+ <section class="collections-wrapper">
26
+
27
+ <section class="collections-featured">
28
+ <header><h2>featured article</h2></header>
29
+ <p>When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath of that universal love which bears and sustains us, as it floats around us in an eternity of bliss; and then, my friend, when darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and absorb its power, like the form of a beloved mistress, then I often think with longing, Oh, would I could describe these conceptions, could impress upon paper all that is living so full and warm within me, that it might be the mirror of my soul, as my soul is the mirror of the infinite God! O my friend -- but it is too much for my strength -- I sink under the weight of the splendour of these visions!
30
+ </p>
31
+ </section>
32
+
33
+ <section class="collections-facts">
34
+ <header><h2>did you know?</h2></header>
35
+ <p>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents. I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.</p>
36
+ </section>
37
+
38
+ <section class="collections-recent">
39
+ <header><h3>recently added</h3></header>
40
+ <p>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents. I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.</p>
41
+ </section>
42
+
43
+ <section class="collections-recent">
44
+ <header><h3>recently edited</h3></header>
45
+ <p>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents. I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.</p>
46
+ </section>
47
+
48
+ </section>
49
+
50
+ </section>
@@ -0,0 +1,96 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <nav class="entry-index">
6
+
7
+ </nav>
8
+
9
+ <article class="entry entry-wiki">
10
+
11
+ <h1>
12
+ {{ page.title }}
13
+ </h1>
14
+
15
+ <section class="entry-tags">
16
+ <ul>
17
+ <ul>
18
+ <li>Portals:</li>
19
+ <li><a href="/wiki/portal:{{ page.portal }}">{{ page.portal }}</a></li>
20
+ </ul>
21
+ <ul>
22
+ <li>Categories:</li>
23
+ {% for item in page.categories %}
24
+ <li>
25
+ <a href="/wiki/category:{{ item | slugify }}">
26
+ {{ item }}
27
+ </a>
28
+ </li>
29
+ {% endfor %}
30
+ </ul>
31
+ <ul>
32
+ <li>Tags:</li>
33
+ {% for item in page.tags %}
34
+ <li>
35
+ <a href="/wiki/tag:{{ item | slugify }}">
36
+ {{ item }}
37
+ </a>
38
+ </li>
39
+ {% endfor %}
40
+ </li>
41
+ </ul>
42
+ </ul>
43
+ </section>
44
+
45
+ {{ content }}
46
+
47
+ </article>
48
+
49
+ {% if page.quickstats %}
50
+
51
+ <section class="entry-quickstats">
52
+
53
+ {% if page.image %}
54
+ <figure>
55
+ <img src="{{ page.image }}" width=auto class="stats-image">
56
+ <figcaption>{{ page.image_caption }}</figcaption>
57
+ </figure>
58
+ {% endif %}
59
+
60
+ <section class="stats-facts">
61
+
62
+ <table class="stats-table">
63
+ {% if page.type == "person" %}
64
+ <tr><td>Name</td><td>{{ page.fullname }}</td></tr>
65
+ <tr><td>Birthday</td><td>{{ page.birthday }}</td></tr>
66
+ <tr><td>Birthplace</td><td>{{ page.birthplace }}</td></tr>
67
+ <tr><td>Known for</td><td>{{ page.known_for }}</td></tr>
68
+ {% endif %}
69
+ {% if page.type == "planet" %}
70
+ <tr><td>Orbital period</td><td>{{ page.orbital_period }}</td></tr>
71
+ <tr><td>Semimajor axis</td><td>{{ page.semimajor_axis }}</td></tr>
72
+ <tr><td>Orbital eccentricity</td><td>{{ page.eccentricity }}</td></tr>
73
+ <tr><td>Aphelion</td><td>{{ page.aphelion }}</td></tr>
74
+ <tr><td>Perihelion</td><td>{{ page.perihelion }}</td></tr>
75
+ <tr><td>Orbital speed</td><td>{{ page.orbital_speed }}</td></tr>
76
+ <tr><td>Orbital period</td><td>{{ page.orbital_period }}</td></tr>
77
+ <tr><td>Orbital inclination</td><td>{{ page.orbital_inclination }}</td></tr>
78
+ <tr><td>Satellites</td><td>{{ page.satellites }}</td></tr>
79
+ <tr><td>Radius (mean)</td><td>{{ page.radius }}</td></tr>
80
+ <tr><td>Radius (equatorial)</td><td>{{ page.radius_equatorial }}</td></tr>
81
+ <tr><td>Radius (polar)</td><td>{{ page.radius_polar }}</td></tr>
82
+ <tr><td>Circumference</td><td>{{ page.circumference }}</td></tr>
83
+ <tr><td>Surface area</td><td>{{ page.surface_area }}</td></tr>
84
+ <tr><td>Sidereal day</td><td>{{ page.sidereal_day }}</td></tr>
85
+ <tr><td>Synodic day</td><td>{{ page.synodic_day }}</td></tr>
86
+ <tr><td>Axial tilt</td><td>{{ page.axial_tilt }}</td></tr>
87
+ {% endif %}
88
+ </table>
89
+
90
+ </section>
91
+
92
+ </section>
93
+
94
+ {% endif %}
95
+
96
+ <script src="/assets/js/toc.js"></script>
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <nav class="entry-index">
6
+
7
+ </nav>
8
+
9
+ <article class="entry entry-work">
10
+
11
+ <h1>{{ page.title }}</h1>
12
+
13
+ {{ content }}
14
+
15
+ </article>
16
+
17
+ <script src="/assets/js/toc.js"></script>
@@ -0,0 +1,22 @@
1
+ module Jekyll
2
+ module InterlinearGlossFilter # Liquid just uses the method name as the filter name; there's no extra level of name-mapping like there is with tags and blocks
3
+
4
+ def gloss(input) # will be available as the "gloss" filter
5
+ @text = input
6
+ # puts "<tr>"
7
+
8
+ # lexemes = @text.split(" ")
9
+ # lexemes.each do |word|
10
+ # puts "<td class=\"gloss_item\">#{word}</td>"
11
+ # end
12
+
13
+ # puts "</tr>"
14
+
15
+ # morphemic_analysis
16
+ # morphemic_gloss
17
+
18
+ end
19
+ end
20
+ end
21
+
22
+ Liquid::Template.register_filter(Jekyll::InterlinearGlossFilter)
@@ -0,0 +1,24 @@
1
+ module Jekyll
2
+ module Tags
3
+ class InterlinearGlossTag < Liquid::Block
4
+
5
+ require "shellwords"
6
+
7
+ # initialize is called when we encounter the {% interlinear %} Liquid tag; 'interlinear' is the tag name and anything immediately after it is passed in via the second argument
8
+ def initialize(tag_name, text, tokens)
9
+ super
10
+ # @text = text.shellsplit
11
+ # @wordcount = @text[0].length
12
+ # object_lang, morphemic_analysis, morphemic_gloss, target_lang
13
+ end
14
+
15
+ def render(context)
16
+ # "<table class=\"interlinear-gloss\"><tbody><tr><td colspan=\"7\">#{@text[0]}</td></tr>" + "<tr><td>#{@text[1]}</td></tr></tbody></table>"
17
+ end
18
+
19
+ end
20
+ end
21
+ end
22
+
23
+ # The register_tag method takes two arguments: the user-facing name of the tag [interlinear], and the class that implements it [InterlinearGlossTag].
24
+ Liquid::Template.register_tag('interlinear', Jekyll::Tags::InterlinearGlossTag)
data/_plugins/ipa.rb ADDED
@@ -0,0 +1,19 @@
1
+ module Jekyll
2
+ module Tags
3
+ class RenderPhoneticTag < Liquid::Tag
4
+
5
+ def initialize(tag_name, text, tokens)
6
+ super
7
+ @text = text
8
+ end
9
+
10
+ def render(context)
11
+ "<abbr class=\"gloss\" title=\"International Phonetic Alphabet\">IPA</abbr>: <span class=\"ipa\">#{@text}</span>"
12
+ end
13
+
14
+ end
15
+ end
16
+ end
17
+
18
+ # The register_tag method takes two arguments: the user-facing name of the tag [lang], and the class that implements it [DefineLanguageTag].
19
+ Liquid::Template.register_tag("ipa", Jekyll::Tags::RenderPhoneticTag)
data/_plugins/lang.rb ADDED
@@ -0,0 +1,27 @@
1
+ # usage: {% lang text[0] text[1] text[2] %}
2
+ # usage: {% lang ko 바이 괕 모 iced jelly dish %}
3
+ # text[0] = language code
4
+ # text[1] = the text, in latin script or not
5
+ # text[2] = the translation into english
6
+
7
+ module Jekyll
8
+ module Tags
9
+ class DefineLanguageTag < Liquid::Tag
10
+
11
+ require "shellwords"
12
+
13
+ def initialize(tag_name, text, tokens)
14
+ super
15
+ @text = text.shellsplit
16
+ end
17
+
18
+ def render(context)
19
+ "<abbr class=\"gloss\" title=\"#{@text[0]}\">#{@text[0]}</abbr>: <strong>#{@text[1]}</strong> <em>#{@text[2]}</em>"
20
+ end
21
+
22
+ end
23
+ end
24
+ end
25
+
26
+ # The register_tag method takes two arguments: the user-facing name of the tag [lang], and the class that implements it [DefineLanguageTag].
27
+ Liquid::Template.register_tag('lang', Jekyll::Tags::DefineLanguageTag)