Module: JekyllHighlightCards

Defined in:
lib/jekyll-highlight-cards.rb,
lib/jekyll-highlight-cards/version.rb,
lib/jekyll-highlight-cards/linkcard_tag.rb,
lib/jekyll-highlight-cards/polaroid_tag.rb,
lib/jekyll-highlight-cards/archive_helper.rb,
lib/jekyll-highlight-cards/dimension_parser.rb,
lib/jekyll-highlight-cards/template_renderer.rb,
lib/jekyll-highlight-cards/image_sizing_hooks.rb,
lib/jekyll-highlight-cards/expression_evaluator.rb

Overview

jekyll-highlight-cards: Styled card components for Jekyll

This gem provides:

  • LinkcardTag: {% linkcard %} Liquid tag for styled link cards
  • PolaroidTag: {% polaroid %} Liquid tag for polaroid-style image cards
  • ImageSizingHooks: Markdown image sizing syntax ![alt](img.jpg =300x200)
  • ArchiveHelper: Internet Archive integration with caching

Examples:

Basic linkcard usage

{% linkcard https://example.com My Title %}

Basic polaroid usage

{% polaroid /assets/image.jpg size=300x200 title="Photo" %}

Markdown image sizing

![Alt text](image.jpg =400x300)

See Also:

  • Full usage documentation

Defined Under Namespace

Modules: ArchiveHelper, DimensionParser, ExpressionEvaluator, ImageSizingHooks, TemplateRenderer Classes: LinkcardTag, PolaroidTag, TemplateNotFoundError, TemplateRenderError

Constant Summary collapse

SASS_PATH =
  1. Define the path to SCSS files relative to this Ruby file
File.join(File.dirname(__FILE__), "../_sass")
VERSION =
"2.1.0"