Commit e300ff82 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

feat: new shortcut links

parent f2a54647
......@@ -35,11 +35,11 @@
if (sub.length > 0) {
UrlExists(internalURL+'/stable/internal/'+sub, function(status){
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 {
UrlExists(internalURL+'/stable/external/'+sub, function(status){
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 {
window.location.href = internalURL+'/stable/404.html';
}
......@@ -58,9 +58,9 @@
// external pages
} else {
if (sub.length > 0) { sub = 'external/'+sub; }
UrlExists(externalURL+'/stable/'+sub, function(status){
if (status == 200) { // if sub-car is internal and exists
window.location.href = externalURL+'/stable/'+sub;
UrlExists(externalURL+'/stable/cards/'+sub, function(status){
if (status == 200) { // if sub-card is internal and exists
window.location.href = externalURL+'/stable/cards/'+sub;
} else {
window.location.href = externalURL+'/stable/404.html';
}
......
......@@ -32,6 +32,8 @@ group :jekyll_plugins do
:git => "https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-frozen-components.git",
:branch => "master"
gem 'jekyll-redirect-from',
'0.16.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
......
......@@ -54,6 +54,7 @@ theme: jekyll-theme-lcsb-default
plugins:
- jekyll-feed
- jekyll-paginate-v2
- jekyll-redirect-from
# These settings are used to display share link to howto.lcsb.uni.lu
# The display logic itself is in the template
......
---
layout: page
permalink: /external/daisy/
shortcut: gdpr:daisy
redirect_from:
- /cards/gdpr:daisy
- /external/cards/gdpr:daisy
---
# <a name="top"></a>DAISY User Guide
......
---
layout: page
permalink: /external/exchange-channels/
shortcut: gdpr:exchange-channels
redirect_from:
- /cards/gdpr:exchange-channels
- /external/cards/gdpr:exchange-channels
---
# Exchanging Research Data with Collaborators
{:.no_toc}
......
---
layout: page
permalink: /external/git-clients/
shortcut: contribute:git-clients
redirect_from:
- /cards/contribute:git-clients
- /external/cards/contribute:git-clients
---
# Git clients
......
---
layout: page
permalink: /external/lums-passwords/
shortcut: passwords:lums
redirect_from:
- /cards/passwords:lums
- /external/cards/passwords:lums
---
# LUMS account
......
---
layout: page
permalink: /external/markdown/
shortcut: contribute:markdown
redirect_from:
- /cards/contribute:markdown
- /external/cards/contribute:markdown
---
# Markdown
......
---
layout: page
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
......
---
layout: page
permalink: /external/passwords/
shortcut: passwords
redirect_from:
- /cards/passwords
- /external/cards/passwords
---
# Managing your passwords
......
---
layout: page
permalink: /external/vpn-cerbere-access/
shortcut: passwords:vpn
redirect_from:
- /cards/passwords:vpn
- /external/cards/passwords:vpn
---
# VPN/CERBERE connection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment