index.html 3.1 KB

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