Browse Source

fix: center Portfolio toolbar in 1 col layout

George Cushen 3 years ago
parent
commit
31333ef8d4

+ 1 - 1
wowchemy/layouts/partials/widgets/about.avatar.html

@@ -75,7 +75,7 @@
   </ul>
 
   {{ with $page.Content }}
-  <div class="article-style">
+  <div class="article-style pt-1">
     {{ . }}
   </div>
   {{ end }}

+ 1 - 1
wowchemy/layouts/partials/widgets/portfolio.html

@@ -28,7 +28,7 @@
     {{ if gt (len $st.Params.content.filter_button) 1 }}
     <div class="project-toolbar">
       <div class="project-filters">
-        <div class="btn-toolbar">
+        <div class="btn-toolbar {{if eq $columns "1"}}d-flex justify-content-center{{end}}">
           <div class="btn-group flex-wrap">
             {{ range $idx, $item := $st.Params.content.filter_button }}
               {{/* Parse filter tag from front matter in the form of either tag name or CSS class name. */}}