Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
cd608a5d
Commit
cd608a5d
authored
2 years ago
by
OndraPetrzilka
Browse files
Options
Downloads
Patches
Plain Diff
if there is no image, do not display it
parent
3729e7f9
No related branches found
No related tags found
2 merge requests
!632
Release
,
!630
if there is no image, do not display it
Pipeline
#9848
passed
2 years ago
Stage: build
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
district/templates/district/district_article_page.html
+68
-67
68 additions, 67 deletions
district/templates/district/district_article_page.html
with
68 additions
and
67 deletions
district/templates/district/district_article_page.html
+
68
−
67
View file @
cd608a5d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
{% if page.author_page %}
{% if page.author_page %}
<a
href=
"{{ page.author_page.url }}"
itemprop=
"name"
>
{{ page.author }}
</a>
<a
href=
"{{ page.author_page.url }}"
itemprop=
"name"
>
{{ page.author }}
</a>
{% else %}
{% else %}
<span
itemprop=
"name"
>
{{ page.author }}
</span>
<span
itemprop=
"name"
>
{{ page.author
|default_if_none:''
}}
</span>
{% endif %}
{% endif %}
</span>
</span>
</div>
</div>
...
@@ -31,11 +31,12 @@
...
@@ -31,11 +31,12 @@
{% endfor %}
{% endfor %}
</div>
</div>
</div>
</div>
{% if page.image %}
<figure
class=
"figure"
>
<figure
class=
"figure"
>
{% image page.image width-2000 as img %}
{% image page.image width-2000 as img %}
<img
src=
"{{ img.url }}"
alt=
"{{ page.title }}"
/>
<img
src=
"{{ img.url }}"
alt=
"{{ page.title }}"
/>
</figure>
</figure>
{% endif %}
<div
class=
"lg:flex mt-8 lg:space-x-16"
>
<div
class=
"lg:flex mt-8 lg:space-x-16"
>
<div
class=
"lg:w-2/3"
>
<div
class=
"lg:w-2/3"
>
<div
itemprop=
"description"
class=
"w-full space-y-8"
>
<div
itemprop=
"description"
class=
"w-full space-y-8"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment