From 4b8e43f75b394a4e6169884fbfb4c606865c6a22 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 2 Jul 2016 20:06:31 -0700 Subject: Import migration from Jekyll to Hugo. All the posts were converted, and the layout is created. This looks like it works just fine. --- layouts/_default/single.html | 17 +++++++++++++++++ layouts/_default/title.html | 4 ++++ layouts/index.html | 28 ++++++++++++++++++++++++++++ layouts/partials/base.html | 8 ++++++++ layouts/partials/base_footer.html | 8 ++++++++ layouts/partials/footer.html | 13 +++++++++++++ layouts/partials/header.html | 22 ++++++++++++++++++++++ 7 files changed, 100 insertions(+) create mode 100644 layouts/_default/single.html create mode 100644 layouts/_default/title.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/base.html create mode 100644 layouts/partials/base_footer.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..f4d3437 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,17 @@ +{{ partial "base.html" . }} + +
+ +
fcuny: home
+ +
+

{{ .Title }}

+
+ +
+
{{ .Content }}
+
+ + + {{ partial "base_footer.html" . }} + diff --git a/layouts/_default/title.html b/layouts/_default/title.html new file mode 100644 index 0000000..aeab6c8 --- /dev/null +++ b/layouts/_default/title.html @@ -0,0 +1,4 @@ +
  • + + {{ .Title }} +
  • diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..38644fc --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,28 @@ + + + + + {{ partial "header.html" . }} + + + + +
    + +

    + Hi! My name is Franck Cuny and this is my personal space, welcome! +

    + +
      + {{ range where .Data.Pages "Section" "post" }} + {{ .Render "title" }} + {{ end }} +
    + + {{ partial "footer.html" . }} + +
    + + + + diff --git a/layouts/partials/base.html b/layouts/partials/base.html new file mode 100644 index 0000000..cfc8ad1 --- /dev/null +++ b/layouts/partials/base.html @@ -0,0 +1,8 @@ + + + + + {{ partial "header.html" . }} + + + diff --git a/layouts/partials/base_footer.html b/layouts/partials/base_footer.html new file mode 100644 index 0000000..f4162e7 --- /dev/null +++ b/layouts/partials/base_footer.html @@ -0,0 +1,8 @@ + + {{ partial "footer.html" . }} + +
    + + + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..12aa715 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,13 @@ + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..ee15b88 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,22 @@ + + +{{ .Title }} + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3