aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go10
-rw-r--r--scss/main.scss3
-rw-r--r--scss/tag.scss6
-rw-r--r--templates/base/base.gohtml5
-rw-r--r--templates/page/index.gohtml2
-rw-r--r--templates/page/now.gohtml (renamed from templates/page/tags.gohtml)5
6 files changed, 15 insertions, 16 deletions
diff --git a/main.go b/main.go
index 7fd7093..22ff486 100644
--- a/main.go
+++ b/main.go
@@ -117,14 +117,14 @@ func main() {
"/legal",
"Legal things",
"",
- "Legal information about "+cfg.Person.Name+"'s Now page",
+ "Legal information about "+cfg.Person.Name+"'s bio",
&cfg,
).Handle()
- g.NewTemplate("tags",
- "/tags",
- "Tags",
+ g.NewTemplate("now",
+ "/now",
+ "Now",
"",
- "Tags of "+cfg.Person.Name+"'s Now page",
+ ""+cfg.Person.Name+"'s now",
&cfg,
).Handle()
diff --git a/scss/main.scss b/scss/main.scss
index 8723941..adb87be 100644
--- a/scss/main.scss
+++ b/scss/main.scss
@@ -92,6 +92,7 @@ main {
h1, h2, h3 {
margin-bottom: 1rem;
margin-top: 2rem;
+ font-weight: bold;
}
p {
@@ -116,6 +117,7 @@ h3 {
h4 {
font-size: 1.25rem;
+ font-weight: bold;
}
ul, ol {
@@ -224,6 +226,7 @@ em {
width: 100%;
column-gap: 1rem;
row-gap: 0.5rem;
+ justify-items: center;
@media only screen and (max-width: vars.$bp-little) {
grid-template-columns: 1fr;
column-gap: 0.5rem;
diff --git a/scss/tag.scss b/scss/tag.scss
index 5134f27..10fc161 100644
--- a/scss/tag.scss
+++ b/scss/tag.scss
@@ -37,10 +37,4 @@
display: block;
}
}
- &:hover {
- background: var(--tag-hover);
- & h4 {
- font-weight: bold;
- }
- }
}
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>