diff options
| -rw-r--r-- | sass/include/_top.scss | 4 | ||||
| -rw-r--r-- | templates/page.html | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sass/include/_top.scss b/sass/include/_top.scss index 98b2a61..b9fd406 100644 --- a/sass/include/_top.scss +++ b/sass/include/_top.scss @@ -1,10 +1,12 @@ .top { position: sticky; bottom: 9px; - padding: 9px; + right: 9px; + place-self: end; margin-top: 109vh; + padding: 9px; font-weight:700; border-radius: 9px; color: var(--a1); diff --git a/templates/page.html b/templates/page.html index c653018..eb06ac3 100644 --- a/templates/page.html +++ b/templates/page.html @@ -66,5 +66,11 @@ {%- endblock content %} {%- block gotop %} + +{%- if page.reading_time %} +{%- if page.reading_time > 1 %} <a href="#" class="top">⋏</a> +{%- endif %} +{%- endif %} + {%- endblock gotop %}
\ No newline at end of file |
