Skip to content
Snippets Groups Projects
Commit e300ff82 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

feat: new shortcut links

parent f2a54647
No related branches found
No related tags found
2 merge requests!63Regular merge of develop,!61feat: new shortcut links
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
if (sub.length > 0) { if (sub.length > 0) {
UrlExists(internalURL+'/stable/internal/'+sub, function(status){ UrlExists(internalURL+'/stable/internal/'+sub, function(status){
if (status == 200) { // if sub-card is internal in the internal directory and exists if (status == 200) { // if sub-card is internal in the internal directory and exists
window.location.href = internalURL+'/stable/internal/'+sub; window.location.href = internalURL+'/stable/internal/cards/'+sub;
} else { } else {
UrlExists(internalURL+'/stable/external/'+sub, function(status){ UrlExists(internalURL+'/stable/external/'+sub, function(status){
if (status == 200) { // if sub-card is internal in the external directory and exists if (status == 200) { // if sub-card is internal in the external directory and exists
window.location.href = internalURL+'/stable/external/'+sub; window.location.href = internalURL+'/stable/external/cards/'+sub;
} else { } else {
window.location.href = internalURL+'/stable/404.html'; window.location.href = internalURL+'/stable/404.html';
} }
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
// external pages // external pages
} else { } else {
if (sub.length > 0) { sub = 'external/'+sub; } if (sub.length > 0) { sub = 'external/'+sub; }
UrlExists(externalURL+'/stable/'+sub, function(status){ UrlExists(externalURL+'/stable/cards/'+sub, function(status){
if (status == 200) { // if sub-car is internal and exists if (status == 200) { // if sub-card is internal and exists
window.location.href = externalURL+'/stable/'+sub; window.location.href = externalURL+'/stable/cards/'+sub;
} else { } else {
window.location.href = externalURL+'/stable/404.html'; window.location.href = externalURL+'/stable/404.html';
} }
......
...@@ -32,6 +32,8 @@ group :jekyll_plugins do ...@@ -32,6 +32,8 @@ group :jekyll_plugins do
:git => "https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-frozen-components.git", :git => "https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-frozen-components.git",
:branch => "master" :branch => "master"
gem 'jekyll-redirect-from',
'0.16.0'
end end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
......
...@@ -54,6 +54,7 @@ theme: jekyll-theme-lcsb-default ...@@ -54,6 +54,7 @@ theme: jekyll-theme-lcsb-default
plugins: plugins:
- jekyll-feed - jekyll-feed
- jekyll-paginate-v2 - jekyll-paginate-v2
- jekyll-redirect-from
# 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
......
--- ---
layout: page layout: page
permalink: /external/daisy/ permalink: /external/daisy/
shortcut: gdpr:daisy
redirect_from:
- /cards/gdpr:daisy
- /external/cards/gdpr:daisy
--- ---
# <a name="top"></a>DAISY User Guide # <a name="top"></a>DAISY User Guide
......
--- ---
layout: page layout: page
permalink: /external/exchange-channels/ permalink: /external/exchange-channels/
shortcut: gdpr:exchange-channels
redirect_from:
- /cards/gdpr:exchange-channels
- /external/cards/gdpr:exchange-channels
--- ---
# Exchanging Research Data with Collaborators # Exchanging Research Data with Collaborators
{:.no_toc} {:.no_toc}
......
--- ---
layout: page layout: page
permalink: /external/git-clients/ permalink: /external/git-clients/
shortcut: contribute:git-clients
redirect_from:
- /cards/contribute:git-clients
- /external/cards/contribute:git-clients
--- ---
# Git clients # Git clients
......
--- ---
layout: page layout: page
permalink: /external/lums-passwords/ permalink: /external/lums-passwords/
shortcut: passwords:lums
redirect_from:
- /cards/passwords:lums
- /external/cards/passwords:lums
--- ---
# LUMS account # LUMS account
......
--- ---
layout: page layout: page
permalink: /external/markdown/ permalink: /external/markdown/
shortcut: contribute:markdown
redirect_from:
- /cards/contribute:markdown
- /external/cards/contribute:markdown
--- ---
# Markdown # Markdown
......
--- ---
layout: page layout: page
permalink: /external/passwords/mac-reset permalink: /external/passwords/mac-reset
shortcut: passwords:mac-reset
redirect_from:
- /cards/passwords:mac-reset
- /external/cards/passwords:mac-reset
--- ---
# Tips when resetting University of Luxembourg Active Directory password on a Mac # Tips when resetting University of Luxembourg Active Directory password on a Mac
......
--- ---
layout: page layout: page
permalink: /external/passwords/ permalink: /external/passwords/
shortcut: passwords
redirect_from:
- /cards/passwords
- /external/cards/passwords
--- ---
# Managing your passwords # Managing your passwords
......
--- ---
layout: page layout: page
permalink: /external/vpn-cerbere-access/ permalink: /external/vpn-cerbere-access/
shortcut: passwords:vpn
redirect_from:
- /cards/passwords:vpn
- /external/cards/passwords:vpn
--- ---
# VPN/CERBERE connection # VPN/CERBERE connection
......
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