index.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <!-- import index page specific headers -->
  16. <link rel="stylesheet" href="{{ "/css/sections/home.css" | relURL }}"/>
  17. <link rel="stylesheet" href="{{ "/css/sections/about.css" | relURL }}"/>
  18. <link rel="stylesheet" href="{{ "/css/sections/skills.css" | relURL }}"/>
  19. <link rel="stylesheet" href="{{ "/css/sections/experiences.css" | relURL }}"/>
  20. <link rel="stylesheet" href="{{ "/css/sections/education.css" | relURL }}"/>
  21. <link rel="stylesheet" href="{{ "/css/sections/projects.css" | relURL }}"/>
  22. <link rel="stylesheet" href="{{ "/css/sections/recent-posts.css" | relURL }}"/>
  23. <link rel="stylesheet" href="{{ "/css/sections/achievements.css" | relURL }}"/>
  24. <link rel="stylesheet" href="{{ "/css/sections/accomplishments.css" | relURL }}"/>
  25. <!-- Add Google Analytics if enabled in configuration -->
  26. {{ if site.GoogleAnalytics }}
  27. {{ template "_internal/google_analytics_async.html" . }}
  28. {{ end }}
  29. </head>
  30. <body data-spy="scroll" data-target="#top-navbar" data-offset="100">
  31. <!--- NAVBAR ------------------------->
  32. {{- partial "navigators/navbar.html" . -}}
  33. <!--- ADD HOME SECTION ---------------->
  34. {{- partial "sections/home.html" . -}}
  35. <!--- ADD OPTIONAL SECTIONS ----------->
  36. {{ $sections:= site.Data.sections }}
  37. {{ if (index site.Data site.Language.Lang).sections }}
  38. {{ $sections = (index site.Data site.Language.Lang).sections }}
  39. {{ end }}
  40. {{ if $sections }}
  41. {{ $background:= "bg-white"}}
  42. {{ range sort $sections "section.weight" }}
  43. {{ if .section.enable }}
  44. <div class="container-fluid section-holder d-flex {{ $background }}">
  45. {{ if .section.template }}
  46. {{- partial .section.template . -}}
  47. {{ else }}
  48. {{- partial (printf "sections/%s.html" (replace (lower .section.id) " " "-")) . -}}
  49. {{ end }}
  50. </div>
  51. <!--- alter background color for next section --->
  52. {{ if eq $background "bg-white" }}
  53. {{ $background = "bg-dimmed" }}
  54. {{ else }}
  55. {{ $background = "bg-white" }}
  56. {{end}}
  57. {{ end }}
  58. {{ end }}
  59. {{ end }}
  60. <!--- ADD FOOTER ----------------------->
  61. {{- partial "footer.html" . -}}
  62. <!--- ADD COMMON SCRIPTS --------------->
  63. {{ partial "scripts.html" . }}
  64. <!--- ADD INDEX PAGE SPECIFIC SCRIPTS -->
  65. <script src="{{ "/js/itype.min.js" | relURL }}"></script>
  66. <script src="{{ "/js/github-button.js" | relURL }}"></script>
  67. <script src="{{ "/js/home.js" | relURL }}"></script>
  68. <script src="{{ "/js/jquery.filterizr.min.js" | relURL }}"></script>
  69. </body>
  70. </html>