Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HCI-Development
Jekyll Img Srcset
Commits
36b2064e
Commit
36b2064e
authored
Dec 03, 2019
by
Jan-Philipp Stauffert
Browse files
Write Readme
parent
0cf8d45e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Readme.md
View file @
36b2064e
# Jekyll Img Srcset
This plugin resizes images to offer lower resolution images for devices with restricted screen size such as mobile.
## Installation
Add this line to your Jekyll site's
`Gemfile`
:
```
ruby
gem
"jekyll-img-srcset"
,
:git
=>
"git@gitlab2.informatik.uni-wuerzburg.de:hci-development/jekyll-img-srcset.git"
```
And add these lines to your Jekyll site's
`_config.yml`
:
```
yaml
plugins
:
-
jekyll-img-srcset
```
Then execute:
$ bundle
Or install it yourself as:
$ gem install hci-theme
## Usage
There are two ways to use this plugin. It tries to convert all Markdown image tags and offers a liquid tag for use in HTML content:
```
markdown

{.class style="color: black;"}
```
```
{% imgsrcset src="general/map.jpg" dimension="wide" %}
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment