Skip to content

Commit

Permalink
update jekyll version, see #772
Browse files Browse the repository at this point in the history
- fixed typo in faq list
- clean up include for tags
- added jekyll-seo-tag plugin
  • Loading branch information
robertoostenveld committed Mar 1, 2024
1 parent 42a39a8 commit ef7b669
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 31 deletions.
14 changes: 6 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,24 @@ source "https://rubygems.org"
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.8.4"
gem "jekyll", "~> 4.3.3"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
gem 'jekyll-toc'
gem 'jekyll-last-modified-at'
gem 'jekyll-sitemap'
gem 'jekyll-toc'
gem 'jekyll-sitemap'
gem 'jekyll-seo-tag'
gem 'jekyll-redirect-from', '~> 0.16.0'
# gem "premonition", "4.0.1"
end


# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?

# Seamlessly specify multiple redirection URLs for your pages and posts
gem 'jekyll-redirect-from', '~> 0.16.0'

6 changes: 4 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
title: FieldTrip toolbox
email: [email protected]
description: FieldTrip - the toolbox for MEG, EEG and iEEG

logo: /assets/img/fieldtriplogo-high.png

baseurl: "/" # the subpath of your site, e.g. /blog
url: "https://www.fieldtriptoolbox.org" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: fieldtriptoolbx
Expand Down Expand Up @@ -73,6 +74,8 @@ plugins:
- jekyll-toc # https://github.com/toshimaru/jekyll-toc
- jekyll-sitemap # https://github.com/jekyll/jekyll-sitemap
- jekyll-redirect-from # https://blog.webjeda.com/jekyll-redirect/
- jekyll-seo-tag # https://github.com/jekyll/jekyll-seo-tag
# - premonition # https://github.com/lazee/premonition

exclude:
- README.md
Expand All @@ -86,7 +89,6 @@ exclude:
# - example/*
# - faq/*
# - getting_started/*
# - reference/*
# - tag/*
# - template/*
# - tutorial/*
Expand Down
9 changes: 1 addition & 8 deletions _includes/right
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
{{ content | toc_only }}
{% endif %}

{% if page.tags != nill and page.tags != "" %}
Tags:
{% for t in page.tags %}
<a href="/tag/{{ t }}/">{{ t }}</a>
{% endfor %}
{% else %}
&nbsp;
{% endif %}
{% include tags %}

</div>
18 changes: 8 additions & 10 deletions _includes/tags
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<span class="text-muted small">
{% if page.tags != nill and page.tags != "" %}
Tags:
{% for t in page.tags %}
<a href="/tag/{{ t }}/">{{ t }}</a>
{% endfor %}
{% else %}
&nbsp;
{% endif %}
</span>
{% if page.tags != nill and page.tags != "" %}
Tags:
{% for t in page.tags %}
<a href="/tag/{{ t }}/">{{ t }}</a>
{% endfor %}
{% else %}
&nbsp;
{% endif %}
2 changes: 1 addition & 1 deletion _includes/vimeo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!-- Embed a Vimeo video using the do-not-track option-->
<!-- Embed a Vimeo video using the do-not-track option -->
<iframe width="500" height="281" src="https://player.vimeo.com/video/{{ include.id }}?dnt=1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
5 changes: 4 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% include head %}
{% include favicon %}
{% include plausible %}
{% seo %}
</head>

<body>
Expand All @@ -16,7 +17,9 @@
{% include left %}
</div>
<div class="col-sm-8 main-page-content">
{% include tags %}
<span class="text-muted small">
{% include tags %}
</span>
{{ content }}
</div>
<div class="col-sm-3">
Expand Down
2 changes: 1 addition & 1 deletion faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ See also the [tutorials](/tutorial) and [example scripts](/example).
- [How can I deal with a discontinuous Neuralynx recording?](/faq/discontinuous_neuralynx)
- [How can I fix a corrupt CTF meg4 data file?](/faq/how_can_i_fix_a_corrupt_ctf_meg4_data_file)
- [How can I fix a corrupt CTF res4 header file?](/faq/how_can_i_fix_a_corrupt_ctf_res4_header_file)
- [How can I read corrupted (unsaved)\_CTF_data?](/faq/how_can_i_read_corrupted_unsaved_ctf_data)
- [How can I read corrupted (unsaved) CTF data?](/faq/how_can_i_read_corrupted_unsaved_ctf_data)
- [I am having problems reading the CTF .hc headcoordinates file](/faq/i_am_having_problems_reading_the_ctf_.hc_headcoordinates_file)

### Data handling
Expand Down

0 comments on commit ef7b669

Please sign in to comment.