<!-- Voir : https://docs.theme-park.dev/themes/gitea/#adding-the-themes-in-gitea  -->
<!-- Pensez à supprimer le fichier header.tmpl du serveur Gitea !                 -->

{{ if .IsSigned }}
  {{ if and (ne .SignedUser.Theme "gitea") (ne .SignedUser.Theme "arc-green") }}
    {{ if (eq .SignedUser.Theme "dracula-test") }}
      <link rel="stylesheet" href="https://theme-park.dev/css/base/gitea/gitea-base.css">
      <link rel="stylesheet" href="https://theme-park.dev/css/base/gitea/chroma.css">  
      <link rel="stylesheet" href="https://theme-park.dev/css/theme-options/dracula.css">
    {{else}}
      <link rel="stylesheet" href="https://theme-park.dev/css/base/gitea/{{.SignedUser.Theme}}.css">
    {{end}}
  {{end}}
{{ else if and (ne DefaultTheme "gitea") (ne DefaultTheme "arc-green") }}
  <link rel="stylesheet" href="https://theme-park.dev/css/base/gitea/{{DefaultTheme}}.css">
{{end}}
