Эх сурвалжийг харах

fix(style): consistency across landing section breakpoints

Fix #2123
George Cushen 4 жил өмнө
parent
commit
c15f621515

+ 10 - 8
wowchemy/layouts/partials/widget_page.html

@@ -9,7 +9,8 @@
   {{ $headless_bundle = site.GetPage $page }}
   {{/* Check homepage exists */}}
   {{ if not $headless_bundle }}
-    {{ warnf "Homepage not found at %s!" $page }}
+    {{ warnf "Hugo cannot find a Widget Page at %s!" $page }}
+    {{ warnf "If the page exists, Hugo Server may need restarting due to file changes." }}
     {{ warnf "Add the `/home/index.md` homepage file to each language's content folder. For example, your site should have a `content/home/` folder containing `index.md` and your homepage sections, or for multi-language sites, `content/en/home/` and `content/zh/home/` etc. Refer to the 'Build Your Homepage' and 'Language' documentation at https://wowchemy.com/docs/ and the example homepage at https://github.com/wowchemy/starter-academic/tree/master/exampleSite/content/home/index.md ." }}
   {{ end }}
 {{ else }}
@@ -17,7 +18,8 @@
   {{ $headless_bundle = site.GetPage $page }}
   {{/* Check widget page exists. */}}
   {{ if not $headless_bundle }}
-    {{ warnf "Widget Page not found at %s!" $page }}
+    {{ warnf "Hugo cannot find a Widget Page at %s!" $page }}
+    {{ warnf "If the page exists, Hugo Server may need restarting due to file changes." }}
     {{ warnf "View the Widget Page documentation at https://wowchemy.com/docs/managing-content/#create-a-widget-page ." }}
     {{ warnf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/wowchemy/wowchemy-hugo-modules/issues/1595#issuecomment-605514973 ." }}
   {{ end }}
@@ -111,14 +113,14 @@
       <div class="row  {{if not $st.Title | or (eq $columns "1") }}justify-content-center{{end}}">
       {{ if $st.Title }}
         {{ if eq $columns "1" }}
-          <div class="col-12 section-heading text-center">
-            {{ with $st.Title }}<h1>{{ . | markdownify | emojify }}</h1>{{ end }}
-            {{ with $st.Params.subtitle }}<p>{{ . | markdownify | emojify }}</p>{{ end }}
+          <div class="section-heading col-12 mb-3 d-flex justify-content-center">
+            {{ with $st.Title }}<h1 class="mb-0">{{ . | markdownify | emojify }}</h1>{{ end }}
+            {{ with $st.Params.subtitle }}<p class="mt-1">{{ . | markdownify | emojify }}</p>{{ end }}
           </div>
         {{else}}
-          <div class="col-12 col-lg-4 section-heading">
-            {{ with $st.Title }}<h1>{{ . | markdownify | emojify }}</h1>{{ end }}
-            {{ with $st.Params.subtitle }}<p>{{ . | markdownify | emojify }}</p>{{ end }}
+          <div class="section-heading col-12 col-lg-4 mb-3 mb-lg-0 d-flex justify-content-lg-start justify-content-center">
+            {{ with $st.Title }}<h1 class="mb-0">{{ . | markdownify | emojify }}</h1>{{ end }}
+            {{ with $st.Params.subtitle }}<p class="mt-1">{{ . | markdownify | emojify }}</p>{{ end }}
           </div>
         {{end}}
       {{end}}

+ 0 - 2
wowchemy/layouts/partials/widgets/portfolio.html

@@ -6,8 +6,6 @@
 {{ $items_type := $st.Params.content.page_type | default "project" }}
 {{ $columns := $st.Params.design.columns | default "2" }}
 
-{{ $columns := $st.Params.design.columns | default "2" }}
-
 <div class="col-12 {{if eq $columns "2"}}col-lg-8{{end}}">
 
   {{ with $st.Content }}{{ . }}{{ end }}