Answer the question
In order to leave comments, you need to log in
How to name pictures in a real project? 01-02 or full name?
In the streams that I watched, they called 01/02 or by the name of the block. But in one of them it was also said that it was only for the stream and in general it should be called adequately. How is that adequate? By what is shown in the picture itself? Or, for example, an aluminum block and pictures of aluminum-01, etc.?
Answer the question
In order to leave comments, you need to log in
In layout it is more convenient to call ordinal names grouped in folders.
At the same time, it is better to place such images in a separate directory so that later the programmer clearly understands which images he doesn’t need, because they will be added through the admin panel, and they can be safely deleted.
for example
/images
/content
/gallery
/1.jpg
/2.jpg
/3.jpg
/slider
/1.jpg
/2.jpg
/3.jpg
<div class="slider">
{% for i in 1..3 %}
<div class="slide">
<img src="/images/content/slider/{{ i }}.jpg">
</div>
{% endfor %}
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question