diff --git a/assets/css/main.css b/assets/css/main.css index e324079..fb5126f 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -79,6 +79,11 @@ h1 { h2 { font-size: 1.2em; + margin-top: 3em; +} + +h2:first-of-type { + margin-top: 0; } h3 { @@ -415,9 +420,8 @@ article header h1 a { .post h4 a, .post h5 a, .post h6 a { - opacity: 0; - position: absolute; - left: -1.2rem; + opacity: 1; + border-bottom: none; } .post h1:hover a, diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index d1af727..7c7f3ec 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,7 +1,8 @@ -{{ .Text | safeHTML }} - + +
- + {{ range seq 2 .Level}}#{{end}} - + {{ .Text | safeHTML }} +
\ No newline at end of file