index.html 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.Language.Lang }}">
  3. <head>
  4. <title>{{- .Site.Title -}}</title>
  5. {{ $siteDescription := .Site.Params.description }}
  6. {{ if (index .Site.Data .Site.Language.Lang).site }}
  7. {{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }}
  8. {{ if $siteConfig.description }}
  9. {{ $siteDescription = $siteConfig.description }}
  10. {{ end }}
  11. {{ end }}
  12. <meta name="description" content="{{ $siteDescription }}" />
  13. <!-- import common headers -->
  14. {{- partial "header.html" . -}}
  15. {{- partial "opengraph.html" . -}}
  16. <!-- import index page specific headers -->
  17. <link rel="stylesheet" href="{{ "/css/sections/home.css" | relURL }}"/>
  18. <link rel="stylesheet" href="{{ "/css/sections/about.css" | relURL }}"/>
  19. <link rel="stylesheet" href="{{ "/css/sections/skills.css" | relURL }}"/>
  20. <link rel="stylesheet" href="{{ "/css/sections/experiences.css" | relURL }}"/>
  21. <link rel="stylesheet" href="{{ "/css/sections/education.css" | relURL }}"/>
  22. <link rel="stylesheet" href="{{ "/css/sections/projects.css" | relURL }}"/>
  23. <link rel="stylesheet" href="{{ "/css/sections/recent-posts.css" | relURL }}"/>
  24. <link rel="stylesheet" href="{{ "/css/sections/achievements.css" | relURL }}"/>
  25. <link rel="stylesheet" href="{{ "/css/sections/accomplishments.css" | relURL }}"/>
  26. <link rel="stylesheet" href="{{ "/css/sections/publications.css" | relURL }}"/>
  27. <!--================= custom style overrides =========================-->
  28. <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}"/>
  29. <!--================= add analytics if enabled =========================-->
  30. {{- partial "analytics.html" . -}}
  31. </head>
  32. <body data-spy="scroll" data-target="#top-navbar" data-offset="100">
  33. <!--- NAVBAR ------------------------->
  34. {{- partial "navigators/navbar.html" . -}}
  35. <!--- ADD HOME SECTION ---------------->
  36. {{- partial "sections/home.html" . -}}
  37. <!--- ADD OPTIONAL SECTIONS ----------->
  38. {{ $sections:= site.Data.sections }}
  39. {{ if (index site.Data site.Language.Lang).sections }}
  40. {{ $sections = (index site.Data site.Language.Lang).sections }}
  41. {{ end }}
  42. {{ if $sections }}
  43. {{ $background:= "bg-white"}}
  44. {{ range sort $sections "section.weight" }}
  45. {{ if .section.enable }}
  46. <div class="container-fluid section-holder d-flex {{ $background }}">
  47. {{ if .section.template }}
  48. {{- partial .section.template . -}}
  49. {{ else }}
  50. {{- partial (printf "sections/%s.html" (replace (lower .section.id) " " "-")) . -}}
  51. {{ end }}
  52. </div>
  53. <!--- alter background color for next section --->
  54. {{ if eq $background "bg-white" }}
  55. {{ $background = "bg-dimmed" }}
  56. {{ else }}
  57. {{ $background = "bg-white" }}
  58. {{end}}
  59. {{ end }}
  60. {{ end }}
  61. {{ end }}
  62. <!--- ADD FOOTER ----------------------->
  63. {{ $footerTemplate:= site.Params.footer.template | default "footer.html" }}
  64. {{- partial $footerTemplate . -}}
  65. <!--- ADD COMMON SCRIPTS --------------->
  66. {{ partial "scripts.html" . }}
  67. <!--- ADD INDEX PAGE SPECIFIC SCRIPTS -->
  68. <script src="{{ "/js/itype.min.js" | relURL }}"></script>
  69. <script src="{{ "/js/github-button.js" | relURL }}"></script>
  70. <script src="{{ "/js/home.js" | relURL }}"></script>
  71. <script src="{{ "/js/jquery.filterizr.min.js" | relURL }}"></script>
  72. <!------ ADD SUPPORT LINKS -------->
  73. {{- partial "misc/support.html" . -}}
  74. </body>
  75. </html>