diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-09 23:53:27 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-11-09 23:53:27 +0100 |
| commit | bbacda44f8cd1629d311ce0242fd01124fe4c876 (patch) | |
| tree | 3b53e68d51fcdd84a9d3faffd4b530ecc11d9df4 /templates/page | |
| parent | 5b98185aa6149660be9fd278f48515690d19307a (diff) | |
feat(style): custom colors
Diffstat (limited to 'templates/page')
| -rw-r--r-- | templates/page/index.gohtml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/page/index.gohtml b/templates/page/index.gohtml index e39c8f4..cfb90ed 100644 --- a/templates/page/index.gohtml +++ b/templates/page/index.gohtml @@ -1,5 +1,5 @@ {{define "body"}} - <main style="{{ .GetBackground }}"> + <main style="{{ .GetBackground }}{{ .GetTextColor }}"> <div class="presentation"> <figure> <img src="{{ getStaticPath .Person.Image }}" alt="{{ .Person.Name }}'s image"> @@ -12,7 +12,9 @@ <p class="description">{{ .Description }}</p> <div class="links"> {{ range $link := .Links }} - <div class="link" style="{{ $link.GetBackground }}"><a href="{{ $link.Link }}">{{ $link.Content }}</a></div> + <div class="link" style="{{ .GetBackground }}"> + <a href="{{ .Link }}" style="{{ .GetLinkColor }}">{{ .Content }}</a> + </div> {{end}} </div> </main> |
