bluszcz / jekyll-strapi-4

Jekyll plugin to retrieve content from any Strapi v4 API.
https://bluszcz.github.io/jekyll-strapi/
MIT License
6 stars 1 forks source link

Photos from Strapi does not load into Jekyll #17

Closed oDinZu closed 2 years ago

oDinZu commented 2 years ago

I followed the directions / instructions with precision.

I added this to: docs/_layouts/photo.html; re-built the site and nothing happens. No data being logged or images being downloaded from Strapi.

There are no more instruction in README.md


---
layout: default
---

<div class="home">
  <h1 class="page-heading">{{ page.document.title }}</h1>
  <h2>{{ page.document.strapi_attributes.Title }}</h2>
  <p>{{ page.document.strapi_attributes.Comment }}</p>
  <img src="{{ page.document.strapi_attributes.Image.data.attributes.formats.thumbnail| asset_url }}"/>
</div>
oDinZu commented 2 years ago

Entire log:


[+] Running 1/0
 ⠿ Container jekyll-strapi-jekyll-serve-1  Created                                                                                            0.0s
Attaching to jekyll-strapi-jekyll-serve-1
jekyll-strapi-jekyll-serve-1  | ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux-musl]
jekyll-strapi-jekyll-serve-1  |   Logging at level: debug
jekyll-strapi-jekyll-serve-1  |     Jekyll Version: 4.2.2
jekyll-strapi-jekyll-serve-1  |   Logging at level: debug
jekyll-strapi-jekyll-serve-1  |     Jekyll Version: 4.2.2
jekyll-strapi-jekyll-serve-1  | Configuration file: none
jekyll-strapi-jekyll-serve-1  |             Source: /srv/jekyll
jekyll-strapi-jekyll-serve-1  |        Destination: /srv/jekyll/_site
jekyll-strapi-jekyll-serve-1  |  Incremental build: disabled. Enable with --incremental
jekyll-strapi-jekyll-serve-1  |       Generating... 
jekyll-strapi-jekyll-serve-1  |        EntryFilter: excluded /.jekyll-cache
jekyll-strapi-jekyll-serve-1  |        EntryFilter: excluded /Gemfile.lock
jekyll-strapi-jekyll-serve-1  |        EntryFilter: excluded /Gemfile
jekyll-strapi-jekyll-serve-1  |            Reading: docs/dev.markdown
jekyll-strapi-jekyll-serve-1  |            Reading: docs/index.markdown
jekyll-strapi-jekyll-serve-1  |            Reading: docs/404.html
jekyll-strapi-jekyll-serve-1  |            Reading: docs/docs.markdown
jekyll-strapi-jekyll-serve-1  |          Rendering: docs/404.html
jekyll-strapi-jekyll-serve-1  |   Pre-Render Hooks: docs/404.html
jekyll-strapi-jekyll-serve-1  |   Rendering Markup: docs/404.html
jekyll-strapi-jekyll-serve-1  | Post-Convert Hooks: docs/404.html
jekyll-strapi-jekyll-serve-1  |   Rendering Layout: docs/404.html
jekyll-strapi-jekyll-serve-1  |      Build Warning: Layout 'default' requested in docs/404.html does not exist.
jekyll-strapi-jekyll-serve-1  |          Rendering: docs/dev.markdown
jekyll-strapi-jekyll-serve-1  |   Pre-Render Hooks: docs/dev.markdown
jekyll-strapi-jekyll-serve-1  |   Rendering Markup: docs/dev.markdown
jekyll-strapi-jekyll-serve-1  | Post-Convert Hooks: docs/dev.markdown
jekyll-strapi-jekyll-serve-1  |   Rendering Layout: docs/dev.markdown
jekyll-strapi-jekyll-serve-1  |      Build Warning: Layout 'page' requested in docs/dev.markdown does not exist.
jekyll-strapi-jekyll-serve-1  |          Rendering: docs/docs.markdown
jekyll-strapi-jekyll-serve-1  |   Pre-Render Hooks: docs/docs.markdown
jekyll-strapi-jekyll-serve-1  |   Rendering Liquid: docs/docs.markdown
jekyll-strapi-jekyll-serve-1  |      Build Warning: Layout 'page' requested in docs/docs.markdown does not exist.
jekyll-strapi-jekyll-serve-1  |   Rendering Markup: docs/docs.markdown
jekyll-strapi-jekyll-serve-1  | Post-Convert Hooks: docs/docs.markdown
jekyll-strapi-jekyll-serve-1  |   Rendering Layout: docs/docs.markdown
jekyll-strapi-jekyll-serve-1  |          Rendering: docs/index.markdown
jekyll-strapi-jekyll-serve-1  |   Pre-Render Hooks: docs/index.markdown
jekyll-strapi-jekyll-serve-1  |   Rendering Markup: docs/index.markdown
jekyll-strapi-jekyll-serve-1  | Post-Convert Hooks: docs/index.markdown
jekyll-strapi-jekyll-serve-1  |   Rendering Layout: docs/index.markdown
jekyll-strapi-jekyll-serve-1  |      Build Warning: Layout 'home' requested in docs/index.markdown does not exist.
jekyll-strapi-jekyll-serve-1  |           Conflict: The following destination is shared by multiple files.
jekyll-strapi-jekyll-serve-1  |                     The written file may end up with unexpected contents.
jekyll-strapi-jekyll-serve-1  |                     /srv/jekyll/_site/docs/index.html
jekyll-strapi-jekyll-serve-1  |                      - docs/docs.markdown
jekyll-strapi-jekyll-serve-1  |                      - docs/index.markdown
jekyll-strapi-jekyll-serve-1  |                     
jekyll-strapi-jekyll-serve-1  |            Writing: /srv/jekyll/_site/404.html
jekyll-strapi-jekyll-serve-1  |            Writing: /srv/jekyll/_site/dev/index.html
jekyll-strapi-jekyll-serve-1  |            Writing: /srv/jekyll/_site/docs/index.html
jekyll-strapi-jekyll-serve-1  |            Writing: /srv/jekyll/_site/docs/index.html
jekyll-strapi-jekyll-serve-1  |                     done in 0.046 seconds.
jekyll-strapi-jekyll-serve-1  |          Requiring: jekyll-watch
jekyll-strapi-jekyll-serve-1  |            Watcher: Ignoring (?-mix:^_site\/)
jekyll-strapi-jekyll-serve-1  |            Watcher: Ignoring (?-mix:^\.jekyll\-cache\/)
jekyll-strapi-jekyll-serve-1  |            Watcher: Ignoring (?-mix:^Gemfile)
jekyll-strapi-jekyll-serve-1  |            Watcher: Ignoring (?-mix:^Gemfile\.lock)
jekyll-strapi-jekyll-serve-1  |  Auto-regeneration: enabled for '/srv/jekyll'
jekyll-strapi-jekyll-serve-1  | [2022-06-23 11:47:30] INFO  WEBrick 1.7.0
jekyll-strapi-jekyll-serve-1  | [2022-06-23 11:47:30] INFO  ruby 3.1.1 (2022-02-18) [x86_64-linux-musl]
jekyll-strapi-jekyll-serve-1  | [2022-06-23 11:47:30] DEBUG WEBrick::HTTPServlet::FileHandler is mounted on /.
jekyll-strapi-jekyll-serve-1  | [2022-06-23 11:47:30] DEBUG unmount .
jekyll-strapi-jekyll-serve-1  | [2022-06-23 11:47:30] DEBUG Jekyll::Commands::Serve::Servlet is mounted on .
jekyll-strapi-jekyll-serve-1  |     Server address: http://0.0.0.0:4000
jekyll-strapi-jekyll-serve-1  | [2022-06-23 11:47:30] INFO  WEBrick::HTTPServer#start: pid=1 port=4000
jekyll-strapi-jekyll-serve-1  |   Server running... press ctrl-c to stop.
bluszcz commented 2 years ago

These logs are irrelevant. I do not plan to support/fix jekyll serve - since there are more important priority tasks for now.

But if there is an issue with generation of the page - you need provide logs from the Jekyll and Strapi localhost instance.