jekyll-theme-paperwiki 0.1.21 → 0.1.22

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: 32430026a29a1decc9d92705e3f1336395a65c9be44f3a387205cec506d67715
4
- data.tar.gz: 733272820457e6703e6daa126934a071a6b60a93c444919aad1e89c95ffb26d1
3
+ metadata.gz: 78d439ead8b550000787d732b642e1829573ebf29469d5b6ff9f8d0b0c18e66e
4
+ data.tar.gz: f561e73ae1dab1cdbf85d6be9916eb28190d4d394dffc5e4f23d2260dab94d42
5
5
  SHA512:
6
- metadata.gz: f79e6b438e249885f89bcf44e0edcfa6b979a4632135476a74c961abe165485a7949584720ad868806f86c80df712a1b13e6f3e296d821e6279b310cc77bf20e
7
- data.tar.gz: f45184bb764bc317f2b38ed45544df362e22144f272a00329eb9517bc3145a2f0b48ab23881466c90d1277937913a0c4a286a5422a46f4bd4395c3ff517a094f
6
+ metadata.gz: e9f307d6177caaa530e338c2994bb2058b85b07bf511eb836b98cb8eca87fe528740b5d2d6fd69ff0ccd6c6e99e05499c2b7ff4f987d5e8978a9556f9d93b9b1
7
+ data.tar.gz: bb3cd0ed030574bac2b84d26f9c147c7adceb8c7c78ed77bf0537973e0693567f65f569a9ecc305c3b84b10cade78da0c6aa308fc62c1f22b011c091da9f5ec0
data/_config.yml ADDED
@@ -0,0 +1,119 @@
1
+ # Welcome to Jekyll!
2
+ #
3
+ # This config file is meant for settings that affect your whole blog, values
4
+ # which you are expected to set up once and rarely edit after that. If you find
5
+ # yourself editing this file very often, consider using Jekyll's data files
6
+ # feature for the data you need to update frequently.
7
+ #
8
+ # For technical reasons, this file is *NOT* reloaded automatically when you use
9
+ # 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10
+ #
11
+ # If you need help with YAML syntax, here are some quick references for you:
12
+ # https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13
+ # https://learnxinyminutes.com/docs/yaml/
14
+ #
15
+ # Site settings
16
+ # These are used to personalize your new site. If you look in the HTML files,
17
+ # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18
+ # You can create any custom variable you would like, and they will be accessible
19
+ # in the templates via {{ site.myvariable }}.
20
+
21
+ title: Encyclopedia
22
+ email: your-email@example.com
23
+ description: >- # this means to ignore newlines until "baseurl:"
24
+ Write an awesome description for your new site here. You can edit this
25
+ line in _config.yml. It will appear in your document head meta (for
26
+ Google search results) and in your feed.xml site description.
27
+ baseurl: "" # the subpath of your site, e.g. /blog
28
+ url: "" # the base hostname & protocol for your site, e.g. http://example.com
29
+ github_username: pomeloshark
30
+
31
+ # Build settings
32
+ include: ['_pages'] # forces custom pages to be organized into their own directory
33
+ # theme: jekyll-theme-paperwiki
34
+
35
+ # Enables random page functionality
36
+ random_redirect:
37
+ posts: false # excludes posts from random page functionality
38
+
39
+ # Display tags at the top of articles. Change to false if you want them to display
40
+ # at the bottom instead.
41
+ entry_tags_top: true
42
+
43
+
44
+
45
+ ##################################################################################
46
+ # If you set this to true, MAKE SURE to change the collections and defaults below,
47
+ # otherwise the site will not behave correctly!
48
+ ##################################################################################
49
+ multi_projects: true
50
+
51
+ collections_dir: collections # specifies the location of the collections
52
+ collections:
53
+ wiki:
54
+ output: true # creates a rendered page for each document in the collection
55
+ permalink: /:collection/:title # outputs /wiki/name-of-article, no file extension
56
+ # If you want to have more than one collection and have set multi_projects to true, just uncomment the below lines, rename the collection, and create a corresponding folder in your collections folder. This folder must have a preceding underscore, as in '_wiki'. You can have as many collections as you like; make sure to both create a folder for each and make an entry for each in your projects.yml.
57
+ works:
58
+ output: true
59
+ permalink: /:collection/:title
60
+ grammars:
61
+ output: true
62
+ permalink: /:collection/:title
63
+
64
+
65
+
66
+ # Front matter defaults, so you don't need to set layouts on every new page.
67
+ # As long as pages are in the correct folder, they'll automatically have the
68
+ # correct layout. You can override this via each page's front matter.
69
+ defaults:
70
+ -
71
+ scope:
72
+ path: "" # an empty string here means all files in the project
73
+ type: "pages" # narrows it down to only all pages, instead of posts or drafts; not particularly relevant for this theme since blogging is not featured heavily
74
+ values:
75
+ layout: "page"
76
+ permalink: "/:path/:basename"
77
+ -
78
+ scope:
79
+ path: "collections" # all pages in the collections folder
80
+ values:
81
+ layout: "entry" # the basic layout that wiki and other entry pages are built on
82
+ -
83
+ scope:
84
+ path: "_wiki" # all pages in the wiki folder
85
+ values:
86
+ layout: "wiki"
87
+ # If you want to have more than one collection and have set multi_projects to true, just uncomment the below lines and add in your collection's name, again with preceding underscore.
88
+ -
89
+ scope:
90
+ path: "_works" # all pages in the corresponding folder
91
+ values:
92
+ layout: "work" # see the about page for more on entry layouts
93
+ -
94
+ scope:
95
+ path: "_grammars" # all pages in the corresponding folder
96
+ values:
97
+ layout: "grammar" # see the about page for more on entry layouts
98
+
99
+
100
+
101
+ # Exclude from processing.
102
+ # The following items will not be processed, by default.
103
+ # Any item listed under the `exclude:` key here will be automatically added to
104
+ # the internal "default list".
105
+ #
106
+ # Excluded items can be processed by explicitly listing the directories or
107
+ # their entries' file path in the `include:` list.
108
+ #
109
+ # exclude:
110
+ # - .sass-cache/
111
+ # - .jekyll-cache/
112
+ # - gemfiles/
113
+ # - Gemfile
114
+ # - Gemfile.lock
115
+ # - node_modules/
116
+ # - vendor/bundle/
117
+ # - vendor/cache/
118
+ # - vendor/gems/
119
+ # - vendor/ruby/
data/_data/navigation.yml CHANGED
@@ -1,3 +1,4 @@
1
+ # These are the links that appear in the topbar on every page.
1
2
  - name: About
2
3
  link: /about
3
4
  - name: Random
@@ -1,17 +1,23 @@
1
1
  <section class="collections-header">
2
2
 
3
3
  <section class="collections-stats">
4
+
4
5
  {% if site.multi_projects %}
6
+
5
7
  {% for item in site.data.projects %}
8
+
6
9
  {% if page.url contains item.link %}
7
10
  Total number of {{ item.name | downcase }} entries:
8
11
  <strong>{{ site.[page.project].size }}</strong>
9
12
  {% endif %}
13
+
10
14
  {% endfor %}
15
+
11
16
  {% else %}
12
17
  Total number of wiki entries:
13
18
  <strong>{{ site.wiki.size }}</strong>
14
19
  {% endif %}
20
+
15
21
  </section>
16
22
 
17
23
 
@@ -19,13 +25,17 @@
19
25
  <section class="collections-search">
20
26
 
21
27
  {% if site.multi_projects %}
28
+
22
29
  {% for item in site.data.projects %}
30
+
23
31
  {% if page.url contains item.link %}
24
32
  <form action="{{ item.link }}:search" method="GET">
25
33
  <input required type="search" class="collections-searchbar" placeholder="Search all {{ item.name | downcase }} entries" name="q">
26
34
  </form>
27
35
  {% endif %}
36
+
28
37
  {% endfor %}
38
+
29
39
  {% else %}
30
40
  <form action="/wiki:search" method="GET">
31
41
  <input required type="search" class="collections-searchbar" placeholder="Search all wiki entries" name="q">
@@ -1,17 +1,21 @@
1
1
  <nav class="collections-sidebar">
2
2
 
3
3
  {% if site.multi_projects %}
4
+
4
5
  {% for item in site.data.projects %}
6
+
5
7
  {% if page.url contains item.link %}
6
- <ul>
7
- <li><a href="{{ item.link }}">Main page</a></li>
8
- <li><a href="{{ item.link }}:contents">Contents</a></li>
9
- <li><a href="{{ item.link }}:all">All entries</a></li>
10
- <li><a href="{{ item.link }}:random">Random article</a></li>
11
- <li><a href="{{ item.link }}:about">About</a></li>
12
- </ul>
8
+ <ul>
9
+ <li><a href="{{ item.link }}">Main page</a></li>
10
+ <li><a href="{{ item.link }}:contents">Contents</a></li>
11
+ <li><a href="{{ item.link }}:all">All entries</a></li>
12
+ <li><a href="{{ item.link }}:random">Random article</a></li>
13
+ <li><a href="{{ item.link }}:about">About</a></li>
14
+ </ul>
13
15
  {% endif %}
16
+
14
17
  {% endfor %}
18
+
15
19
  {% else %}
16
20
  <ul>
17
21
  <li><a href="/wiki">Main page</a></li>
@@ -13,6 +13,7 @@
13
13
 
14
14
  <span class="entry-subhead_key">Categories:</span>
15
15
  <span>
16
+ <!-- This logic iterates through every "category" item in the front matter and generates a link for each one. -->
16
17
  {% for item in page.categories %}
17
18
  <a href="/{{ page.collection }}/category:{{ item | slugify }}" class="entry-subhead_value">
18
19
  {{ item }}
@@ -26,8 +27,9 @@
26
27
 
27
28
  <span class="entry-subhead_key">Tags:</span>
28
29
  <span>
30
+ <!-- This logic iterates through every "tags" item in the front matter and generates a link for each one. -->
29
31
  {% for item in page.tags %}
30
- <a href="/{{ page.category }}/tag:{{ item }}" class="entry-subhead_value">
32
+ <a href="/{{ page.collection }}/tag:{{ item }}" class="entry-subhead_value">
31
33
  {{ item }}
32
34
  </a>
33
35
  {% endfor %}
@@ -1,14 +1,17 @@
1
1
  <header class="global-header">
2
2
 
3
3
  <h1 class="global-logo">
4
+
4
5
  <a href="/">
5
6
  <img src="/assets/images/favicon.png" class="global-favicon">
6
7
  {{ site.title | capitalize }}
7
8
  </a>
9
+
8
10
  </h1>
9
11
 
10
12
  <nav class="global-nav">
11
13
 
14
+ <!-- This logic iterates through every item in the data.navigation.yml file and generates a link for each one. -->
12
15
  {% for item in site.data.navigation %}
13
16
  <a href="{{ item.link }}" class="global-nav-link">
14
17
  {{ item.name }}
@@ -22,4 +22,5 @@
22
22
  } else {
23
23
  window.location.replace(url);
24
24
  }
25
+
25
26
  </script>
@@ -3,14 +3,27 @@
3
3
  {% if page.other_projects %}
4
4
 
5
5
  <section class="entry-other_projects">
6
+
6
7
  View in other collections:
8
+
7
9
  <ul>
10
+
8
11
  {% for item in page.other_projects %}
9
- <li>
10
- <a href="/{{ item }}{{ page.url | remove_first: "/wiki" }}">{{ item | capitalize }}</a>
11
- </li>
12
+
13
+ {% if other_projects == "grammars" %}
14
+ <li>
15
+ <a href="/{{ item }}{{ page.language | remove_first: "/wiki" }}">{{ item | capitalize }}</a>
16
+ </li>
17
+ {% else %}
18
+ <li>
19
+ <a href="/{{ item }}{{ page.url | remove_first: "/wiki" }}">{{ item | capitalize }}</a>
20
+ </li>
21
+ {% endif %}
22
+
12
23
  {% endfor %}
24
+
13
25
  </ul>
26
+
14
27
  </section>
15
28
 
16
29
  {% endif %}
@@ -19,10 +32,15 @@
19
32
 
20
33
  {% if page.image %}
21
34
  <figure>
35
+
22
36
  <img src="{{ page.image }}" width=auto class="entry-image">
37
+
23
38
  {% if page.image_caption %}
24
- <figcaption>{{ page.image_caption }}</figcaption>
39
+ <figcaption>
40
+ {{ page.image_caption }}
41
+ </figcaption>
25
42
  {% endif %}
43
+
26
44
  </figure>
27
45
  {% endif %}
28
46
 
@@ -33,20 +51,15 @@
33
51
  <section class="entry-quickstats">
34
52
 
35
53
  <table class="stats-table">
54
+
55
+ <!-- This logic iterates through every "quickstats" key-value pair in the front matter and generates a table row for each one. -->
36
56
  {% for stat in page.quickstats %}
37
- {% if stat[0] == "colspan_2" %}
38
- <tr>
39
- <td colspan="2" class="entry-quickstats_double">
40
- {{ stat[1] | replace: "_", " " | capitalize }}
41
- </td>
42
- </tr>
43
- {% else %}
44
- <tr>
45
- <td>{{ stat[0] | replace: "_", " " | capitalize }}</td>
46
- <td>{{ stat[1] }}</td>
47
- </tr>
48
- {% endif %}
57
+ <tr>
58
+ <td>{{ stat[0] | replace: "_", " " | capitalize }}</td>
59
+ <td>{{ stat[1] }}</td>
60
+ </tr>
49
61
  {% endfor %}
62
+
50
63
  </table>
51
64
 
52
65
  </section>
@@ -7,7 +7,7 @@
7
7
  <section class="collections-content">
8
8
 
9
9
  {% if page.title %}
10
- <h1>{{ page.title }}</h1>
10
+ <h1>{{ page.title }}</h1>
11
11
  {% endif %}
12
12
 
13
13
  {{ content }}
data/_layouts/portal.html CHANGED
@@ -3,6 +3,7 @@
3
3
  ---
4
4
 
5
5
  {% for item in site.data.portals_wiki %}
6
+
6
7
  {% if page.title contains item.name %}
7
8
 
8
9
  <ul class="portal-list">
@@ -10,25 +11,28 @@
10
11
  {% for item in item.categories %}
11
12
 
12
13
  <li class="portal-cat">
14
+
13
15
  <a href="{{ item.link }}">{{ item.cat }}</a>
14
16
 
15
17
  {% if item.subcategories %}
18
+
16
19
  <ul class="portal-subcat_list">
17
20
 
18
21
  {% 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>
22
+ <li class="portal-subcat_inline">
23
+ <a href="{{ item.link }}" class="portal-subcat">{{ item.subcat }}</a>
24
+
25
+ {% if item.tags %}
26
+
27
+ {% for item in item.tags %}
28
+ <a href="" class="portal-tag">{{ item.tag }}</a>
29
+ {% endfor %}
30
+ {% endif %}
31
+ </li>
29
32
  {% endfor %}
30
33
 
31
34
  </ul>
35
+
32
36
  {% endif %}
33
37
 
34
38
  </li>
@@ -38,4 +42,5 @@
38
42
  </ul>
39
43
 
40
44
  {% endif %}
45
+
41
46
  {% endfor %}
data/_layouts/random.html CHANGED
@@ -8,7 +8,7 @@
8
8
  {%- assign docs = site.documents -%}
9
9
 
10
10
  {%- if site.random_redirect.posts == true -%}
11
- {%- assign docs = docs | concat: site.posts -%}
11
+ {%- assign docs = docs | concat: site.posts -%}
12
12
  {%- endif -%}
13
13
 
14
14
  {% include random_redirect.html %}
@@ -5,27 +5,34 @@
5
5
  {% include collections_header.html %}
6
6
 
7
7
 
8
+
8
9
  <section class="reference-desk">
9
10
 
10
- <header class="collections-portals">
11
- <nav class="collections-portals_grid">
12
-
13
- {% for item in site.data.projects %}
14
- {% if page.url contains item.link %}
15
- {% for item in item.portals %}
16
- <a href="{{ item.link }}" class="collections-portal_card">
17
- <header>
18
- <i class="{{ item.icon }} portal-icon"></i>
19
- {{ item.portal }}
20
- </header>
21
- {{ item.summary }}
22
- </a>
23
- {% endfor %}
24
- {% endif %}
25
- {% endfor %}
26
-
27
- </nav>
28
- </header>
11
+ <header class="collections-portals">
12
+
13
+ <nav class="collections-portals_grid">
14
+
15
+ {% for item in site.data.projects %}
16
+
17
+ {% if page.url contains item.link %}
18
+
19
+ {% for item in item.portals %}
20
+ <a href="{{ item.link }}" class="collections-portal_card">
21
+ <header>
22
+ <i class="{{ item.icon }} portal-icon"></i>
23
+ {{ item.portal }}
24
+ </header>
25
+ {{ item.summary }}
26
+ </a>
27
+ {% endfor %}
28
+
29
+ {% endif %}
30
+
31
+ {% endfor %}
32
+
33
+ </nav>
34
+
35
+ </header>
29
36
 
30
37
  <!---
31
38
 
@@ -1,6 +1,7 @@
1
1
  /*------------------------------------*\
2
2
  # BASE STYLING
3
- # styling universal to all pages
3
+ # styling universal to all pages:
4
+ # typography, layout, inputs
4
5
  \*------------------------------------*/
5
6
 
6
7
  html {
@@ -10,6 +10,11 @@
10
10
 
11
11
  border-left: 1px solid $color-article_border;
12
12
  border-right: 1px solid $color-article_border;
13
+
14
+ ul,
15
+ li {
16
+ margin-right: 0;
17
+ }
13
18
  }
14
19
 
15
20
  .entry_wiki,
@@ -1,6 +1,7 @@
1
1
  /*------------------------------------*\
2
2
  # GLOBAL STYLING
3
- # components universal to all pages
3
+ # components universal to all pages:
4
+ # header and footer
4
5
  \*------------------------------------*/
5
6
 
6
7
  .global-header,
@@ -16,6 +17,8 @@
16
17
  position: sticky;
17
18
  top: 0;
18
19
 
20
+ z-index: 100;
21
+
19
22
  display: flex;
20
23
  align-items: center;
21
24
  justify-content: space-between;
data/assets/.DS_Store ADDED
Binary file
data/assets/css/css.scss CHANGED
@@ -2,4 +2,5 @@
2
2
  # Front matter comment to ensure Jekyll properly reads file.
3
3
  ---
4
4
 
5
+ /* This file imports all of the SCSS to convert it into CSS that Jekyll can read. */
5
6
  @import "style";
Binary file
Binary file