index.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. <!--================= custom style overrides =========================-->
  27. <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}"/>
  28. <!-- Add Google Analytics if enabled in configuration -->
  29. {{ if site.GoogleAnalytics }}
  30. <!-- Google Analytics v3 ID -->
  31. {{ if hasPrefix site.GoogleAnalytics "UA-"}}
  32. {{ template "_internal/google_analytics_async.html" . }}
  33. {{ else }}
  34. <!-- Google Analytics v4 ID -->
  35. {{ template "_internal/google_analytics.html" . }}
  36. {{ end }}
  37. {{ end }}
  38. </head>
  39. <body data-spy="scroll" data-target="#top-navbar" data-offset="100">
  40. <!--- NAVBAR ------------------------->
  41. {{- partial "navigators/navbar.html" . -}}
  42. <!--- ADD HOME SECTION ---------------->
  43. {{- partial "sections/home.html" . -}}
  44. <!--- ADD OPTIONAL SECTIONS ----------->
  45. {{ $sections:= site.Data.sections }}
  46. {{ if (index site.Data site.Language.Lang).sections }}
  47. {{ $sections = (index site.Data site.Language.Lang).sections }}
  48. {{ end }}
  49. {{ if $sections }}
  50. {{ $background:= "bg-white"}}
  51. {{ range sort $sections "section.weight" }}
  52. {{ if .section.enable }}
  53. <div class="container-fluid section-holder d-flex {{ $background }}">
  54. {{ if .section.template }}
  55. {{- partial .section.template . -}}
  56. {{ else }}
  57. {{- partial (printf "sections/%s.html" (replace (lower .section.id) " " "-")) . -}}
  58. {{ end }}
  59. </div>
  60. <!--- alter background color for next section --->
  61. {{ if eq $background "bg-white" }}
  62. {{ $background = "bg-dimmed" }}
  63. {{ else }}
  64. {{ $background = "bg-white" }}
  65. {{end}}
  66. {{ end }}
  67. {{ end }}
  68. {{ end }}
  69. <!--- ADD FOOTER ----------------------->
  70. {{ $footerTemplate:= site.Params.footer.template | default "footer.html" }}
  71. {{- partial $footerTemplate . -}}
  72. <!--- ADD COMMON SCRIPTS --------------->
  73. {{ partial "scripts.html" . }}
  74. <!--- ADD INDEX PAGE SPECIFIC SCRIPTS -->
  75. <script src="{{ "/js/itype.min.js" | relURL }}"></script>
  76. <script src="{{ "/js/github-button.js" | relURL }}"></script>
  77. <script src="{{ "/js/home.js" | relURL }}"></script>
  78. <script src="{{ "/js/jquery.filterizr.min.js" | relURL }}"></script>
  79. </body>
  80. </html>