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

refactor: paths for components

George Cushen 3 жил өмнө
parent
commit
c937b22f1e

+ 1 - 1
wowchemy/layouts/partials/book_layout.html

@@ -31,7 +31,7 @@
 
         <div class="docs-article-container">
           {{ if $show_breadcrumb }}
-            {{ partial "breadcrumb" $current_page }}
+            {{ partial "components/breadcrumb" $current_page }}
           {{ end }}
 
           <h1>{{ .Title }}</h1>

+ 1 - 1
wowchemy/layouts/partials/breadcrumb.html → wowchemy/layouts/partials/components/breadcrumb.html

@@ -1,7 +1,7 @@
 {{ if not .IsHome }}
   <nav class="d-none d-md-flex" aria-label="breadcrumb">
     <ol class="breadcrumb">
-      {{ partial "breadcrumb_helper" . }}
+      {{ partial "components/breadcrumb_child" . }}
       <li class="breadcrumb-item active" aria-current="page">
         {{ .LinkTitle | emojify }}
       </li>

+ 1 - 1
wowchemy/layouts/partials/breadcrumb_helper.html → wowchemy/layouts/partials/components/breadcrumb_child.html

@@ -1,5 +1,5 @@
 {{ with .Parent }}
-  {{ partial "breadcrumb_helper" . }}
+  {{ partial "components/breadcrumb_child" . }}
   <li class="breadcrumb-item">
     <a href="{{ .RelPermalink }}">
       {{ if .IsHome }}

+ 0 - 0
wowchemy/layouts/partials/share.html → wowchemy/layouts/partials/components/page_sharer.html


+ 1 - 1
wowchemy/layouts/partials/page_footer.html

@@ -1,6 +1,6 @@
 {{ partial "page_edit" . }}
 {{ partial "tags" . }}
-{{ partial "share" . }}
+{{ partial "components/page_sharer" . }}
 {{ partial "page_author" . }}
 {{ partial "comments" . }}