diff --git a/components/user.templ b/components/user.templ index 3b2c9cb..6e7ae3e 100644 --- a/components/user.templ +++ b/components/user.templ @@ -9,7 +9,7 @@ import ( "github.com/logto-io/go/core" ) -var GravatarTemplate = template.Must(template.New("gravatar").Parse("
")) +var GravatarTemplate = template.Must(template.New("gravatar").Parse("
")) func GetGravatarURL(email string, size uint) string { email = strings.TrimSpace(strings.ToLower(email)) @@ -19,39 +19,13 @@ func GetGravatarURL(email string, size uint) string { } templ User(claims *core.IdTokenClaims) { -
-
+ +
@templ.FromGoHTML(GravatarTemplate, GetGravatarURL(claims.Email, 100))
-
-
+ } diff --git a/views/layout/base.layout.templ b/views/layout/base.layout.templ index aa85947..ede8969 100644 --- a/views/layout/base.layout.templ +++ b/views/layout/base.layout.templ @@ -18,7 +18,6 @@ templ Base(title, version string) { -