diff --git a/layouts/index.html b/layouts/index.html index e583759..d2c324c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1 +1,7 @@ -

Test

+{{ define "main" }} + +
+

Main body goes here

+
+ +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..cce6663 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,24 @@ + diff --git a/themes/minimal-theme/layouts/partials/footer.html b/themes/minimal-theme/layouts/partials/footer.html index a7cd916..efedbd4 100644 --- a/themes/minimal-theme/layouts/partials/footer.html +++ b/themes/minimal-theme/layouts/partials/footer.html @@ -1 +1 @@ -

Copyright {{ now.Year }}. All rights reserved.

+

© My Dummy Website

diff --git a/themes/minimal-theme/layouts/partials/header.html b/themes/minimal-theme/layouts/partials/header.html index 7980a00..8995308 100644 --- a/themes/minimal-theme/layouts/partials/header.html +++ b/themes/minimal-theme/layouts/partials/header.html @@ -1,2 +1 @@ -

{{ site.Title }}

{{ partial "menu.html" (dict "menuID" "main" "page" .) }} diff --git a/themes/minimal-theme/layouts/partials/menu.html b/themes/minimal-theme/layouts/partials/menu.html index 8f72130..1d3476d 100644 --- a/themes/minimal-theme/layouts/partials/menu.html +++ b/themes/minimal-theme/layouts/partials/menu.html @@ -11,10 +11,22 @@ Renders a menu for the given menu ID. {{- $menuID := .menuID }} {{- with index site.Menus $menuID }} -