index.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>{{- .Site.Title -}}</title>
  5. <meta name="description" content="{{ .Site.Params.description }}" />
  6. <!-- import common headers -->
  7. {{- partial "header.html" . -}}
  8. <!-- import index page specific headers -->
  9. <link rel="stylesheet" href="/assets/css/sections/home.css" />
  10. <link rel="stylesheet" href="/assets/css/sections/about.css" />
  11. <link rel="stylesheet" href="/assets/css/sections/skills.css" />
  12. <link rel="stylesheet" href="/assets/css/sections/experiences.css" />
  13. <link rel="stylesheet" href="/assets/css/sections/projects.css" />
  14. <link rel="stylesheet" href="/assets/css/sections/recent-posts.css" />
  15. <link rel="stylesheet" href="/assets/css/sections/achievements.css" />
  16. <!-- Add Google Analytics if enabled in configuration -->
  17. {{ if .Site.GoogleAnalytics }}
  18. {{ template "_internal/google_analytics_async.html" . }}
  19. {{ end }}
  20. </head>
  21. <body data-spy="scroll" data-target="#top-navbar" data-offset="100">
  22. <!--- NAVBAR ------------------------->
  23. {{- partial "navigators/navbar.html" . -}}
  24. <!--- ADD HOME SECTION ---------------->
  25. {{- partial "sections/home.html" . -}}
  26. <!--- ADD OPTIONAL SECTIONS ----------->
  27. {{ $sections:= .Site.Data.sections }}
  28. {{ if (index .Site.Data .Site.Language.Lang).sections }}
  29. {{ $sections = (index .Site.Data .Site.Language.Lang).sections }}
  30. {{ end }}
  31. {{ if $sections }}
  32. {{ $background:= "bg-white"}}
  33. {{ range sort $sections "section.weight" }}
  34. {{ if .section.enable }}
  35. <div class="container-fluid section-holder d-flex {{ $background }}">
  36. {{ if .section.template }}
  37. {{- partial .section.template . -}}
  38. {{ else }}
  39. {{- partial (printf "sections/%s.html" (replace (lower .section.name) " " "-")) . -}}
  40. {{ end }}
  41. </div>
  42. <!--- alter background color for next section --->
  43. {{ if eq $background "bg-white" }}
  44. {{ $background = "bg-dimmed" }}
  45. {{ else }}
  46. {{ $background = "bg-white" }}
  47. {{end}}
  48. {{ end }}
  49. {{ end }}
  50. {{ end }}
  51. <!--- ADD FOOTER ----------------------->
  52. {{- partial "footer.html" . -}}
  53. <!--- ADD COMMON SCRIPTS --------------->
  54. {{ partial "scripts.html" . }}
  55. <!--- ADD INDEX PAGE SPECIFIC SCRIPTS -->
  56. <script src="/assets/js/itype.min.js"></script>
  57. <script src="/assets/js/github-button.js"></script>
  58. <script src="/assets/js/home.js"></script>
  59. <script src="/assets/js/jquery.filterizr.min.js"></script>
  60. </body>
  61. </html>