Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaotikum
website
Commits
99629355
Commit
99629355
authored
1 year ago
by
Lukas Ruge
Browse files
Options
Downloads
Patches
Plain Diff
more video stuff, preview images in overview
parent
53e506d3
No related branches found
No related tags found
No related merge requests found
Pipeline
#8926
passed
1 year ago
Stage: test
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_includes/media-in-list.html
+2
-7
2 additions, 7 deletions
_includes/media-in-list.html
_includes/site-header.html
+6
-4
6 additions, 4 deletions
_includes/site-header.html
with
8 additions
and
11 deletions
_includes/media-in-list.html
+
2
−
7
View file @
99629355
<li
class=
"item item--post"
>
<li
class=
"item item--post"
>
<article
class=
"article article--post"
>
<article
class=
"article article--post"
>
{% if video.image -%}
{%- assign realslug = video.url | split:'/' | last -%}
{% if video.image contains '://' -%}
<img
src=
"https://video.chaotikum.net/thumbnails/{{realslug}}_play.png"
alt=
""
width=
50%
height=
50%
style=
"float: right; margin: 0 0 0 15px;"
/>
<img
src=
"{{video.image}}"
alt=
""
width=
50%
height=
50%
style=
"float: left; margin: 0 15px 0 0;"
/>
{% else -%}
<img
src=
"{{site.baseurl}}/images/thumbnails/{{video.image}}"
alt=
""
width=
50%
height=
50%
style=
"float: right; margin: 0 0 0 15px;"
/>
{% endif -%}
{% endif -%}
<h2><a
href=
"{{ site.baseurl }}{{ video.url }}"
>
{{ title | markdownify | remove: '
<p>
' | remove: '
</p>
' | strip_newlines }}
</a></h2>
<h2><a
href=
"{{ site.baseurl }}{{ video.url }}"
>
{{ title | markdownify | remove: '
<p>
' | remove: '
</p>
' | strip_newlines }}
</a></h2>
<div
class=
"teaser"
>
<div
class=
"teaser"
>
{{ video.excerpt | strip_html | markdownify | truncatewords: 60 }}
{{ video.excerpt | strip_html | markdownify | truncatewords: 60 }}
...
...
This diff is collapsed.
Click to expand it.
_includes/site-header.html
+
6
−
4
View file @
99629355
...
@@ -20,14 +20,16 @@
...
@@ -20,14 +20,16 @@
<!-- no feature -->
<!-- no feature -->
{% else %}
{% else %}
{% include site-feature.html %}
{% include site-feature.html %}
<div
class=
"statusmobile"
style=
"width: 80%; margin:0 auto; margin-top: -45px; background-color: #FAFAFA;"
>
{% include space-status-mobile.html %}
</div>
{% endif %}
{% endif %}
{% if page.layout == "video" -%}
{% if page.layout == "video" -%}
{% capture feature_image %}https://video.chaotikum.net/thumbnails/{{page.name}}.png{% endcapture -%}
{%- assign realslug = page.url | split:'/' | last -%}
{% capture feature_image %}https://video.chaotikum.net/thumbnails/{{realslug}}_play.png{% endcapture -%}
{% endif -%}
{% endif -%}
<div
class=
"statusmobile"
style=
"width: 80%; margin:0 auto; margin-top: -45px; background-color: #FAFAFA;"
>
{% include space-status-mobile.html %}
</div>
</header>
</header>
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