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
53e506d3
Commit
53e506d3
authored
1 year ago
by
Lukas Ruge
Browse files
Options
Downloads
Patches
Plain Diff
impove video stuff
parent
0b23c2cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#8922
passed
1 year ago
Stage: test
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
_includes/site-header.html
+4
-0
4 additions, 0 deletions
_includes/site-header.html
_includes/twittercard.html
+5
-0
5 additions, 0 deletions
_includes/twittercard.html
_layouts/video.html
+2
-10
2 additions, 10 deletions
_layouts/video.html
with
11 additions
and
10 deletions
_includes/site-header.html
+
4
−
0
View file @
53e506d3
...
...
@@ -22,6 +22,10 @@
{% include site-feature.html %}
{% endif %}
{% if page.layout == "video" -%}
{% capture feature_image %}https://video.chaotikum.net/thumbnails/{{page.name}}.png{% endcapture -%}
{% endif -%}
<div
class=
"statusmobile"
style=
"width: 80%; margin:0 auto; margin-top: -45px; background-color: #FAFAFA;"
>
{% include space-status-mobile.html %}
</div>
...
...
This diff is collapsed.
Click to expand it.
_includes/twittercard.html
+
5
−
0
View file @
53e506d3
...
...
@@ -12,6 +12,11 @@
{% assign feature_image = page.image %}
{% endif %}
{% if page.layout == "video" -%}
{%- assign realslug = page.url | split:'/' | last -%}
{% capture feature_image %}https://video.chaotikum.net/thumbnails/{{realslug}}.jpg{% endcapture -%}
{% endif -%}
{% if feature_image %}
{% if feature_image contains '://' %}
<meta
name=
"twitter:image"
content=
"{{feature_image}}"
>
...
...
This diff is collapsed.
Click to expand it.
_layouts/video.html
+
2
−
10
View file @
53e506d3
...
...
@@ -33,20 +33,12 @@ layout: default
<article
class=
"article article--page typeset"
>
{%- assign realslug = page.url | split:'/' | last -%}
<div
style=
"width: 100%;
display: flex;
background-color:#eeeeee;
justify-content: center;"
>
{% if page.image != nil %}
{% if page.image contains '://' %}
<img
src=
"{{ page.image }}"
alt=
""
style=
"margin: 0 auto;"
>
{% else %}
<img
src=
"{{ site.baseurl }}/images/thumbnails/video/{{ page.image }}"
alt=
""
style=
"margin: 0 auto;"
>
{% endif %}
{% else %}
<img
src=
"{{ site.baseurl }}/images/thumbnails/video/default.jpg"
alt=
""
style=
"margin: 0 auto;"
>
{% endif %}
<img
src=
"https://video.chaotikum.net/thumbnails/{{ realslug }}.jpg"
alt=
""
style=
"margin: 0 auto;"
>
</div>
<h4
style=
"text-align: center; background-color:#eeeeee; color:000000"
>
{{ title }}
</h4>
{% capture release_date %}{{page.release_date | date: '%s'}}{% endcapture -%}
...
...
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