index.html 3.4 KB

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