diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base/base.gohtml | 5 | ||||
| -rw-r--r-- | templates/page/index.gohtml | 2 | ||||
| -rw-r--r-- | templates/page/now.gohtml (renamed from templates/page/tags.gohtml) | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml index 34d5451..894685b 100644 --- a/templates/base/base.gohtml +++ b/templates/base/base.gohtml @@ -1,4 +1,5 @@ {{define "base"}} + {{ $notRoot := ne .SEO.URL "/" }} <!doctype html> <html lang="fr" prefix="og: https://ogp.me/ns#"> <head> @@ -20,7 +21,7 @@ </style> <link rel="stylesheet" href="{{getAssetPath "styles.css"}}" /> {{template "opengraph-base" .SEO}} - {{ if .Data.IsCustomPage }} + {{ if $notRoot }} <style> .links { {{ .Data.Color.Button.GetBackground }}{{ .Data.Color.Button.GetTextColor }} } </style> @@ -36,7 +37,7 @@ </div> {{ $rings := getRings }} {{ if ne $rings nil }} - <div class="rings {{ if ne .SEO.URL "/" }}fixed{{ end }}"> + <div class="rings {{ if $notRoot }}fixed{{ end }}"> {{ range $ring := $rings }} <a href="{{ $ring.Link }}" target="_blank" class="ring"> <img src="{{ getImage $ring.Image }}" alt="{{ $ring.Name }} logo"> diff --git a/templates/page/index.gohtml b/templates/page/index.gohtml index 73301fb..8f376f3 100644 --- a/templates/page/index.gohtml +++ b/templates/page/index.gohtml @@ -19,7 +19,7 @@ </div> {{ end }} <div class="link"> - <a href="/tags">Tags</a> + <a href="/now">Now</a> </div> </nav> </main> diff --git a/templates/page/tags.gohtml b/templates/page/now.gohtml index 6106152..776e87a 100644 --- a/templates/page/tags.gohtml +++ b/templates/page/now.gohtml @@ -1,7 +1,7 @@ {{define "body"}} <main style="{{ .GetBackground }}"> <div class="header"> - <h1 class="header__title">Tags</h1> + <h1 class="header__title">Now</h1> <nav> <a href="/">Home</a> </nav> @@ -9,8 +9,9 @@ <div class="tags" style="{{ .Color.GetTagColor }}"> {{ range $tag := .Person.Tags }} <div class="tag" data-href="{{ .Link }}" title="{{ .Link }}"> - <h3>{{ .Name }}</h3> + <h4>{{ .Name }}</h4> <p>{{ .Description }}</p> + <p><a href="">Hello</a></p> </div> {{ end }} </div> |
