add jekyll target blank plugin (#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 <maruan@genesistherapeutics.ai>
This commit is contained in:
parent
3ca88834a2
commit
6b0bf87846
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
||||
- name: Setup Ruby
|
||||
uses: actions/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '2.7'
|
||||
ruby-version: '3.0.2'
|
||||
- name: Enable bundler cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
3
Gemfile
3
Gemfile
@ -6,8 +6,9 @@ group :jekyll_plugins do
|
||||
gem 'jekyll-github-metadata'
|
||||
gem 'jekyll-paginate-v2'
|
||||
gem 'jekyll-scholar'
|
||||
gem 'jekyll-twitter-plugin'
|
||||
gem 'jekyll-sitemap'
|
||||
gem 'jekyll-target-blank'
|
||||
gem 'jekyll-twitter-plugin'
|
||||
gem 'jemoji'
|
||||
gem 'unicode_utils'
|
||||
gem 'webrick'
|
||||
|
@ -111,7 +111,10 @@ $ bundle exec jekyll serve
|
||||
```
|
||||
|
||||
Now, feel free to customize the theme however you like (don't forget to change the name!).
|
||||
After you are done, **commit** your final changes.
|
||||
|
||||
**Important:**
|
||||
- Make sure to change `url` field in `_config.yml` to `<your-github-username>.github.io`.
|
||||
- After you are done, **commit** your final changes.
|
||||
|
||||
#### Deployment
|
||||
|
||||
|
13
_config.yml
13
_config.yml
@ -15,7 +15,7 @@ footer_text: >
|
||||
Photos from <a href="https://unsplash.com" target="_blank">Unsplash</a>.
|
||||
|
||||
icon: 🔥 # the emoji used as the favicon
|
||||
url: # the base hostname & protocol for your site
|
||||
url: https://alshedivat.github.io # the base hostname & protocol for your site
|
||||
baseurl: /al-folio # the subpath of your site, e.g. /blog/
|
||||
last_updated: false # set to true if you want to display last updated in the footer
|
||||
impressum_path: # set to path to include impressum link in the footer, use the same path as permalink in a page, helps to conform with EU GDPR
|
||||
@ -136,13 +136,14 @@ keep_files:
|
||||
|
||||
# Plug-ins
|
||||
plugins:
|
||||
- jekyll-email-protect
|
||||
- jekyll-github-metadata
|
||||
- jekyll-feed
|
||||
- jekyll-paginate-v2
|
||||
- jekyll/scholar
|
||||
- jekyll-twitter-plugin
|
||||
- jekyll-email-protect
|
||||
- jekyll-feed
|
||||
- jekyll-github-metadata
|
||||
- jekyll-paginate-v2
|
||||
- jekyll-sitemap
|
||||
- jekyll-target-blank
|
||||
- jekyll-twitter-plugin
|
||||
- jemoji
|
||||
|
||||
# Extras
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="grid-item">
|
||||
{% if project.redirect %}
|
||||
<a href="{{ project.redirect }}" target="_blank">
|
||||
<a href="{{ project.redirect }}">
|
||||
{% else %}
|
||||
<a href="{{ project.url | relative_url }}">
|
||||
{% endif %}
|
||||
@ -15,7 +15,7 @@
|
||||
{% if project.github %}
|
||||
<div class="github-icon">
|
||||
<div class="icon" data-toggle="tooltip" title="Code Repository">
|
||||
<a href="{{ project.github }}" target="_blank"><i class="fab fa-github gh-icon"></i></a>
|
||||
<a href="{{ project.github }}"><i class="fab fa-github gh-icon"></i></a>
|
||||
</div>
|
||||
{% if project.github_stars %}
|
||||
<span class="stars" data-toggle="tooltip" title="GitHub Stars">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="card-item col">
|
||||
{% if project.redirect %}
|
||||
<a href="{{ project.redirect }}" target="_blank">
|
||||
<a href="{{ project.redirect }}">
|
||||
{% else %}
|
||||
<a href="{{ project.url | relative_url }}">
|
||||
{% endif %}
|
||||
@ -21,7 +21,7 @@
|
||||
{% if project.github %}
|
||||
<div class="github-icon">
|
||||
<div class="icon" data-toggle="tooltip" title="Code Repository">
|
||||
<a href="{{ project.github }}" target="_blank"><i class="fab fa-github gh-icon"></i></a>
|
||||
<a href="{{ project.github }}"><i class="fab fa-github gh-icon"></i></a>
|
||||
</div>
|
||||
{% if project.github_stars %}
|
||||
<span class="stars" data-toggle="tooltip" title="GitHub Stars">
|
||||
|
@ -1,19 +1,18 @@
|
||||
{% if site.email %}<a href="mailto:{{ site.email | encode_email }}"><i class="fas fa-envelope"></i></a>{% endif %}
|
||||
{% if site.orcid_id %}<a href="https://orcid.org/{{ site.orcid_id }}" target="_blank" title="ORCID"><i class="ai ai-orcid"></i></a>{% endif %}
|
||||
{% if site.scholar_userid %}<a href="https://scholar.google.com/citations?user={{ site.scholar_userid }}" target="_blank" title="Google Scholar"><i class="ai ai-google-scholar"></i></a>{% endif %}
|
||||
{% if site.publons_id %}<a href="https://publons.com/a/{{ site.publons_id }}/" target="_blank" title="Publons"><i class="ai ai-publons"></i></a>{% endif %}
|
||||
{% if site.research_gate_profile %}<a href="https://www.researchgate.net/profile/{{site.research_gate_profile}}/" target="_blank" title="ResearchGate"><i class="ai ai-researchgate"></i></a>{% endif %}
|
||||
{% if site.github_username %}<a href="https://github.com/{{ site.github_username }}" target="_blank" title="GitHub"><i class="fab fa-github"></i></a>{% endif %}
|
||||
{% if site.linkedin_username %}<a href="https://www.linkedin.com/in/{{ site.linkedin_username }}" target="_blank" title="LinkedIn"><i class="fab fa-linkedin"></i></a>{% endif %}
|
||||
{% if site.twitter_username %}<a href="https://twitter.com/{{ site.twitter_username }}" target="_blank" title="Twitter"><i class="fab fa-twitter"></i></a>{% endif %}
|
||||
{% if site.medium_username %}<a href="https://medium.com/@{{ site.medium_username }}" target="_blank" title="Medium"><i class="fab fa-medium"></i></a>{% endif %}
|
||||
{% if site.quora_username %}<a href="https://www.quora.com/profile/{{ site.quora_username }}" target="_blank" title="Quora"><i class="fab fa-quora"></i></a>{% endif %}
|
||||
{% if site.blogger_url %}<a href="{{ site.blogger_url }}" target="_blank" title="Blogger"><i class="fab fa-blogger-b"></i></a>{% endif %}
|
||||
{% if site.work_url %}<a href="{{ site.work_url }}" target="_blank" title="Work"><i class="fas fa-briefcase"></i></a>{% endif %}
|
||||
{% if site.wikidata_id %}<a href="https://www.wikidata.org/wiki/{{ site.wikidata_id }}" target="_blank" title="Wikidata"><i class="fas fa-barcode"></i></a>{% endif %}
|
||||
{% if site.strava_userid %}<a href="https://www.strava.com/athletes/{{ site.strava_userid }}" target="_blank" title="Strava"><i class="fab fa-strava"></i></a>{% endif %}
|
||||
{% if site.keybase_username %}<a href="https://keybase.io/{{ site.keybase_username }}" target="_blank" title="Keybase"><i class="fab fa-keybase"></i></a>{% endif %}
|
||||
{% if site.gitlab_username %}<a href="https://gitlab.com/{{ site.gitlab_username }}" target="_blank" title="GitLab"><i class="fab fa-gitlab"></i></a>{% endif %}
|
||||
{% if site.dblp_url %}<a href="{{ site.dblp_url }}" target="_blank" title="DBLP"><i class="ai ai-dblp"></i></a>{% endif %}
|
||||
{% if site.stackoverflow_id %}<a href="https://stackoverflow.com/users/{{ site.stackoverflow_id }}" target="_blank" title="Stackoverflow"><i class="fab fa-stack-overflow"></i></a>{% endif %}
|
||||
|
||||
{% if site.orcid_id %}<a href="https://orcid.org/{{ site.orcid_id }}" title="ORCID"><i class="ai ai-orcid"></i></a>{% endif %}
|
||||
{% if site.scholar_userid %}<a href="https://scholar.google.com/citations?user={{ site.scholar_userid }}" title="Google Scholar"><i class="ai ai-google-scholar"></i></a>{% endif %}
|
||||
{% if site.publons_id %}<a href="https://publons.com/a/{{ site.publons_id }}/" title="Publons"><i class="ai ai-publons"></i></a>{% endif %}
|
||||
{% if site.research_gate_profile %}<a href="https://www.researchgate.net/profile/{{site.research_gate_profile}}/" title="ResearchGate"><i class="ai ai-researchgate"></i></a>{% endif %}
|
||||
{% if site.github_username %}<a href="https://github.com/{{ site.github_username }}" title="GitHub"><i class="fab fa-github"></i></a>{% endif %}
|
||||
{% if site.linkedin_username %}<a href="https://www.linkedin.com/in/{{ site.linkedin_username }}" title="LinkedIn"><i class="fab fa-linkedin"></i></a>{% endif %}
|
||||
{% if site.twitter_username %}<a href="https://twitter.com/{{ site.twitter_username }}" title="Twitter"><i class="fab fa-twitter"></i></a>{% endif %}
|
||||
{% if site.medium_username %}<a href="https://medium.com/@{{ site.medium_username }}" title="Medium"><i class="fab fa-medium"></i></a>{% endif %}
|
||||
{% if site.quora_username %}<a href="https://www.quora.com/profile/{{ site.quora_username }}" title="Quora"><i class="fab fa-quora"></i></a>{% endif %}
|
||||
{% if site.blogger_url %}<a href="{{ site.blogger_url }}" title="Blogger"><i class="fab fa-blogger-b"></i></a>{% endif %}
|
||||
{% if site.work_url %}<a href="{{ site.work_url }}" title="Work"><i class="fas fa-briefcase"></i></a>{% endif %}
|
||||
{% if site.wikidata_id %}<a href="https://www.wikidata.org/wiki/{{ site.wikidata_id }}" title="Wikidata"><i class="fas fa-barcode"></i></a>{% endif %}
|
||||
{% if site.strava_userid %}<a href="https://www.strava.com/athletes/{{ site.strava_userid }}" title="Strava"><i class="fab fa-strava"></i></a>{% endif %}
|
||||
{% if site.keybase_username %}<a href="https://keybase.io/{{ site.keybase_username }}" title="Keybase"><i class="fab fa-keybase"></i></a>{% endif %}
|
||||
{% if site.gitlab_username %}<a href="https://gitlab.com/{{ site.gitlab_username }}" title="GitLab"><i class="fab fa-gitlab"></i></a>{% endif %}
|
||||
{% if site.dblp_url %}<a href="{{ site.dblp_url }}" title="DBLP"><i class="ai ai-dblp"></i></a>{% endif %}
|
||||
{% if site.stackoverflow_id %}<a href="https://stackoverflow.com/users/{{ site.stackoverflow_id }}" title="Stackoverflow"><i class="fab fa-stack-overflow"></i></a>{% endif %}
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div class="col-sm-2 abbr">
|
||||
{% if entry.abbr %}
|
||||
{% if site.data.venues[entry.abbr] %}
|
||||
<abbr class="badge"><a href="{{site.data.venues[entry.abbr].url}}" target="_blank">{{entry.abbr}}</a></abbr>
|
||||
<abbr class="badge"><a href="{{site.data.venues[entry.abbr].url}}">{{entry.abbr}}</a></abbr>
|
||||
{% else %}
|
||||
<abbr class="badge">{{entry.abbr}}</abbr>
|
||||
{% endif %}
|
||||
@ -47,7 +47,7 @@
|
||||
<em>{{author.last}}, {{author.first}}</em>,
|
||||
{% else %}
|
||||
{% if coauthor_url %}
|
||||
<a href="{{coauthor_url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
|
||||
<a href="{{coauthor_url}}">{{author.last}}, {{author.first}}</a>,
|
||||
{% else %}
|
||||
{{author.last}}, {{author.first}},
|
||||
{% endif %}
|
||||
@ -57,7 +57,7 @@
|
||||
and <em>{{author.last}}, {{author.first}}</em>
|
||||
{% else %}
|
||||
{% if coauthor_url %}
|
||||
and <a href="{{coauthor_url}}" target="_blank">{{author.last}}, {{author.first}}</a>
|
||||
and <a href="{{coauthor_url}}">{{author.last}}, {{author.first}}</a>
|
||||
{% else %}
|
||||
and {{author.last}}, {{author.first}}
|
||||
{% endif %}
|
||||
@ -84,50 +84,50 @@
|
||||
<a class="abstract btn btn-sm z-depth-0" role="button">Abs</a>
|
||||
{% endif %}
|
||||
{% if entry.arxiv %}
|
||||
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button" target="_blank">arXiv</a>
|
||||
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button">arXiv</a>
|
||||
{% endif %}
|
||||
{% if entry.bibtex_show %}
|
||||
<a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a>
|
||||
{% endif %}
|
||||
{% if entry.html %}
|
||||
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button" target="_blank">HTML</a>
|
||||
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button">HTML</a>
|
||||
{% endif %}
|
||||
{% if entry.pdf %}
|
||||
{% if entry.pdf contains '://' %}
|
||||
<a href="{{ entry.pdf }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
|
||||
<a href="{{ entry.pdf }}" class="btn btn-sm z-depth-0" role="button">PDF</a>
|
||||
{% else %}
|
||||
<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
|
||||
<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">PDF</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if entry.supp %}
|
||||
{% if entry.supp contains '://' %}
|
||||
<a href="{{ entry.supp }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
|
||||
<a href="{{ entry.supp }}" class="btn btn-sm z-depth-0" role="button">Supp</a>
|
||||
{% else %}
|
||||
<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
|
||||
<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">Supp</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if entry.blog %}
|
||||
<a href="{{ entry.blog }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Blog</a>
|
||||
<a href="{{ entry.blog }}" class="btn btn-sm z-depth-0" role="button">Blog</a>
|
||||
{% endif %}
|
||||
{% if entry.code %}
|
||||
<a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Code</a>
|
||||
<a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button">Code</a>
|
||||
{% endif %}
|
||||
{% if entry.poster %}
|
||||
{% if entry.poster contains '://' %}
|
||||
<a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
|
||||
<a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button">Poster</a>
|
||||
{% else %}
|
||||
<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
|
||||
<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">Poster</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if entry.slides %}
|
||||
{% if entry.slides contains '://' %}
|
||||
<a href="{{ entry.slides }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
|
||||
<a href="{{ entry.slides }}" class="btn btn-sm z-depth-0" role="button">Slides</a>
|
||||
{% else %}
|
||||
<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
|
||||
<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">Slides</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if entry.website %}
|
||||
<a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Website</a>
|
||||
<a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button">Website</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
@ -9,7 +9,7 @@ Announcements and news can be much longer than just quick inline posts. In fact,
|
||||
|
||||
***
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
#### Hipster list
|
||||
<ul>
|
||||
|
@ -17,8 +17,8 @@ selected_papers: true # includes a list of papers marked as "selected={true}"
|
||||
social: true # includes social icons at the bottom of the page
|
||||
---
|
||||
|
||||
Write your biography here. Tell the world about yourself. Link to your favorite [subreddit](http://reddit.com){:target="\_blank"}. You can put a picture in, too. The code is already in, just name your picture `prof_pic.jpg` and put it in the `img/` folder.
|
||||
Write your biography here. Tell the world about yourself. Link to your favorite [subreddit](http://reddit.com). You can put a picture in, too. The code is already in, just name your picture `prof_pic.jpg` and put it in the `img/` folder.
|
||||
|
||||
Put your address / P.O. box / other info right below your picture. You can also disable any these elements by editing `profile` property of the YAML header of your `_pages/about.md`. Edit `_bibliography/papers.bib` and Jekyll will render your [publications page](/al-folio/publications/) automatically.
|
||||
|
||||
Link to your social media connections, too. This theme is set up to use [Font Awesome icons](http://fortawesome.github.io/Font-Awesome/){:target="\_blank"} and [Academicons](https://jpswalsh.github.io/academicons/){:target="\_blank"}, like the ones below. Add your Facebook, Twitter, LinkedIn, Google Scholar, or just disable all of them.
|
||||
Link to your social media connections, too. This theme is set up to use [Font Awesome icons](http://fortawesome.github.io/Font-Awesome/) and [Academicons](https://jpswalsh.github.io/academicons/), like the ones below. Add your Facebook, Twitter, LinkedIn, Google Scholar, or just disable all of them.
|
||||
|
@ -11,7 +11,7 @@ horizontal: false
|
||||
{% if site.enable_project_categories and page.display_categories %}
|
||||
<!-- Display categorized projects -->
|
||||
{% for category in page.display_categories %}
|
||||
<h2 class="category">{{category}}</h2>
|
||||
<h2 class="category">{{ category }}</h2>
|
||||
{% assign categorized_projects = site.projects | where: "category", category %}
|
||||
{% assign sorted_projects = categorized_projects | sort: "importance" %}
|
||||
<!-- Generate cards for each project -->
|
||||
|
@ -4,7 +4,7 @@ title: a post with formatting and links
|
||||
date: 2015-03-15 16:40:16
|
||||
description: march & april, looking forward to summer
|
||||
---
|
||||
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.
|
||||
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.
|
||||
|
||||
#### Hipster list
|
||||
<ul>
|
||||
|
@ -4,7 +4,7 @@ title: a post with math
|
||||
date: 2015-10-20 11:12:00-0400
|
||||
description: an example of a blog post with some math
|
||||
---
|
||||
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 $$.
|
||||
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 $$.
|
||||
|
||||
To use display mode, again surround your expression with `$$` and place it as a separate paragraph. Here is an example:
|
||||
|
||||
@ -22,4 +22,4 @@ MathJax will automatically number equations:
|
||||
|
||||
and by adding `\label{...}` inside the equation environment, we can now refer to the equation using `\eqref`.
|
||||
|
||||
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"}.
|
||||
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).
|
||||
|
@ -47,7 +47,7 @@ If you are interested in correctly adding dark mode support for distill, please
|
||||
|
||||
## Equations
|
||||
|
||||
This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/){:target="\_blank"} engine.
|
||||
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 $$.
|
||||
|
||||
@ -58,7 +58,7 @@ $$
|
||||
\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)
|
||||
$$
|
||||
|
||||
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"}.
|
||||
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).
|
||||
|
||||
|
||||
***
|
||||
|
@ -19,7 +19,7 @@ A sample blog page that demonstrates the accessing of github meta data.
|
||||
|
||||
## Additional Reading
|
||||
* 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>.
|
||||
* Go through this <a href="https://jekyll.github.io/github-metadata/" target="blank">README</a> for more details on the topic.
|
||||
* Go through this <a href="https://jekyll.github.io/github-metadata/">README</a> for more details on the topic.
|
||||
* <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.
|
||||
<br />
|
||||
|
||||
|
@ -15,4 +15,4 @@ An example of pulling from a timeline:
|
||||
{% twitter https://twitter.com/jekyllrb maxwidth=500 limit=3 %}
|
||||
|
||||
# Additional Details
|
||||
For more details on using the plugin visit: [jekyll-twitter-plugin](https://github.com/rob-murray/jekyll-twitter-plugin){:target="\_blank"}
|
||||
For more details on using the plugin visit: [jekyll-twitter-plugin](https://github.com/rob-murray/jekyll-twitter-plugin)
|
||||
|
@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
|
||||
|
||||
|
||||
The code is simple.
|
||||
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).
|
||||
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).
|
||||
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
|
||||
Here's the code for the last row of images above:
|
||||
|
@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
|
||||
|
||||
|
||||
The code is simple.
|
||||
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).
|
||||
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).
|
||||
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
|
||||
Here's the code for the last row of images above:
|
||||
|
@ -63,7 +63,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
|
||||
|
||||
|
||||
The code is simple.
|
||||
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).
|
||||
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).
|
||||
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
|
||||
Here's the code for the last row of images above:
|
||||
|
@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
|
||||
|
||||
|
||||
The code is simple.
|
||||
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).
|
||||
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).
|
||||
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
|
||||
Here's the code for the last row of images above:
|
||||
|
@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
|
||||
|
||||
|
||||
The code is simple.
|
||||
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).
|
||||
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).
|
||||
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
|
||||
Here's the code for the last row of images above:
|
||||
|
@ -62,7 +62,7 @@ You describe how you toiled, sweated, *bled* for your project, and then... you r
|
||||
|
||||
|
||||
The code is simple.
|
||||
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).
|
||||
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).
|
||||
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
|
||||
Here's the code for the last row of images above:
|
||||
|
Loading…
Reference in New Issue
Block a user