Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kishaningithub/hugo-shopping-product-catalogue-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishan B <bkishan@thoughtworks.com>2018-05-12 13:28:56 +0300
committerKishan B <bkishan@thoughtworks.com>2018-05-12 13:28:56 +0300
commitb7f2a900377cc7011811e4e1598934deab590161 (patch)
tree4807e9a1bb2b56c164ad569bc9cded06748bee18
parent2a0f691419f1184f550c26579789e93b98ee6a01 (diff)
Add products
-rw-r--r--exampleSite/content/products/duke.md21
-rw-r--r--exampleSite/content/products/modo-21-lamp.md21
-rw-r--r--exampleSite/content/products/oda-lamp.md21
-rw-r--r--layouts/categories/list.html2
-rw-r--r--layouts/partials/footer.html0
-rw-r--r--layouts/partials/header.html0
-rw-r--r--layouts/partials/products/common/site-main-nav.html (renamed from layouts/partials/site-main-nav.html)2
-rw-r--r--layouts/partials/products/list/product-list-item.html (renamed from layouts/partials/product-list-item.html)0
-rw-r--r--layouts/partials/products/list/product-list.html (renamed from layouts/partials/product-list.html)4
-rw-r--r--layouts/partials/products/single/product-single-heading.html6
-rw-r--r--layouts/partials/social.html0
-rw-r--r--layouts/products/list.html2
-rw-r--r--layouts/products/single.html17
13 files changed, 81 insertions, 15 deletions
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
--- a/layouts/partials/footer.html
+++ /dev/null
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
deleted file mode 100644
index e69de29..0000000
--- a/layouts/partials/header.html
+++ /dev/null
diff --git a/layouts/partials/site-main-nav.html b/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 @@
</li>
{{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
<li class="nav-item">
- <a class="nav-link" href="{{ .Permalink }}">{{ .Title}}</a>
+ <a class="nav-link" href="{{ .Permalink }}">{{ .Title | title }}</a>
</li>
{{ end }}
</ul>
diff --git a/layouts/partials/product-list-item.html b/layouts/partials/products/list/product-list-item.html
index fbad048..fbad048 100644
--- a/layouts/partials/product-list-item.html
+++ b/layouts/partials/products/list/product-list-item.html
diff --git a/layouts/partials/product-list.html b/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 @@
<article class="container-fluid">
<div class="row">
<div class="col-12">
- {{ partial "site-main-nav.html" . }}
+ {{ partial "products/common/site-main-nav.html" . }}
</div>
</div>
<div class="row">
{{ range .Data.Pages }}
- {{ partial "product-list-item.html" . }}
+ {{ partial "products/list/product-list-item.html" . }}
{{ end }}
</div>
</article> \ 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 @@
+<h1>{{ .Title }}</h1>
+<p>
+ <span style="text-decoration: line-through">{{ .Params.comparePrice }}</span>
+ <span>{{ .Params.actualPrice }}</span>
+ {{ if not .Params.inStock }} <span class="font-weight-bold">— Sold Out</span> {{ end }}
+</p> \ 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
--- a/layouts/partials/social.html
+++ /dev/null
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 @@
<article class="container-fluid">
<div class="row">
<div class="col-12">
- {{ partial "site-main-nav.html" . }}
+ {{ partial "products/common/site-main-nav.html" . }}
</div>
</div>
<div class="row d-block d-md-none">
<div class="col-sm-12">
- <h1>{{ .Title }}</h1>
- <p>{{ .Params.actualPrice }} {{ if not .Params.inStock }} <span class="font-weight-bold">— Sold Out</span> {{ end }}</p>
+ {{ partial "products/single/product-single-heading.html" . }}
</div>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
{{ range .Params.images }}
- <img class="img-fluid text-center" src="{{ . }}" /> {{ end }}
+ <img class="img-fluid text-center" src="{{ . }}" />
+ {{ end }}
</div>
- <div class="col-sm-12 col-md-6">
- <h1 class="d-sm-none d-md-block">{{ .Title }}</h1>
- <p class="d-sm-none d-md-block">{{ .Params.actualPrice }} {{ if not .Params.inStock }}
- <span class="font-weight-bold">— Sold Out</span> {{ end }}</p>
- <p>{{ .Content }}</p>
+ <div class="col-sm-12 col-md-6 d-sm-none d-md-block">
+ {{ partial "products/single/product-single-heading.html" . }}
</div>
</div>
</article>
-{{end }} \ No newline at end of file
+{{ end }} \ No newline at end of file