From b7f2a900377cc7011811e4e1598934deab590161 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Sat, 12 May 2018 15:58:56 +0530 Subject: [PATCH] Add products --- exampleSite/content/products/duke.md | 21 +++++++++++++++++++ exampleSite/content/products/modo-21-lamp.md | 21 +++++++++++++++++++ exampleSite/content/products/oda-lamp.md | 21 +++++++++++++++++++ layouts/categories/list.html | 2 +- layouts/partials/footer.html | 0 layouts/partials/header.html | 0 .../{ => products/common}/site-main-nav.html | 2 +- .../list}/product-list-item.html | 0 .../{ => products/list}/product-list.html | 4 ++-- .../single/product-single-heading.html | 6 ++++++ layouts/partials/social.html | 0 layouts/products/list.html | 2 +- layouts/products/single.html | 17 +++++++-------- 13 files changed, 81 insertions(+), 15 deletions(-) create mode 100644 exampleSite/content/products/duke.md create mode 100644 exampleSite/content/products/modo-21-lamp.md create mode 100644 exampleSite/content/products/oda-lamp.md delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/header.html rename layouts/partials/{ => products/common}/site-main-nav.html (94%) rename layouts/partials/{ => products/list}/product-list-item.html (100%) rename layouts/partials/{ => products/list}/product-list.html (64%) create mode 100644 layouts/partials/products/single/product-single-heading.html delete mode 100644 layouts/partials/social.html diff --git a/exampleSite/content/products/duke.md b/exampleSite/content/products/duke.md new file mode 100644 index 0000000..a092a8a --- /dev/null +++ b/exampleSite/content/products/duke.md @@ -0,0 +1,21 @@ +--- +title: "Duke" +date: 2018-05-12T15:48:00+05:30 +tags: ["Floor Light"] +categories: ["Floor Light"] +images: ["https://cdn.shopify.com/s/files/1/1204/7448/products/1210F.4_1024x1024.jpg?v=1517572734", "https://cdn.shopify.com/s/files/1/1204/7448/products/1210F.1_1024x1024.jpg?v=1517572734", "https://cdn.shopify.com/s/files/1/1204/7448/products/1210F.2_1024x1024.jpg?v=1517572734"] +thumbnailImage: "https://cdn.shopify.com/s/files/1/1204/7448/products/1210F.4_large.jpg?v=1517572734" +comparePrice: "" +actualPrice: "₹ 87,341.00" +inStock: true +--- + +Total Fixture Dimensions (in inches): 51x51x63 + +Material: Aluminium + +Colour: Black Gold + +Pack Content: 1 piece lamp with all parts included. Bulbs not included. + +Bulb Recommended: E14 CFL, LED or Incandescent Bulb \ No newline at end of file diff --git a/exampleSite/content/products/modo-21-lamp.md b/exampleSite/content/products/modo-21-lamp.md new file mode 100644 index 0000000..2333e78 --- /dev/null +++ b/exampleSite/content/products/modo-21-lamp.md @@ -0,0 +1,21 @@ +--- +title: "Modo 21 Lamp" +date: 2018-05-12T15:54:25+05:30 +tags: ["chandeliers"] +categories: ["chandeliers"] +images: ["https://cdn.shopify.com/s/files/1/1204/7448/products/MD8001-21_1024x1024.jpg?v=1522740623", "https://cdn.shopify.com/s/files/1/1204/7448/products/MD8001-21.2_1024x1024.jpg?v=1522740623", "https://cdn.shopify.com/s/files/1/1204/7448/products/MD8001-21_1024x1024.jpeg?v=1522740623"] +thumbnailImage: "https://cdn.shopify.com/s/files/1/1204/7448/products/MD8001-21_large.jpeg?v=1522740623" +comparePrice: "" +actualPrice: "₹ 85,000.00" +inStock: true +--- + +A mid-century modern chandelier which in inspired by the hub and spoke design. It has a modern take on a retro industrial style of lighting. The incandescent bulbs in the smoky glass globes glow beautifully when turned on. This chandelier offers warm ambient lighting and will effortless enhance your home decor. It is a luxury lighting fixture for your living room or dining room. Buy Luxury Chandeliers Online in India at best prices. Free Shipping. + +Total Fixture Dimensions (in inches): D1235xH81cm + +Material: Metal & Glass + +Colour: Black & Grey + +Bulb Holder: E14 \ No newline at end of file diff --git a/exampleSite/content/products/oda-lamp.md b/exampleSite/content/products/oda-lamp.md new file mode 100644 index 0000000..fcdc032 --- /dev/null +++ b/exampleSite/content/products/oda-lamp.md @@ -0,0 +1,21 @@ +--- +title: "Oda Lamp" +date: 2018-05-12T13:50:55+05:30 +tags: ["Floor Light"] +categories: ["Floor Light"] +images: ["https://cdn.shopify.com/s/files/1/0832/3531/products/49ab4aa3fc99e391e74c22754cbc7262_1024x1024.jpg?v=1509266776", "https://cdn.shopify.com/s/files/1/0832/3531/products/Oda_Small_Oda_Big_1024x1024.jpg?v=1509266715"] +thumbnailImage: "https://cdn.shopify.com/s/files/1/0832/3531/products/49ab4aa3fc99e391e74c22754cbc7262_large.jpg?v=1509266776" +comparePrice: "₹ 25,920.00" +actualPrice: "₹ 12,960.00" +inStock: false +--- + +Oda is a floor lamp made from a handblown tinted glass barrel balancing on a simple and elegant metal structure. + +Material: Glass and wrought iron + +Color: Smokey Grey + +Dimensions: Glass portion: Dia- 36cm x H-45cm + +Stand: L27cm x B27cm x H 107cm \ No newline at end of file diff --git a/layouts/categories/list.html b/layouts/categories/list.html index 8ecc44b..9b5ab81 100644 --- a/layouts/categories/list.html +++ b/layouts/categories/list.html @@ -1,3 +1,3 @@ {{ define "main" }} - {{ partial "product-list.html" . }} + {{ partial "products/list/product-list.html" . }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/site-main-nav.html b/layouts/partials/products/common/site-main-nav.html similarity index 94% rename from layouts/partials/site-main-nav.html rename to layouts/partials/products/common/site-main-nav.html index 6eec693..e485029 100644 --- a/layouts/partials/site-main-nav.html +++ b/layouts/partials/products/common/site-main-nav.html @@ -5,7 +5,7 @@ {{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }} {{ end }} diff --git a/layouts/partials/product-list-item.html b/layouts/partials/products/list/product-list-item.html similarity index 100% rename from layouts/partials/product-list-item.html rename to layouts/partials/products/list/product-list-item.html diff --git a/layouts/partials/product-list.html b/layouts/partials/products/list/product-list.html similarity index 64% rename from layouts/partials/product-list.html rename to layouts/partials/products/list/product-list.html index 04318b7..42ad946 100644 --- a/layouts/partials/product-list.html +++ b/layouts/partials/products/list/product-list.html @@ -4,12 +4,12 @@
- {{ partial "site-main-nav.html" . }} + {{ partial "products/common/site-main-nav.html" . }}
{{ range .Data.Pages }} - {{ partial "product-list-item.html" . }} + {{ partial "products/list/product-list-item.html" . }} {{ end }}
\ No newline at end of file diff --git a/layouts/partials/products/single/product-single-heading.html b/layouts/partials/products/single/product-single-heading.html new file mode 100644 index 0000000..5ac3ffc --- /dev/null +++ b/layouts/partials/products/single/product-single-heading.html @@ -0,0 +1,6 @@ +

{{ .Title }}

+

+ {{ .Params.comparePrice }} + {{ .Params.actualPrice }} + {{ if not .Params.inStock }} — Sold Out {{ end }} +

\ No newline at end of file diff --git a/layouts/partials/social.html b/layouts/partials/social.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/products/list.html b/layouts/products/list.html index b80dd28..58ac499 100644 --- a/layouts/products/list.html +++ b/layouts/products/list.html @@ -1,3 +1,3 @@ {{ define "main" }} -{{ partial "product-list.html" . }} +{{ partial "products/list/product-list.html" . }} {{ end }} \ No newline at end of file diff --git a/layouts/products/single.html b/layouts/products/single.html index 25f693a..f84de9c 100644 --- a/layouts/products/single.html +++ b/layouts/products/single.html @@ -5,26 +5,23 @@
- {{ partial "site-main-nav.html" . }} + {{ partial "products/common/site-main-nav.html" . }}
-

{{ .Title }}

-

{{ .Params.actualPrice }} {{ if not .Params.inStock }} — Sold Out {{ end }}

+ {{ partial "products/single/product-single-heading.html" . }}
{{ range .Params.images }} - {{ end }} + + {{ end }}
-
-

{{ .Title }}

-

{{ .Params.actualPrice }} {{ if not .Params.inStock }} - — Sold Out {{ end }}

-

{{ .Content }}

+
+ {{ partial "products/single/product-single-heading.html" . }}
-{{end }} \ No newline at end of file +{{ end }} \ No newline at end of file