Skip to content
Snippets Groups Projects
Commit 717578cf authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

Merge branch 'develop' into 'master'

Regular merge of develop

See merge request !59
parents 29a86b9f f2a54647
No related branches found
No related tags found
5 merge requests!245Integrate data upload cloud,!235Integrate data upload cloud,!224Fixing a couple of issues in the redesign,!167Access harrenhal,!59Regular merge of develop
Pipeline #18853 passed
...@@ -16,6 +16,7 @@ for branch in $(git for-each-ref --format='%(refname:strip=3)' refs/remotes); do ...@@ -16,6 +16,7 @@ for branch in $(git for-each-ref --format='%(refname:strip=3)' refs/remotes); do
git reset --hard $branch git reset --hard $branch
# build the website # build the website
bundle install
bundle exec jekyll build --baseurl="howto-cards/$artefact" -d "public/$artefact" bundle exec jekyll build --baseurl="howto-cards/$artefact" -d "public/$artefact"
if [[ $branch == "master" ]]; then if [[ $branch == "master" ]]; then
......
.jekyll-cache/
env/.jekyll-cache/ env/.jekyll-cache/
*.aux *.aux
*.log *.log
......
...@@ -54,7 +54,6 @@ theme: jekyll-theme-lcsb-default ...@@ -54,7 +54,6 @@ theme: jekyll-theme-lcsb-default
plugins: plugins:
- jekyll-feed - jekyll-feed
- jekyll-paginate-v2 - jekyll-paginate-v2
- jekyll-theme-lcsb-frozen-components
# These settings are used to display share link to howto.lcsb.uni.lu # These settings are used to display share link to howto.lcsb.uni.lu
# The display logic itself is in the template # The display logic itself is in the template
......
Jekyll::Hooks.register([:pages, :posts, :documents], :pre_render) do |post|
# This will run every time the website is built
# Include a plugin (needs to be in gemfile)
include Jekyll::EmailProtect::EmailProtectionFilter
# Using a simpler version of email regexp
email_regexp = /mailto\:(?:[\'\"]*)(?:[\w+\-]\.?)+@[a-z\d\-]+(?:\.[a-z]+)*\.[a-z]+(?:[\'\"]*)/i
# Take post's content, and transform every occurence of the following regexp (an email)
post.content = post.content.gsub(email_regexp) {
# For every occurence, apply protection function:
|param| "mailto:" + Jekyll::EmailProtect::EmailProtectionFilter::encode_email(param[7..-1].delete("'").delete('"'))
}
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment