Commit 884aaf2 1 parent fbe3328 commit 884aaf2 Copy full SHA for 884aaf2
File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 3
3
import type { ContactData } from ' $lib/data/contacts' ;
4
4
import { hover3dFactory } from ' $lib/utils/hooks/transformHover3d' ;
5
5
6
+ $ : hideFromCrawler = contact .hideFromCrawler ;
7
+
6
8
export let contact: ContactData ;
7
9
export let isActivated : boolean = false ;
8
10
let activated: boolean = false ;
17
19
class:externally-activated ={isActivated }
18
20
>
19
21
<div id =" a" >
20
- <!-- href={contact.link} -->
21
- <i id ="icon" class ={contact .iconClass } class:colored ={activated } />
22
+ <!-- -->
23
+ {#if ! hideFromCrawler }
24
+ <a href ={contact .link }>
25
+ <i id ="icon" class ={contact .iconClass } class:colored ={activated } />
26
+ </a >
27
+ {:else }
28
+ <i id ="icon" class ={contact .iconClass } class:colored ={activated } />
29
+ {/if }
22
30
<!-- <h2 id="name">{contact.name}</h2> -->
23
31
</div >
24
32
</div >
48
56
z-index : 5 ;
49
57
}
50
58
51
- #a {
59
+ #a , a {
52
60
text-decoration : none ;
53
61
color : inherit ;
54
62
transform : translateZ (20px );
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ export interface ContactData {
2
2
name : string ;
3
3
iconClass : string ;
4
4
link : string ;
5
+ hideFromCrawler ?: boolean ;
5
6
}
6
7
7
8
//linkedin
@@ -29,7 +30,8 @@ export const email: ContactData = {
29
30
export const telegram : ContactData = {
30
31
name : 'Telegram' ,
31
32
iconClass : 'fa-brands fa-telegram' ,
32
- link : 'https://t.me/hannepps'
33
+ link : 'https://t.me/hannepps' ,
34
+ hideFromCrawler : true ,
33
35
}
34
36
35
37
You can’t perform that action at this time.
0 commit comments