jekyll-theme-paperwiki 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.
data/_pages/random.html DELETED
@@ -1,41 +0,0 @@
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 DELETED
@@ -1,25 +0,0 @@
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>
data/_pages/wiki/wiki.md DELETED
@@ -1,4 +0,0 @@
1
- ---
2
- layout: reference_desk
3
- permalink: /wiki
4
- ---
@@ -1,13 +0,0 @@
1
- ---
2
- layout: collections
3
- title: All wiki articles
4
- permalink: /wiki:all
5
- ---
6
-
7
- <ul class="collections_list">
8
- {% for wiki in site.wiki %}
9
- <li>
10
- <a href="{{ wiki.url }}">{{ wiki.title }}</a>
11
- </li>
12
- {% endfor %}
13
- </ul>
@@ -1,19 +0,0 @@
1
- ---
2
- layout: collections
3
- title: Wiki contents
4
- permalink: /wiki:contents
5
- ---
6
-
7
- The information in this wiki is organized into the following subject portals. Each portal broadly surveys and is further organized into various levels of subcategories.
8
-
9
- {% for item in site.data.portals_wiki %}
10
- <dl class="">
11
- <dd><a href="{{ item.link }}">{{ item.name }}</a></dd>
12
- <dt>{{ item.contents }}</dt>
13
- </dl>
14
- {% endfor %}
15
-
16
- ## Special categories
17
-
18
- + Timelines
19
- + Glossaries
@@ -1,41 +0,0 @@
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: /wiki:random
6
- ---
7
-
8
- {%- assign docs = site.posts -%}
9
-
10
- {%- if site.random_redirect.pages == true -%}
11
- {%- assign pages = site.wiki | 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>
@@ -1,24 +0,0 @@
1
- ---
2
- permalink: /wiki: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.wiki %}
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
- <script src="/assets/js/lunr.js"></script>
24
- <script src="/assets/js/search.js"></script>