jekyll-citations 1.0.0 → 2.0.0
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 +4 -4
- data/LICENSE +24 -24
- data/README.md +52 -43
- data/_layouts/bib.html +10 -10
- data/_layouts/compress.html +10 -10
- data/_layouts/default.html +17 -17
- data/_layouts/home.html +17 -46
- data/_layouts/list.html +22 -12
- data/_sass/list.scss +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1842e2e99f88b89aaf414200599d7b86d077c85dc4b987ae670c32f217c13a4d
|
4
|
+
data.tar.gz: 8c4169a20f1637b244ee9d9078be75a720e71fe5b9fbb257042fc279aafd5c09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9fde0e095bfcc72a86364d926f07f9be776f129d38470e62ca9d43d89c2a343e92c6efe952c43389b42279aa41f24be8d3705589bc32e231a0dbc35c70f0e73
|
7
|
+
data.tar.gz: e35ab0b660a563617473661c3553f4065b5a8ff53b23e31db4a1f3c76cc423f64a2409a1b6d20d056a943b9113a31380aa919e79832c0381991ef2b86ded79eb
|
data/LICENSE
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
BSD 2-Clause License
|
2
|
-
|
3
|
-
Copyright (c) 2021, Matthew Wildrick Thomas
|
4
|
-
All rights reserved.
|
5
|
-
|
6
|
-
Redistribution and use in source and binary forms, with or without
|
7
|
-
modification, are permitted provided that the following conditions are met:
|
8
|
-
|
9
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
10
|
-
list of conditions and the following disclaimer.
|
11
|
-
|
12
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
13
|
-
this list of conditions and the following disclaimer in the documentation
|
14
|
-
and/or other materials provided with the distribution.
|
15
|
-
|
16
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
17
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
18
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
19
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
20
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
21
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
22
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
23
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
24
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
1
|
+
BSD 2-Clause License
|
2
|
+
|
3
|
+
Copyright (c) 2021, Matthew Wildrick Thomas
|
4
|
+
All rights reserved.
|
5
|
+
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
8
|
+
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
10
|
+
list of conditions and the following disclaimer.
|
11
|
+
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
14
|
+
and/or other materials provided with the distribution.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
17
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
18
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
20
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
21
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
22
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
23
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
24
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
25
25
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
CHANGED
@@ -1,44 +1,53 @@
|
|
1
|
-
# Citation generator
|
2
|
-
|
3
|
-
## How it works
|
4
|
-
|
5
|
-
You can see the template for the bibliography [here](_layouts/bib.html) and the template for the lists [here](_layouts/list.html).
|
6
|
-
|
7
|
-
### Lists
|
8
|
-
|
9
|
-
Basically, for every tag (eg. reputation), the [list template](_layouts/list.html) loops over the entire database and only returns papers that have this tag. The syntax looks pretty weird because it's written in a template language called liquid. I used it because GitHub can read liquid templates to generate the [site](https://cet.econ.northwestern.edu/dekel).
|
10
|
-
|
11
|
-
I describe the steps below
|
12
|
-
1. Sort all papers in reverse chronological order
|
13
|
-
```
|
14
|
-
{% assign sorted = site.papers | sort:"year" | reverse %}
|
15
|
-
```
|
16
|
-
2. Start a for loop over the sorted papers
|
17
|
-
```
|
18
|
-
{% for paper in sorted %}
|
19
|
-
```
|
20
|
-
3. Continue if the page does not filter by category (Decision Theory/Game Theory) or if the category matches the filter.
|
21
|
-
```
|
22
|
-
{% if page.category == nil or paper.categories contains page.category %}
|
23
|
-
```
|
24
|
-
4. same thing but with tags (reputation, mechanism design, etc)
|
25
|
-
```
|
26
|
-
{% if page.tag == nil or paper.tags contains page.tag %}
|
27
|
-
```
|
28
|
-
5. Run the specific HTML to be repeated in the list using variables from the [database](_data\papers.yml). It also checks to see if the paper is single authored and reacts accordingly.
|
29
|
-
```
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
1
|
+
# Citation generator
|
2
|
+
|
3
|
+
## How it works
|
4
|
+
|
5
|
+
You can see the template for the bibliography [here](_layouts/bib.html) and the template for the lists [here](_layouts/list.html).
|
6
|
+
|
7
|
+
### Lists
|
8
|
+
|
9
|
+
Basically, for every tag (eg. reputation), the [list template](_layouts/list.html) loops over the entire database and only returns papers that have this tag. The syntax looks pretty weird because it's written in a template language called liquid. I used it because GitHub can read liquid templates to generate the [site](https://cet.econ.northwestern.edu/dekel).
|
10
|
+
|
11
|
+
I describe the steps below
|
12
|
+
1. Sort all papers in reverse chronological order
|
13
|
+
```
|
14
|
+
{% assign sorted = site.papers | sort:"year" | reverse %}
|
15
|
+
```
|
16
|
+
2. Start a for loop over the sorted papers
|
17
|
+
```
|
18
|
+
{% for paper in sorted %}
|
19
|
+
```
|
20
|
+
3. Continue if the page does not filter by category (Decision Theory/Game Theory) or if the category matches the filter.
|
21
|
+
```
|
22
|
+
{% if page.category == nil or paper.categories contains page.category %}
|
23
|
+
```
|
24
|
+
4. same thing but with tags (reputation, mechanism design, etc)
|
25
|
+
```
|
26
|
+
{% if page.tag == nil or paper.tags contains page.tag %}
|
27
|
+
```
|
28
|
+
5. Run the specific HTML to be repeated in the list using variables from the [database](_data\papers.yml). It also checks to see if the paper is single authored and reacts accordingly.
|
29
|
+
```
|
30
|
+
<p>
|
31
|
+
<a href="{{ site.url }}{{ site.baseurl }}/pdf/{{ paper.pdf }}" target="_blank">{{ paper.title }}</a>
|
32
|
+
{%- if paper.authors.size > 1 -%}
|
33
|
+
{{ ' ' }}(with {{ paper.authors | where_exp:"item", "item != site.citations.author" | join: " and "}})
|
34
|
+
{%- endif %},
|
35
|
+
{% if paper.journal -%}
|
36
|
+
<em>{{ paper.journal }}</em>,
|
37
|
+
{%- endif %}
|
38
|
+
{{ paper.year }}
|
39
|
+
<a href="{{ paper.url | absolute_url }}" target="_blank">[bib]</a>
|
40
|
+
</p>
|
41
|
+
```
|
42
|
+
6. Close all the if statements and the fir loop
|
43
|
+
```
|
44
|
+
{% endif %}
|
45
|
+
{% endif %}
|
46
|
+
{% endfor %}
|
47
|
+
```
|
48
|
+
|
49
|
+
### Bibs
|
50
|
+
|
51
|
+
The [bib template](_layouts/bib.html) is more self explanatory. For each paper, it just dumps all of the information from the database into bib format.
|
52
|
+
|
44
53
|
If you do not have access to this repository, you can email someone who committed recently. You should be able to find my email [on my GitHub profile](https://github.com/mwt).
|
data/_layouts/bib.html
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html><head></head><body><pre><code>@article{% raw %}{{% endraw %}{{page.id_key}},
|
3
|
-
title = "{{ page.title }}",
|
4
|
-
author = "{{ page.authors | join: " and "}}"{% if page.journal %},
|
5
|
-
journal = "{{ page.journal }}"{% endif %}{% if page.vol %},
|
6
|
-
volume = "{{ page.vol }}"{% endif %}{% if page.num %},
|
7
|
-
number = "{{ page.num }}"{% endif %}{% if page.pages %},
|
8
|
-
pages = "{{ page.pages }}"{% endif %}{% if page.year %},
|
9
|
-
year = "{{ page.year }}"{% endif %}{% if page.pub %},
|
10
|
-
publisher = "{{ page.pub }}"{% endif %}
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html><head></head><body><pre><code>@article{% raw %}{{% endraw %}{{page.id_key}},
|
3
|
+
title = "{{ page.title }}",
|
4
|
+
author = "{{ page.authors | join: " and "}}"{% if page.journal %},
|
5
|
+
journal = "{{ page.journal }}"{% endif %}{% if page.vol %},
|
6
|
+
volume = "{{ page.vol }}"{% endif %}{% if page.num %},
|
7
|
+
number = "{{ page.num }}"{% endif %}{% if page.pages %},
|
8
|
+
pages = "{{ page.pages }}"{% endif %}{% if page.year %},
|
9
|
+
year = "{{ page.year }}"{% endif %}{% if page.pub %},
|
10
|
+
publisher = "{{ page.pub }}"{% endif %}
|
11
11
|
{% raw %}}{% endraw %}</code></pre></body></html>
|
data/_layouts/compress.html
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
---
|
2
|
-
# Jekyll layout that compresses HTML
|
3
|
-
# v3.1.0
|
4
|
-
# http://jch.penibelst.de/
|
5
|
-
# © 2014–2015 Anatol Broder
|
6
|
-
# MIT License
|
7
|
-
---
|
8
|
-
|
9
|
-
{% capture _LINE_FEED %}
|
10
|
-
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.1.0
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
data/_layouts/default.html
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
---
|
2
|
-
layout: compress
|
3
|
-
---
|
4
|
-
<!DOCTYPE html>
|
5
|
-
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
6
|
-
<head>
|
7
|
-
<title>{{ site.title }}</title>
|
8
|
-
<style>
|
9
|
-
{% capture scss_sheet %}{% include style.scss %}{% endcapture %}
|
10
|
-
{{ scss_sheet | scssify }}
|
11
|
-
</style>
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
<main>
|
15
|
-
{{ content }}
|
16
|
-
</main>
|
17
|
-
</body>
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
<!DOCTYPE html>
|
5
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
6
|
+
<head>
|
7
|
+
<title>{{ site.title }}</title>
|
8
|
+
<style>
|
9
|
+
{% capture scss_sheet %}{% include style.scss %}{% endcapture %}
|
10
|
+
{{ scss_sheet | scssify }}
|
11
|
+
</style>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<main>
|
15
|
+
{{ content }}
|
16
|
+
</main>
|
17
|
+
</body>
|
18
18
|
</html>
|
data/_layouts/home.html
CHANGED
@@ -1,47 +1,18 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
{%- assign
|
6
|
-
{
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
{%-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<ul>
|
19
|
-
{%- else -%}
|
20
|
-
<li>
|
21
|
-
<p><a href="{{ sitepage.url | absolute_url }}">{{ sitepage.title }}</a></p>
|
22
|
-
</li>
|
23
|
-
{%- endif -%}
|
24
|
-
{%- endfor -%}
|
25
|
-
</ul>
|
26
|
-
{%- when "Game Theory" -%}
|
27
|
-
{%- for sitepage in gt -%}
|
28
|
-
{%- if forloop.first == true -%}
|
29
|
-
<a href="{{ sitepage.url | absolute_url }}">{{ sitepage.title }}</a>
|
30
|
-
<ul>
|
31
|
-
{%- else -%}
|
32
|
-
<li>
|
33
|
-
<p><a href="{{ sitepage.url | absolute_url }}">{{ sitepage.title }}</a></p>
|
34
|
-
</li>
|
35
|
-
{%- endif -%}
|
36
|
-
{%- endfor -%}
|
37
|
-
</ul>
|
38
|
-
{%- else -%}
|
39
|
-
<p><a href="{{ sitepage.url | absolute_url }}">{{ sitepage.title }}</a></p>
|
40
|
-
{%- endcase -%}
|
41
|
-
</li>
|
42
|
-
{%- endfor -%}
|
43
|
-
</ul>
|
44
|
-
</nav>
|
45
|
-
<div class="content">
|
46
|
-
{{ content }}
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- assign sitelist = site.pages | where_exp: "item", "item.dir == '/'" | sort: 'url' | shift -%}
|
6
|
+
<h1>{{ site.title }}</h1>
|
7
|
+
<nav class="sidenav">
|
8
|
+
<ul>
|
9
|
+
{%- for sitepage in sitelist -%}
|
10
|
+
<li>
|
11
|
+
<p><a href="{{ sitepage.url | absolute_url }}">{{ sitepage.title }}</a></p>
|
12
|
+
</li>
|
13
|
+
{%- endfor -%}
|
14
|
+
</ul>
|
15
|
+
</nav>
|
16
|
+
<div class="content">
|
17
|
+
{{ content }}
|
47
18
|
</div>
|
data/_layouts/list.html
CHANGED
@@ -1,13 +1,23 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
{%- assign sorted = site.papers | sort:"year" | reverse -%}
|
5
|
-
{%- for paper in sorted -%}
|
6
|
-
{%- if page.category == nil or paper.categories contains page.category -%}
|
7
|
-
{%- if page.tag == nil or paper.tags contains page.tag -%}
|
8
|
-
|
9
|
-
|
10
|
-
</
|
11
|
-
{%-
|
12
|
-
{
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
{%- assign sorted = site.papers | sort:"year" | reverse -%}
|
5
|
+
{%- for paper in sorted -%}
|
6
|
+
{%- if page.category == nil or paper.categories contains page.category -%}
|
7
|
+
{%- if page.tag == nil or paper.tags contains page.tag -%}
|
8
|
+
|
9
|
+
<p>
|
10
|
+
<a href="{{ site.url }}{{ site.baseurl }}/pdf/{{ paper.pdf }}" target="_blank">{{ paper.title }}</a>
|
11
|
+
{%- if paper.authors.size > 1 -%}
|
12
|
+
{{ ' ' }}(with {{ paper.authors | where_exp:"item", "item != site.citations.author" | join: " and "}})
|
13
|
+
{%- endif %},
|
14
|
+
{% if paper.journal -%}
|
15
|
+
<em>{{ paper.journal }}</em>,
|
16
|
+
{%- endif %}
|
17
|
+
{{ paper.year }}
|
18
|
+
<a href="{{ paper.url | absolute_url }}" target="_blank">[bib]</a>
|
19
|
+
</p>
|
20
|
+
|
21
|
+
{%- endif -%}
|
22
|
+
{%- endif -%}
|
13
23
|
{%- endfor -%}
|
data/_sass/list.scss
CHANGED
@@ -1 +1 @@
|
|
1
|
-
// insert styling here
|
1
|
+
// insert styling here
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-citations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Thomas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
rubygems_version: 3.
|
83
|
+
rubygems_version: 3.4.12
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: A citation generator and organizer using jekyll.
|