diff options
Diffstat (limited to 'templates')
| -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> |
