File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -462,3 +462,22 @@ figure.image-with-source {
462462 justify-content : space-between ;
463463 margin-bottom : $padding-16 ;
464464}
465+
466+ .social-links {
467+ display : flex ;
468+ align-items : center ;
469+ gap : $padding-4 ;
470+ }
471+
472+ a .social-link {
473+ display : inline-flex ;
474+ align-items : center ;
475+ justify-content : center ;
476+ padding : $padding-4 ;
477+ color : var (--body-font-color );
478+ opacity : 0.65 ;
479+
480+ & :hover {
481+ opacity : 1 ;
482+ }
483+ }
Original file line number Diff line number Diff line change @@ -76,3 +76,8 @@ BookServiceWorker = true
7676# /!\ This is an experimental feature, might be removed or changed at any time
7777# (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
7878BookTranslatedOnly = false
79+
80+ # Social links displayed in the header
81+ [social ]
82+ github = ' https://github.com/AnvarAtayev'
83+ linkedin = ' https://www.linkedin.com/in/anvarbek-atayev/'
Original file line number Diff line number Diff line change @@ -7,9 +7,21 @@ <h2 class="book-brand">
77 {{- end -}}
88 < span > {{ .Site.Title }}</ span >
99 </ a >
10- < button class ="theme-toggle theme-toggle--inline " type ="button " aria-label ="Toggle theme " data-theme-toggle >
10+ < div class ="social-links ">
11+ {{- with .Site.Params.social.github }}
12+ < a href ="{{ . }} " target ="_blank " rel ="noopener noreferrer " aria-label ="GitHub " class ="social-link ">
13+ < svg xmlns ="http://www.w3.org/2000/svg " width ="18 " height ="18 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round "> < path d ="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22 "/> </ svg >
14+ </ a >
15+ {{- end }}
16+ {{- with .Site.Params.social.linkedin }}
17+ < a href ="{{ . }} " target ="_blank " rel ="noopener noreferrer " aria-label ="LinkedIn " class ="social-link ">
18+ < svg xmlns ="http://www.w3.org/2000/svg " width ="18 " height ="18 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round "> < path d ="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z "/> < rect x ="2 " y ="9 " width ="4 " height ="12 "/> < circle cx ="4 " cy ="4 " r ="2 "/> </ svg >
19+ </ a >
20+ {{- end }}
21+ < button class ="theme-toggle theme-toggle--inline " type ="button " aria-label ="Toggle theme " data-theme-toggle >
1122 < svg class ="icon-moon " xmlns ="http://www.w3.org/2000/svg " width ="18 " height ="18 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round "> < path d ="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z "/> </ svg >
1223 < svg class ="icon-sun " xmlns ="http://www.w3.org/2000/svg " width ="18 " height ="18 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round "> < circle cx ="12 " cy ="12 " r ="5 "/> < line x1 ="12 " y1 ="1 " x2 ="12 " y2 ="3 "/> < line x1 ="12 " y1 ="21 " x2 ="12 " y2 ="23 "/> < line x1 ="4.22 " y1 ="4.22 " x2 ="5.64 " y2 ="5.64 "/> < line x1 ="18.36 " y1 ="18.36 " x2 ="19.78 " y2 ="19.78 "/> < line x1 ="1 " y1 ="12 " x2 ="3 " y2 ="12 "/> < line x1 ="21 " y1 ="12 " x2 ="23 " y2 ="12 "/> < line x1 ="4.22 " y1 ="19.78 " x2 ="5.64 " y2 ="18.36 "/> < line x1 ="18.36 " y1 ="5.64 " x2 ="19.78 " y2 ="4.22 "/> </ svg >
1324 </ button >
25+ </ div >
1426 </ div >
1527</ h2 >
You can’t perform that action at this time.
0 commit comments