debugging product-generate.rb
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
oDinZu 2022-11-25 15:22:56 -05:00
parent edbf9d5cf2
commit 0c07ba1481
13 changed files with 54 additions and 5 deletions

View File

@ -1 +1 @@
{"data":[{"id":1,"attributes":{"createdAt":"2022-05-23T23:00:27.098Z","updatedAt":"2022-11-02T23:43:42.752Z","locale":"en","name":"Charles","website":"https://sharpetronics.com","short_biography":"🖥️ A Stack Architect, 🦅 A Director, 🎖️ A USAF Veteran, 📜 Intergalactic Confederation, ⚡ ἀγάπηφῶς","twitter_username":"odinzu_me","github_username":"csharpee","avatar_image":{"data":{"id":55,"attributes":{"name":"c-avatar.webp","alternativeText":"c-avatar.webp","caption":"c-avatar.webp","width":200,"height":200,"formats":{"thumbnail":{"name":"thumbnail_c-avatar.webp","hash":"thumbnail_c_avatar_30ba895a14","ext":".webp","mime":"image/webp","path":null,"width":156,"height":156,"size":2.36,"url":"/uploads/thumbnail_c_avatar_30ba895a14.webp"}},"hash":"c_avatar_30ba895a14","ext":".webp","mime":"image/webp","size":18.42,"url":"/uploads/c_avatar_30ba895a14.webp","previewUrl":null,"provider":"local","provider_metadata":null,"createdAt":"2022-11-02T19:05:28.860Z","updatedAt":"2022-11-05T19:25:12.966Z"}}},"localizations":{"data":[]}}},{"id":2,"attributes":{"createdAt":"2022-11-02T23:43:32.121Z","updatedAt":"2022-11-02T23:43:56.227Z","locale":"en","name":"Dexter","website":"https://csharpe.me","short_biography":"I am a biography!","twitter_username":"csharpe_me","github_username":"csharpee","avatar_image":{"data":{"id":56,"attributes":{"name":"Profile-pic.jpeg","alternativeText":"Profile-pic.jpeg","caption":"Profile-pic.jpeg","width":460,"height":460,"formats":{"thumbnail":{"name":"thumbnail_Profile-pic.jpeg","hash":"thumbnail_Profile_pic_5c8182992f","ext":".jpeg","mime":"image/jpeg","path":null,"width":156,"height":156,"size":5.44,"url":"/uploads/thumbnail_Profile_pic_5c8182992f.jpeg"}},"hash":"Profile_pic_5c8182992f","ext":".jpeg","mime":"image/jpeg","size":44.04,"url":"/uploads/Profile_pic_5c8182992f.jpeg","previewUrl":null,"provider":"local","provider_metadata":null,"createdAt":"2022-11-02T23:35:27.113Z","updatedAt":"2022-11-02T23:35:27.113Z"}}},"localizations":{"data":[]}}}],"meta":{"pagination":{"page":1,"pageSize":25,"pageCount":1,"total":2}}}
{"data":[{"id":1,"attributes":{"createdAt":"2022-05-23T23:00:27.098Z","updatedAt":"2022-11-02T23:43:42.752Z","locale":"en","name":"Charles","website":"https://sharpetronics.com","short_biography":"🖥️ A Stack Architect, 🦅 A Director, 🎖️ A USAF Veteran, 📜 Intergalactic Confederation, ⚡ ἀγάπηφῶς","twitter_username":"odinzu_me","github_username":"csharpee","avatar_image":{"data":{"id":55,"attributes":{"name":"c-avatar.webp","alternativeText":"c-avatar.webp","caption":"c-avatar.webp","width":200,"height":200,"formats":{"thumbnail":{"name":"thumbnail_c-avatar.webp","hash":"thumbnail_c_avatar_30ba895a14","ext":".webp","mime":"image/webp","path":null,"width":156,"height":156,"size":2.36,"url":"/uploads/thumbnail_c_avatar_30ba895a14.webp"}},"hash":"c_avatar_30ba895a14","ext":".webp","mime":"image/webp","size":18.42,"url":"/uploads/c_avatar_30ba895a14.webp","previewUrl":null,"provider":"local","provider_metadata":null,"createdAt":"2022-11-02T19:05:28.860Z","updatedAt":"2022-11-25T19:02:01.386Z"}}},"localizations":{"data":[]}}},{"id":2,"attributes":{"createdAt":"2022-11-02T23:43:32.121Z","updatedAt":"2022-11-02T23:43:56.227Z","locale":"en","name":"Dexter","website":"https://csharpe.me","short_biography":"I am a biography!","twitter_username":"csharpe_me","github_username":"csharpee","avatar_image":{"data":{"id":56,"attributes":{"name":"Profile-pic.jpeg","alternativeText":"Profile-pic.jpeg","caption":"Profile-pic.jpeg","width":460,"height":460,"formats":{"thumbnail":{"name":"thumbnail_Profile-pic.jpeg","hash":"thumbnail_Profile_pic_5c8182992f","ext":".jpeg","mime":"image/jpeg","path":null,"width":156,"height":156,"size":5.44,"url":"/uploads/thumbnail_Profile_pic_5c8182992f.jpeg"}},"hash":"Profile_pic_5c8182992f","ext":".jpeg","mime":"image/jpeg","size":44.04,"url":"/uploads/Profile_pic_5c8182992f.jpeg","previewUrl":null,"provider":"local","provider_metadata":null,"createdAt":"2022-11-02T23:35:27.113Z","updatedAt":"2022-11-02T23:35:27.113Z"}}},"localizations":{"data":[]}}}],"meta":{"pagination":{"page":1,"pageSize":25,"pageCount":1,"total":2}}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -73,6 +73,5 @@ services:
ports:
- 4000:4000
environment:
- API_TOKEN=$API_TOKEN,
- STRIPE_LIVE_KEY=$STRIPE_LIVE_KEY
- API_TOKEN=$API_TOKEN
command: jekyll serve --lsi --watch --verbose --trace

View File

@ -0,0 +1,13 @@
---
layout: none
permalink: /api/pages/
---
[
{%- for page in site.pages %}
{
"title": {{- page.title | jsonify }},
"url": {{- page.url | jsonify }}
}
{% unless forloop.last %},{% endunless %}
{% endfor -%}
]

View File

@ -0,0 +1,22 @@
---
layout: none
permalink: /api/posts/
---
[
{%- for post in site.posts %}
{
"id": {{- post.id | jsonify -}},
"url": {{- post.url | jsonify }},
"image": {{- post.banner_image | jsonify -}},
"image-alt": {{- post.banner_image_alt | jsonify -}},
"sub_heading":{{- post.sub_heading | jsonify -}},
"title": {{- post.title | jsonify }},
"author": {{- post.author | jsonify }},
"date": {{- post.date | jsonify }},
"tags": {{- post.tags | jsonify }},
"categories": {{- post.categories | jsonify }},
"content": {{- post.content | jsonify }}
}
{% unless forloop.last %},{% endunless %}
{% endfor -%}
]

View File

@ -0,0 +1,15 @@
---
layout: none
permalink: /api/products/
---
[
{%- for product_hash in site.data.products %}
{% assign product = product_hash[1] %}
{
"title": {{- product.title | jsonify }},
"url": {{- product.url | jsonify }},
"price": {{- product.price | jsonify }}
}
{% unless forloop.last %},{% endunless %}
{% endfor -%}
]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 KiB