header.html 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <meta charset="UTF-8" />
  2. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  3. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  4. <!-- ============ import common css ========== -->
  5. <link rel="stylesheet" href="{{ "/css/bootstrap.min.css" | relURL }}"/>
  6. <link rel="stylesheet" href="{{ "/css/layouts/main.css" | relURL }}"/>
  7. <link rel="stylesheet" href="{{ "/css/navigators/navbar.css" | relURL }}"/>
  8. <link rel="stylesheet" href="{{ "/css/plyr.css" | relURL }}"/>
  9. <link rel="stylesheet" href="{{ "/css/flag-icon.min.css" | relURL }}"/>
  10. <!--=================== cdn ==============================-->
  11. <link href="https://fonts.googleapis.com/css2?family=Muli:wght@300;400;500;600" rel="stylesheet">
  12. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" />
  13. <!--================= fab-icon =========================-->
  14. {{/* add favicon only if the site author has provided the the favicon */}}
  15. {{ if site.Params.logo.favicon }}
  16. {{ $favicon := site.Params.logo.favicon }}
  17. {{/* resize the favicon. don't resize svg because it is not supported */}}
  18. {{ $favicon = resources.Get $favicon }}
  19. {{ if and $favicon (ne $favicon.MediaType.SubType "svg") }}
  20. {{ $favicon = $favicon.Resize "42x" }}
  21. {{ end }}
  22. {{ $favicon = $favicon.RelPermalink}}
  23. <link rel="icon" type="image/png" href="{{ $favicon }}" />
  24. {{end}}