Przeglądaj źródła

Create captions counter on body element to prevent reset at every figcaption.

Marcus Brinkmann 9 lat temu
rodzic
commit
76f09bff13
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      static/css/hugo-academic.css

+ 4 - 0
static/css/hugo-academic.css

@@ -91,6 +91,10 @@ video {
     display: block;
 }
 
+body {
+    counter-reset: captions;
+}
+
 figcaption:before {
     font-weight: 700;
     text-transform: uppercase;