GithubHelp home page GithubHelp logo

notiz-dev / scully-plugins Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 6.0 1.13 MB

Scully plugins (fouc, lazy-images, rss, medium-zoom)

License: MIT License

JavaScript 30.03% TypeScript 62.04% HTML 6.85% SCSS 1.08%
angular jamstack scully scully-plugins

scully-plugins's People

Contributors

dependabot[bot] avatar garygrossgarten avatar marcjulian avatar pjlamb12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

scully-plugins's Issues

RSS: Refactor plugin type to routeDiscoveryDone

Improve RSS plugin by changing the plugin type from render to the new routeDiscoveryDone plugin type. This should speed up build time for this plugin. Right now RSS plugin is executed for each route.

Not all routes being loaded

For some reason, only some of the routes are being used for my site. There should be around 70, but only two are being used and have entries in the rss feed.

lazy-images does not work with srcset

Thank you for creating this plugin. Although unfortunately when I tried it out it didn't work for me. src were not replaced with data-src and all the images were loaded instantly. But it did produce a lot of layout shifting due to image size changing. All I did was just included the plugin in defaultPostrenderes and that's all. But even if the sizing issue is gone, I checked the source code and it's lacking handling of srcset which I have quite a lot on my site.
I could help addressing these issues, but I need some guidance.

RSS: Add Option to Reverse Items in the Feed

In order to use the feed to automate sending emails, I need the newest posts first, but this only allows for latest posts. I'm thinking an option in the config like:

newestPostsFirst: true | false

Plugin prints error message when trying to process image files

๐Ÿž Bug report

Description

The plugin does not automatically ignore image file routes and will instead error out and print an error message to the console during Scully build. The plugin handler is skipped so this does not result in build failure, but the generated error messages are noise in the console.

The ideal behaviour here would be to just skip processing image file routes.

๐Ÿ”ฌ Minimal Reproduction

Any Scully project using the @notiz/scully-plugin-lazy-images plugin in defaultPostRenderers of the Scully config with a fileHandler plugin registered e.g. registerPlugin('fileHandler', 'png', imageFilePlugin);.

๐Ÿ’ปYour Environment

Angular Version:



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / โ–ณ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 11.0.5
Node: 14.8.0
OS: darwin x64

Angular: 11.0.5
... animations, cli, common, compiler, compiler-cli, core
... elements, forms, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1100.5
@angular-devkit/build-angular   0.1100.5
@angular-devkit/core            11.0.5
@angular-devkit/schematics      11.0.5
@angular/cdk                    11.0.3
@angular/material               11.0.3
@schematics/angular             11.0.5
@schematics/update              0.1100.5
rxjs                            6.6.3
typescript                      4.0.5

Scully Version:


"@scullyio/init": "^1.0.1"
"@scullyio/ng-lib": "^1.0.0"
"@scullyio/scully": "^1.0.0"
"@notiz/scully-plugin-lazy-images": "^0.3.0"

๐Ÿ”ฅ Exception or Error


Error during content generation with plugin "lazyImages" for ./projects/website/blog-posts/images/banner.jpg. This hander is skipped.

Ignore Unpublished Posts in RSS Feed

Unpublished posts shouldn't be placed in the RSS feed. This allows for posts to be scheduled in the future, or for them to be removed from the RSS feed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.