Skip to content

Commit

Permalink
rm license link as likely bad practice; unsolved
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekNonGeneric committed Feb 26, 2024
1 parent e51b043 commit f808561
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions asset_path_tag.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<<~aid-*- coding: utf-8 -*- ruby -*- asset_path_tag.rb *************************
<<~aid -*- coding: utf-8 -*- ruby -*- asset_path_tag.rb ************************
A Jekyll plugin to output a relative URL for assets based on the post or page
Expand Down Expand Up @@ -28,7 +28,8 @@
image_one.png
image_two.png
{% for image in site.data.images %}{% asset_path {{ image.file }} %}{% endfor %} on post 2015-03-21-post-title
{% for image in site.data.images %}{% asset_path {{ image.file }} %}{% endfor %}
on post 2015-03-21-post-title
Output:
/assets/posts/post-title/image_one.png
Expand All @@ -40,20 +41,19 @@
post-title
another-post-title
{% for post in site.posts %}{% asset_path cover.jpg {{post.id}} %}{% endfor %} on index.html
{% for post in site.posts %}{% asset_path cover.jpg {{post.id}} %}{% endfor %} ]
on index.html
Output:
/assets/posts/post-title/cover.jpg
/assets/posts/another-post-title/cover.jpg
*****************************************************************************aid
##
#
# @license MIT OR Apache-2.0 OR BlueOak-1.0.0
# @copyright The OpenINF Authors and Friends
# @link https://open.inf.is/LICENSE
# @author Sam Rayner
# @author Otto Urpelainen
# @author The OpenINF Authors and Friends
Expand Down

0 comments on commit f808561

Please sign in to comment.