index.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. {{ if .Site.Data.sections }}
  28. {{ $background:= "bg-white"}}
  29. {{ range sort .Site.Data.sections "section.weight" }}
  30. {{ if .section.enable }}
  31. <div class="container-fluid section-holder d-flex {{ $background }}">
  32. {{ if .section.template }}
  33. {{- partial .section.template . -}}
  34. {{ else }}
  35. {{- partial (printf "sections/%s.html" (replace (lower .section.name) " " "-")) . -}}
  36. {{ end }}
  37. </div>
  38. <!--- alter background color for next section --->
  39. {{ if eq $background "bg-white" }}
  40. {{ $background = "bg-dimmed" }}
  41. {{ else }}
  42. {{ $background = "bg-white" }}
  43. {{end}}
  44. {{ end }}
  45. {{ end }}
  46. {{ end }}
  47. <!--- ADD FOOTER ----------------------->
  48. {{- partial "footer.html" . -}}
  49. <!--- ADD COMMON SCRIPTS --------------->
  50. {{ partial "scripts.html" . }}
  51. <!--- ADD INDEX PAGE SPECIFIC SCRIPTS -->
  52. <script src="/assets/js/itype.min.js"></script>
  53. <script src="/assets/js/github-button.js"></script>
  54. <script src="/assets/js/home.js"></script>
  55. <script src="/assets/js/jquery.filterizr.min.js"></script>
  56. </body>
  57. </html>