application.template.scss 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // loading bootstrap
  2. // TODO: Refactor to use bootstrap sass variable for theming.
  3. @import 'bootstrap/scss/bootstrap';
  4. // The Mulish font, we use font-weight 300 - 700
  5. @import '@fontsource/mulish/300';
  6. @import '@fontsource/mulish/index'; // 400
  7. @import '@fontsource/mulish/500';
  8. @import '@fontsource/mulish/600';
  9. @import '@fontsource/mulish/700';
  10. // layouts
  11. @import './layouts/main';
  12. @import './layouts/list';
  13. @import './layouts/single';
  14. @import './layouts/notes';
  15. @import './layouts/404';
  16. // navigators
  17. @import './navigators/navbar';
  18. @import './navigators/sidebar';
  19. // sections
  20. @import './sections/home';
  21. @import './sections/about';
  22. @import './sections/skills';
  23. @import './sections/experiences';
  24. @import './sections/education';
  25. @import './sections/projects';
  26. @import './sections/recent-posts';
  27. @import './sections/achievements';
  28. @import './sections/accomplishments';
  29. @import './sections/publications';
  30. // override
  31. @import './override';
  32. // features and services, only imported if enabled.
  33. {{ range $feature, $featureDef := site.Params.features }}
  34. {{ with $featureDef }}
  35. {{ $featureEnabled := or (not (isset . "enable")) .enable }}
  36. {{ if $featureEnabled }}
  37. {{ with (index site.Data.toha.styles $feature) }}
  38. {{ range .styles }}
  39. @import '{{.}}';
  40. {{ end }}
  41. {{ end }}
  42. {{ range $service, $config := .services }}
  43. {{ with (index site.Data.toha.styles $feature) }}
  44. {{ with .services }}
  45. {{ with (index . $service) }}
  46. {{ range .styles }}
  47. @import '{{ . }}';
  48. {{ end }}
  49. {{ end }}
  50. {{ end }}
  51. {{ end }}
  52. {{ end }}
  53. {{ end }}
  54. {{ end }}
  55. {{ end }}