Просмотр исходного кода

:recycle: adding back hero setting | some style tweaks

tags/0.9.0
J 4 лет назад
Родитель
Сommit
c9ec63e7b0
2 измененных файлов: 8 добавлений и 11 удалений
  1. 3
    5
      vue-theme/src/app.vue
  2. 5
    6
      vue-theme/src/pages/list.vue

+ 3
- 5
vue-theme/src/app.vue Просмотреть файл

@@ -36,16 +36,14 @@ html
36 36
             /* background-color: green*/
37 37
             background-color: $cia_white2
38 38
             width: 100%
39
-            /* margin: 0 0 3vh 0 */
40 39
             padding: 0 0 3vh 0
41 40
             
42 41
             /* :--headings, a */
43 42
             a
44 43
                 color: $cia_red
45
-            
46
-            a:hover
47
-                /* leave obvious for testing */
48
-                color: green
44
+                &:hover
45
+                    /* leave obvious for testing */
46
+                    color: green
49 47
 
50 48
             img
51 49
                 transition: $transition ease-in

+ 5
- 6
vue-theme/src/pages/list.vue Просмотреть файл

@@ -86,11 +86,8 @@ export default {
86 86
             if(!this.keepFetching) return console.warn('nothing left to fetch...')
87 87
 
88 88
             this.loadingFetched = true
89
-            console.warn(
90
-                `loading page ${this.page + 1} of ${type} posts: 
91
-                    ${this.page * this.perPage + 1} through 
92
-                    ${(this.page + 1) * this.perPage}`
93
-            )
89
+            console.warn(`loading page ${this.page + 1} of ${type} posts: ${this.page * this.perPage + 1} to ${(this.page + 1) * this.perPage}`)
90
+
94 91
             this.page++
95 92
             await this.getPosts()
96 93
         },
@@ -180,7 +177,9 @@ export default {
180 177
         clearAndInitPostList() {
181 178
             this.page = 0
182 179
             this.keepFetching = true
183
-    
180
+
181
+            this.checkAndSetHero()
182
+
184 183
             // Fires when loading from home
185 184
             // Clear any preloaded posts (from home, etc.)
186 185
             this.clearAllPosts()

Загрузка…
Отмена
Сохранить