Skip the first image when adding links to home slider.
This commit is contained in:
parent
b3badf4539
commit
0a175bd496
2 changed files with 7 additions and 4 deletions
|
|
@ -78,9 +78,13 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
// Attach links to pages
|
||||
const links = ['#', '/words', '/visuals', '/technical'];
|
||||
document.querySelectorAll('.list li').forEach((item, index) => {
|
||||
if (index > 0) {
|
||||
item.innerHTML = `<a href="${links[index]}">${item.innerHTML}</a>`;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('.slide').forEach((slide, index) => {
|
||||
if (index > 0) {
|
||||
slide.innerHTML = `<a href="${links[index]}">${slide.innerHTML}</a>`;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ extra_css = ["assets/css/theme.css"]
|
|||
language = "en"
|
||||
nav = [
|
||||
{ "Home" = "index.md" },
|
||||
{ "Resume" = "/resume/" },
|
||||
{ "Test" = "test.md" }
|
||||
{ "Resume" = "/resume/" }
|
||||
]
|
||||
repo = "fontawesome/brands/git-alt"
|
||||
repo_name = "g_it/gugulet.hu"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue