jekyll-theme-paperwiki 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,41 @@
1
+ ---
2
+ # Jekyll page that redirects to a random page, post or document
3
+ # https://github.com/jekylltools/jekyll-random-redirect
4
+ # v1.6
5
+ permalink: /random
6
+ ---
7
+
8
+ {%- assign docs = site.posts -%}
9
+
10
+ {%- if site.random_redirect.pages == true -%}
11
+ {%- assign pages = site.documents | where_exp:"page","page.url != '/random/'" -%}
12
+ {%- assign docs = docs | concat: pages -%}
13
+ {%- endif -%}
14
+
15
+ {%- if site.random_redirect.documents == true -%}
16
+ {%- assign docs = docs | concat: site.documents | uniq -%}
17
+ {%- endif -%}
18
+
19
+ <script type="text/javascript">
20
+ var urls=[];
21
+
22
+ {% for doc in docs -%}
23
+ urls.push("{{ doc.url | absolute_url }}");
24
+ {% endfor -%}
25
+
26
+ var url = urls[Math.floor(Math.random()*urls.length)];
27
+ var link = document.createElement('link');
28
+ link.setAttribute('rel', 'canonical');
29
+ link.setAttribute('href', url);
30
+ document.head.appendChild(link);
31
+
32
+ if (typeof IE_fix != "undefined") {
33
+ document.write("Redirecting...");
34
+ var referLink = document.createElement("a");
35
+ referLink.href = url;
36
+ document.body.appendChild(referLink);
37
+ referLink.click();
38
+ } else {
39
+ window.location.replace(url);
40
+ }
41
+ </script>
data/_pages/search.md ADDED
@@ -0,0 +1,25 @@
1
+ ---
2
+ permalink: /search
3
+ title: Search results
4
+ ---
5
+
6
+ <h1>{{ page.title }}</h1>
7
+
8
+ <dl id="search-results"></dl>
9
+
10
+ <script>
11
+ window.pages = {
12
+ {% for page in site.documents %}
13
+ "{{ page.url | slugify }}": {
14
+ "title": "{{ page.title | xml_escape }}",
15
+ "content": {{ page.content | markdownify | strip_newlines | strip_html | jsonify }},
16
+ "url": "{{ site.url | append: page.url | xml_escape }}",
17
+ "path": "{{ page.url | xml_escape }}"
18
+ }{% unless forloop.last %},{% endunless %}
19
+ {% endfor %}
20
+ };
21
+ </script>
22
+
23
+
24
+ <script src="/assets/js/lunr.js"></script>
25
+ <script src="/assets/js/search.js"></script>
File without changes
File without changes
@@ -61,7 +61,6 @@ h3 {
61
61
  font-variant: small-caps;
62
62
  padding: 0.71em 0 0.9em 0;
63
63
  color: #828077;
64
- // opacity: 0.8;
65
64
  }
66
65
 
67
66
  a,
@@ -74,11 +73,7 @@ a:active {
74
73
  a:hover {
75
74
  color: $color-linkhover;
76
75
  }
77
- /*
78
- a:visited {
79
- color: $color-linkvisited;
80
- }
81
- */
76
+
82
77
  a:active {
83
78
  color: $color-linkactive;
84
79
  }
@@ -17,6 +17,8 @@
17
17
  }
18
18
  }
19
19
 
20
+
21
+
20
22
  .collections-content {
21
23
  grid-column: span 10 / auto;
22
24
 
@@ -35,6 +37,55 @@
35
37
  }
36
38
  }
37
39
 
40
+
41
+
42
+ .collections-header {
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: space-between;
46
+
47
+ padding: 1.5rem;
48
+ margin-bottom: 1rem;
49
+
50
+ background-color: $color-paperdark;
51
+ border: 1px solid #faf7f6;
52
+ border-radius: 1.5rem;
53
+ }
54
+
55
+ .collections-stats {
56
+ }
57
+
58
+ .collections-search {
59
+ }
60
+
61
+ .collections-searchbar {
62
+ width: 100%;
63
+ padding: 12px 16px;
64
+
65
+ border: 1px solid transparent;
66
+ border-radius: 1rem;
67
+
68
+ font-size: $fontsize-body;
69
+
70
+ transition: 0.25s;
71
+ appearance: none;
72
+ outline: none;
73
+ }
74
+
75
+ .collections-searchbar:hover {
76
+ border: 1px solid $color-launchpadsearch;
77
+ box-shadow: 0 0 6px $color-globalsearchbar;
78
+ }
79
+
80
+ .collections-searchbar:focus {
81
+ outline: none;
82
+ border-color: $color-globalsearchbar;
83
+ box-shadow: 0 0 6px $color-globalsearchbar;
84
+ transition: 0.25s;
85
+ }
86
+
87
+
88
+
38
89
  .reference-desk {
39
90
  display: grid;
40
91
  grid-template-columns: repeat(12, 1fr);
@@ -102,6 +153,8 @@
102
153
  }
103
154
 
104
155
  .collections-portal_card:hover {
156
+ border: 1px solid transparent;
157
+ box-shadow: 0 0 6px $color-projectborder;
105
158
  .portal-icon {
106
159
  color: $color-projectcard;
107
160
 
@@ -68,6 +68,21 @@
68
68
 
69
69
  .entry-summary {}
70
70
 
71
+ .entry-other_projects {
72
+ padding: 1rem;
73
+ margin: 1em 0;
74
+ border-radius: 1em;
75
+ background-color: #f9f7f6;
76
+ font-size: $fontsize-small;
77
+
78
+ ul {
79
+ list-style: none;
80
+ margin-left: 1rem;
81
+ padding: 0;
82
+ margin-bottom: 0;
83
+ }
84
+ }
85
+
71
86
  .entry-quickstats {
72
87
  grid-column: span 3 / auto;
73
88
  padding: 0.5em;
@@ -104,33 +119,60 @@
104
119
 
105
120
  .entry-tags {
106
121
  margin-bottom: 2em;
122
+ padding: 1rem;
123
+ border-radius: 1em;
124
+ background-color: #f9f7f6;
107
125
  font-size: $fontsize-small;
108
126
  text-transform: uppercase;
109
127
 
110
- ul {
111
- display: inline-flex;
112
- flex-wrap: wrap;
113
- list-style-type: none;
114
- margin: 0 1em 0 0;
115
- // border: 1px solid pink;
128
+ a {
129
+ text-decoration: none;
116
130
  }
131
+ }
117
132
 
118
- ul ul {
119
- display: inline-flex;
120
- flex-wrap: wrap;
121
- margin-right: .5em;
122
- // border: 1px solid pink;
123
- }
133
+ .entry-subhead_pair {
134
+ display: inline;
135
+ margin-right: 1em;
136
+ }
124
137
 
125
- li {
126
- // display: inline-flex;
127
- // flex-wrap: wrap;
128
- padding-right: .5em;
129
- // border: 1px solid pink;
130
- color: #9f9b97;
131
- }
138
+ .entry-subhead_key,
139
+ .entry-subhead_value {
140
+ display: inline;
141
+ }
132
142
 
133
- a {
134
- text-decoration: none;
143
+ .entry-subhead_key {
144
+ margin-right: 0.4em;
145
+ }
146
+
147
+ .entry-subhead_value {
148
+ margin-right: 0.9em;
149
+ }
150
+
151
+
152
+
153
+ a.footnote {
154
+ text-decoration: none;
155
+ }
156
+ a.footnote::before {
157
+ content: "[";
158
+ }
159
+ a.footnote::after {
160
+ content: "]";
161
+ }
162
+
163
+ .footnotes {
164
+ // grid-column: span 7 / auto;
165
+
166
+ padding: 1rem;
167
+ border-radius: 1em;
168
+ background-color: #f9f7f6;
169
+ font-size: $fontsize-small;
170
+ ol {
171
+ padding-left: 1rem;
172
+ margin: 0;
173
+ li {
174
+ margin: 0;
175
+ padding: 0;
176
+ }
135
177
  }
136
178
  }
@@ -35,6 +35,12 @@
35
35
 
36
36
  font-size: $fontsize-small;
37
37
  text-align: center;
38
+
39
+ p {
40
+ width: 60%;
41
+ margin-left: auto;
42
+ margin-right: auto;
43
+ }
38
44
  }
39
45
 
40
46
  .global-logo {
@@ -56,16 +62,18 @@
56
62
  }
57
63
 
58
64
  .global-search {
59
- padding-bottom: 4px;
60
- // border-bottom: 1px solid $color-bodytext;
65
+ padding-bottom: 2px;
61
66
  }
62
67
 
63
68
  .global-searchbar {
64
- padding: 0 0.5em;
65
- border: 1px solid #f5f2ef;
69
+ padding: 0.2rem 1rem;
70
+ border: 1px solid transparent;
66
71
  border-radius: 8px;
67
72
  font-size: $fontsize-small;
68
73
  transition: 0.25s;
74
+ appearance: none;
75
+ outline: none;
76
+ line-height: 2rem;
69
77
  }
70
78
 
71
79
  .global-searchbar::placeholder {
@@ -73,13 +81,14 @@
73
81
  }
74
82
 
75
83
  .global-searchbar:hover {
76
- border: 1px solid $color-globalsearchbar;
84
+ border: 1px solid $color-launchpadsearch;
85
+ box-shadow: 0 0 6px $color-globalsearchbar;
77
86
  }
78
87
 
79
88
  .global-searchbar:focus {
80
89
  outline: none;
81
90
  border-color: $color-globalsearchbar;
82
- box-shadow: 0 0 10px $color-globalsearchbar;
91
+ box-shadow: 0 0 6px $color-globalsearchbar;
83
92
  transition: 0.25s;
84
93
  }
85
94
 
@@ -98,12 +107,18 @@
98
107
 
99
108
  .global-nav-link {
100
109
  display: inline-block;
110
+ padding-top: 0.3rem;
101
111
 
102
112
  margin-right: 1.75rem;
103
113
 
114
+ border-bottom: 2px solid #f6bf5d;
115
+
104
116
  font-size: $fontsize-small;
105
117
  text-decoration: none;
106
118
  text-transform: uppercase;
119
+ &:hover {
120
+ opacity: 0.75;
121
+ }
107
122
  }
108
123
 
109
124
  .global-nav-link:visited {
@@ -26,26 +26,28 @@
26
26
  }
27
27
 
28
28
  .launchpad-searchbar {
29
- width: 40%;
30
-
29
+ width: 60%;
31
30
  padding: 12px 16px;
32
31
 
32
+ border: 1px solid transparent;
33
33
  border-radius: 1rem;
34
- border: 1px solid $color-launchpadsearchbar;
35
34
 
36
35
  font-size: $fontsize-body;
37
36
 
38
37
  transition: 0.25s;
38
+ appearance: none;
39
+ outline: none;
39
40
  }
40
41
 
41
- .launchpad-searchbar::placeholder {
42
- color: #f5a79d;
42
+ .launchpad-searchbar:hover {
43
+ border: 1px solid $color-launchpadsearch;
44
+ box-shadow: 0 0 6px $color-globalsearchbar;
43
45
  }
44
46
 
45
47
  .launchpad-searchbar:focus {
46
48
  outline: none;
47
- border-color: $color-launchpadsearchbar;
48
- box-shadow: 0 0 10px $color-launchpadsearchbar;
49
+ border-color: $color-globalsearchbar;
50
+ box-shadow: 0 0 6px $color-globalsearchbar;
49
51
  transition: 0.25s;
50
52
  }
51
53
 
@@ -54,16 +56,55 @@
54
56
  font-size: $fontsize-larger;
55
57
  }
56
58
 
59
+ .launchpad-search_select {
60
+ padding: 16px 16px 17px 16px;
61
+
62
+ border: 1px solid transparent;
63
+ border-radius: 1rem;
64
+
65
+ background-color: $color-globalsearchbar;
66
+
67
+ font-size: $fontsize-body;
68
+
69
+ transition: 0.25s;
70
+ // appearance: none;
71
+ }
72
+
73
+ .launchpad-search_select:hover {
74
+ border: 1px solid $color-launchpadsearch;
75
+ box-shadow: 0 0 6px $color-globalsearchbar;
76
+ }
77
+
78
+ .launchpad-search_select:focus {
79
+ outline: none;
80
+ border-color: $color-globalsearchbar;
81
+ box-shadow: 0 0 6px $color-globalsearchbar;
82
+ transition: 0.25s;
83
+ }
84
+
57
85
  .launchpad-search_submit {
58
86
  padding: 12px 20px;
59
87
 
60
88
  background: $color-launchpadsearchbar;
61
- border: 1px solid $color-launchpadsearchbar;
89
+ border: 1px solid transparent;
62
90
  border-radius: 1rem;
63
91
 
64
92
  font-size: $fontsize-body;
65
93
  }
66
94
 
95
+ .launchpad-search_submit:hover {
96
+ border: 1px solid $color-launchpadsearch;
97
+ box-shadow: 0 0 6px $color-globalsearchbar;
98
+ transition: 0.25s;
99
+ }
100
+
101
+ .launchpad-search_submit:focus {
102
+ outline: none;
103
+ border-color: $color-globalsearchbar;
104
+ box-shadow: 0 0 6px $color-globalsearchbar;
105
+ transition: 0.25s;
106
+ }
107
+
67
108
  .launchpad-projects {
68
109
  grid-column: span 12 / auto;
69
110
 
@@ -72,7 +113,13 @@
72
113
  grid-gap: 32px;
73
114
  }
74
115
 
75
- .launchpad-project_card {
116
+
117
+
118
+ /*------------------------------------*\
119
+ # !IF MULTIPLE PROJECTS ARE SHOWN
120
+ \*------------------------------------*/
121
+
122
+ .launchpad-card {
76
123
  grid-column: span 4 / auto;
77
124
 
78
125
  padding: 36px 28px 28px;
@@ -103,11 +150,13 @@
103
150
  }
104
151
  }
105
152
 
106
- .launchpad-project_card:link {
153
+ .launchpad-card:link {
107
154
  color: $color-bodytext;
108
155
  }
109
156
 
110
- .launchpad-project_card:hover {
157
+ .launchpad-card:hover {
158
+ border: 1px solid transparent;
159
+ box-shadow: 0 0 6px $color-projectborder;
111
160
  .project-icon {
112
161
  background-color: $color-projecthover;
113
162
 
@@ -118,6 +167,31 @@
118
167
  color: $color-bodytext;
119
168
  }
120
169
 
121
- .launchpad-project_card:visited {
170
+ .launchpad-card:visited {
122
171
  color: $color-bodytext;
123
172
  }
173
+
174
+
175
+
176
+ /*------------------------------------*\
177
+ # !IF ONLY ONE PROJECT IS SHOWN
178
+ \*------------------------------------*/
179
+
180
+ .launchpad-card_wiki {
181
+ background-color: $color-projecthover;
182
+ border-radius: 1.5rem;
183
+ border: 1px solid $color-projecthover;
184
+ }
185
+
186
+ .launchpad-card_wiki:hover {
187
+ background-color: $color-projecthover;
188
+
189
+ color: $color-projectcard;
190
+ .project-icon {
191
+ background-color: $color-paperlight;
192
+
193
+ color: $color-projectcard;
194
+
195
+ transition: 0.2s;
196
+ }
197
+ }
Binary file
Binary file
Binary file
data/assets/js/search.js CHANGED
@@ -40,7 +40,8 @@ var resultPages = results.map(function (match) {
40
40
  resultsString = "";
41
41
  resultPages.forEach(function (r) {
42
42
  resultsString += "<dt>";
43
- resultsString += "<a class='result' href='" + r.url + "'>" + r.title + "</a></dt>";
44
- resultsString += "<dd>" + r.content.substring(0, 200) + "..." + "</dd>";
43
+ resultsString += "<a class='result' href='" + r.url + "'>" + r.title + "</a></dt>";
44
+ // resultsString += "<dd><a href='/" + r.collection + "'>" + r.collection + "</a>";
45
+ resultsString += "<dd>" + r.content.substring(0, 200) + "..." + "</dd>";
45
46
  });
46
47
  document.querySelector("#search-results").innerHTML = resultsString;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-paperwiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pomeloshark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-26 00:00:00.000000000 Z
11
+ date: 2023-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -34,22 +34,27 @@ files:
34
34
  - LICENSE.txt
35
35
  - README.md
36
36
  - _config.yml
37
+ - _data/navigation.yml
38
+ - _includes/collections_header.html
37
39
  - _includes/collections_sidebar.html
38
40
  - _includes/global_footer.html
39
41
  - _includes/global_head.html
40
42
  - _includes/global_header.html
41
- - _layouts/_dictionary.html
42
43
  - _layouts/collections.html
43
44
  - _layouts/default.html
45
+ - _layouts/entry.html
44
46
  - _layouts/grammar.html
47
+ - _layouts/launchpad.html
45
48
  - _layouts/page.html
46
49
  - _layouts/portal.html
47
50
  - _layouts/post.html
48
51
  - _layouts/reference_desk.html
49
52
  - _layouts/wiki.html
50
53
  - _layouts/work.html
51
- - _plugins/_gloss.rb
52
- - _plugins/_interlinear.rb
54
+ - _pages/random.html
55
+ - _pages/search.md
56
+ - _plugins/gloss.rb
57
+ - _plugins/interlinear.rb
53
58
  - _plugins/ipa.rb
54
59
  - _plugins/lang.rb
55
60
  - _sass/partials/_base.scss
@@ -103,7 +108,8 @@ files:
103
108
  - assets/fonts/RemixIcon/remixicon.woff
104
109
  - assets/fonts/RemixIcon/remixicon.woff2
105
110
  - assets/images/favicon.png
106
- - assets/js/list.js
111
+ - assets/images/wiki1.png
112
+ - assets/images/wiki2.png
107
113
  - assets/js/lunr.js
108
114
  - assets/js/search.js
109
115
  - assets/js/toc.js
@@ -1,10 +0,0 @@
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--->