Skip to content

Commit 27ea2e3

Browse files
pourmand1376alshedivat
authored andcommitted
add jekyll target blank plugin (alshedivat#404)
* add jekyll target blank * Remove manual target blank from everywhere * Update README.md * Set ruby version to 3.0.2 in the deploy script Co-authored-by: Maruan Al-Shedivat <[email protected]>
1 parent ddf6551 commit 27ea2e3

16 files changed

+24
-23
lines changed

Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ group :jekyll_plugins do
1616
gem 'jekyll-sitemap'
1717
gem 'jekyll-toc'
1818
gem 'jekyll-twitter-plugin'
19-
gem 'jekyll-sitemap'
2019
gem 'jemoji'
2120
gem 'mini_racer'
2221
gem 'unicode_utils'

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,10 @@ $ bundle exec jekyll serve
457457
```
458458

459459
Now, feel free to customize the theme however you like (don't forget to change the name!).
460-
After you are done, **commit** your final changes.
460+
461+
**Important:**
462+
- Make sure to change `url` field in `_config.yml` to `<your-github-username>.github.io`.
463+
- After you are done, **commit** your final changes.
461464

462465
#### Deployment
463466

_config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ plugins:
243243
- jekyll-sitemap
244244
- jekyll-toc
245245
- jekyll-twitter-plugin
246-
- jekyll-sitemap
247246
- jemoji
248247
- jekyll-figure
249248

_includes/social.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
{% endif %}
1313
{%- if site.scholar_userid -%}
1414
<a href="https://scholar.google.com/citations?user={{ site.scholar_userid }}" title="Google Scholar"><i
15-
class="ai ai-google-scholar"></i></a>
15+
class="ai ai-google-scholar"></i></a>
1616
{% endif %}
1717
{%- if site.semanticscholar_id -%}
1818
<a href="https://www.semanticscholar.org/author/{{ site.semanticscholar_id }}" title="Semantic Scholar"><i
19-
class="ai ai-semantic-scholar"></i></a>
19+
class="ai ai-semantic-scholar"></i></a>
2020
{% endif %}
2121
{%- if site.publons_id -%}
2222
<a href="https://publons.com/a/{{ site.publons_id }}/" title="Publons"><i class="ai ai-publons"></i></a>
@@ -29,11 +29,11 @@
2929
{% endif %}
3030
{%- if site.research_gate_profile -%}
3131
<a href="https://www.researchgate.net/profile/{{site.research_gate_profile}}/" title="ResearchGate"><i
32-
class="ai ai-researchgate"></i></a>
32+
class="ai ai-researchgate"></i></a>
3333
{% endif %}
3434
{%- if site.scopus_id -%}
3535
<a href="https://www.scopus.com/authid/detail.uri?authorId={{site.scopus_id}}" title="Scopus"><i
36-
class="ai ai-scopus"></i></a>
36+
class="ai ai-scopus"></i></a>
3737
{% endif %}
3838
{%- if site.github_username -%}
3939
<a href="https://github.com/{{ site.github_username }}" title="GitHub"><i class="fab fa-github"></i></a>
@@ -64,7 +64,7 @@
6464
{% endif %}
6565
{%- if site.wikipedia_id -%}
6666
<a href="https://wikipedia.org/wiki/User:{{ site.wikipedia_id }}" title="Wikipedia"><i
67-
class="fab fa-wikipedia-w"></i></a>
67+
class="fab fa-wikipedia-w"></i></a>
6868
{% endif %}
6969
{%- if site.strava_userid -%}
7070
<a href="https://www.strava.com/athletes/{{ site.strava_userid }}" title="Strava"><i class="fab fa-strava"></i></a>
@@ -80,7 +80,7 @@
8080
{% endif %}
8181
{%- if site.stackoverflow_id -%}
8282
<a href="https://stackoverflow.com/users/{{ site.stackoverflow_id }}" title="Stackoverflow"><i
83-
class="fab fa-stack-overflow"></i></a>
83+
class="fab fa-stack-overflow"></i></a>
8484
{% endif %}
8585
{%- if site.kaggle_id -%}
8686
<a href="https://www.kaggle.com/{{ site.kaggle_id }}" title="Kaggle"><i class="fab fa-kaggle"></i></a>

_news/announcement_2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Announcements and news can be much longer than just quick inline posts. In fact,
99

1010
***
1111

12-
Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. <a href="https://www.pinterest.com" target="blank">Pinterest</a> DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice" target="blank">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy.
12+
Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. <a href="https://www.pinterest.com">Pinterest</a> DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy.
1313

1414
#### Hipster list
1515
<ul>

_posts/2015-03-15-formatting-and-links.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: a post with formatting and links
44
date: 2015-03-15 16:40:16
55
description: march & april, looking forward to summer
66
---
7-
Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. <a href="https://www.pinterest.com" target="blank">Pinterest</a> DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice" target="blank">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy.
7+
Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. <a href="https://www.pinterest.com">Pinterest</a> DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy.
88

99
#### Hipster list
1010
<ul>

_posts/2015-10-20-math.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: a post with math
44
date: 2015-10-20 11:12:00-0400
55
description: an example of a blog post with some math
66
---
7-
This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/){:target="\_blank"} engine. You just need to surround your math expression with `$$`, like `$$ E = mc^2 $$`. If you leave it inside a paragraph, it will produce an inline expression, just like $$ E = mc^2 $$.
7+
This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/) engine. You just need to surround your math expression with `$$`, like `$$ E = mc^2 $$`. If you leave it inside a paragraph, it will produce an inline expression, just like $$ E = mc^2 $$.
88

99
To use display mode, again surround your expression with `$$` and place it as a separate paragraph. Here is an example:
1010

@@ -22,4 +22,4 @@ MathJax will automatically number equations:
2222

2323
and by adding `\label{...}` inside the equation environment, we can now refer to the equation using `\eqref`.
2424

25-
Note that MathJax 3 is [a major re-write of MathJax](https://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html){:target="\_blank"} that brought a significant improvement to the loading and rendering speed, which is now [on par with KaTeX](http://www.intmath.com/cg5/katex-mathjax-comparison.php){:target="\_blank"}.
25+
Note that MathJax 3 is [a major re-write of MathJax](https://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html) that brought a significant improvement to the loading and rendering speed, which is now [on par with KaTeX](http://www.intmath.com/cg5/katex-mathjax-comparison.php).

_posts/2018-12-22-distill.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If you are interested in correctly adding dark mode support for distill, please
4747

4848
## Equations
4949

50-
This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/){:target="\_blank"} engine.
50+
This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/) engine.
5151
You just need to surround your math expression with `$$`, like `$$ E = mc^2 $$`.
5252
If you leave it inside a paragraph, it will produce an inline expression, just like $$ E = mc^2 $$.
5353

@@ -58,7 +58,7 @@ $$
5858
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
5959
$$
6060

61-
Note that MathJax 3 is [a major re-write of MathJax](https://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html){:target="\_blank"} that brought a significant improvement to the loading and rendering speed, which is now [on par with KaTeX](http://www.intmath.com/cg5/katex-mathjax-comparison.php){:target="\_blank"}.
61+
Note that MathJax 3 is [a major re-write of MathJax](https://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html) that brought a significant improvement to the loading and rendering speed, which is now [on par with KaTeX](http://www.intmath.com/cg5/katex-mathjax-comparison.php).
6262

6363

6464
***

_posts/2020-09-28-github-metadata.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A sample blog page that demonstrates the accessing of github meta data.
1919

2020
## Additional Reading
2121
* If you're recieving incorrect/missing data, you may need to perform a Github API<a href="https://github.com/jekyll/github-metadata/blob/master/docs/authentication.md"> authentication</a>.
22-
* Go through this <a href="https://jekyll.github.io/github-metadata/" target="blank">README</a> for more details on the topic.
22+
* Go through this <a href="https://jekyll.github.io/github-metadata/">README</a> for more details on the topic.
2323
* <a href= "https://github.com/jekyll/github-metadata/blob/master/docs/site.github.md">This page</a> highlights all the feilds you can access with github-metadata.
2424
<br />
2525

_posts/2020-09-28-twitter.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ An example of pulling from a timeline:
1515
{% twitter https://twitter.com/jekyllrb maxwidth=500 limit=3 %}
1616

1717
# Additional Details
18-
For more details on using the plugin visit: [jekyll-twitter-plugin](https://github.com/rob-murray/jekyll-twitter-plugin){:target="\_blank"}
18+
For more details on using the plugin visit: [jekyll-twitter-plugin](https://github.com/rob-murray/jekyll-twitter-plugin)

_projects/1_project.markdown renamed to _projects/1_project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
6262

6363

6464
The code is simple.
65-
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/" target="_blank">Bootstrap Grid</a> system).
65+
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system).
6666
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
6767
Here's the code for the last row of images above:
6868

_projects/2_project.markdown renamed to _projects/2_project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
6262

6363

6464
The code is simple.
65-
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/" target="_blank">Bootstrap Grid</a> system).
65+
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system).
6666
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
6767
Here's the code for the last row of images above:
6868

_projects/3_project.markdown renamed to _projects/3_project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
6363

6464

6565
The code is simple.
66-
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/" target="_blank">Bootstrap Grid</a> system).
66+
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system).
6767
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
6868
Here's the code for the last row of images above:
6969

_projects/4_project.markdown renamed to _projects/4_project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
6262

6363

6464
The code is simple.
65-
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/" target="_blank">Bootstrap Grid</a> system).
65+
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system).
6666
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
6767
Here's the code for the last row of images above:
6868

_projects/5_project.markdown renamed to _projects/5_project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
6262

6363

6464
The code is simple.
65-
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/" target="_blank">Bootstrap Grid</a> system).
65+
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system).
6666
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
6767
Here's the code for the last row of images above:
6868

_projects/6_project.markdown renamed to _projects/6_project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
6262

6363

6464
The code is simple.
65-
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/" target="_blank">Bootstrap Grid</a> system).
65+
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system).
6666
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
6767
Here's the code for the last row of images above:
6868

0 commit comments

Comments
 (0)