index.html 3.5 KB

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