Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit35eb14a

Browse files
committed
Experimented with static_files to display images
1 parent144578d commit35eb14a

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

‎index.html‎

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ <h1 class="nav-header">{{presskit.title}}</h1>
2424
<li><ahref="#contact">Contact</a></li>
2525
</ul>
2626
</div>
27-
<divid="content"class="uk-width-medium-3-4"><imgsrc="images/header.png"class="header">
27+
<divid="content"class="uk-width-medium-3-4">
28+
{% for file in site.static_files %}
29+
{% if file.path == '/images/header.png' %}
30+
<imgsrc="images/header.png"class="header">
31+
{% endif %}
32+
{% endfor %}
2833
<divclass="uk-grid">
2934
<divclass="uk-width-medium-2-6">
3035
<h2id="factsheet">Factsheet</h2>
@@ -110,17 +115,19 @@ <h2 id="images">Images</h2>
110115
<divclass="uk-alert">download all screenshots &amp; photos as .zip</div>
111116
</a>
112117
<divclass="uk-grid images">
113-
<!-- Iterate over images
114-
<div class="uk-width-medium-1-2">
115-
<a href="images/janwillem-vlambeer-2.png">
116-
<img src="images/janwillem-vlambeer-2.png" alt="janwillem-vlambeer-2.png" />
117-
</a>
118-
</div> -->
119-
</div>
120-
<pclass="images-text">There are far more images available for {{presskit.title}}, but these are the ones we felt would be most useful to you. If you have specific requests, please do<ahref="#contact">contact us</a>!</p>
121118
{% for file in site.static_files %}
122-
Path: {{ file.path }}
119+
{% assign image = file.path | split: '/' %}
120+
debug : {{ image | join: ',' }}
121+
{% if image contains 'images' and image.size<= 3 %}
122+
<divclass="uk-width-medium-1-2">
123+
<ahref="{{file.path}}">
124+
<imgsrc="{{file.path}}"alt="{{image | last}}"/>
125+
</a>
126+
</div>
127+
{% endif %}
123128
{% endfor %}
129+
</div>
130+
<pclass="images-text">There are far more images available for {{presskit.title}}, but these are the ones we felt would be most useful to you. If you have specific requests, please do<ahref="#contact">contact us</a>!</p>
124131

125132
<hr>
126133

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp