parent
3cb7c290d2
commit
a2768d3b7f
3 changed files with 41 additions and 28 deletions
|
@ -17,35 +17,38 @@
|
||||||
<link rel="stylesheet" href="{{ static('style.css') }}">
|
<link rel="stylesheet" href="{{ static('style.css') }}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<article id="post">
|
<div id="page-content">
|
||||||
<header>
|
<article id="post">
|
||||||
<p id="title">
|
<header>
|
||||||
<a href="">{{ article.title }}</a>
|
<p id="title">
|
||||||
</p>
|
<a href="">{{ article.title }}</a>
|
||||||
<p id="description">
|
</p>
|
||||||
{{ article.summary }}
|
<p id="description">
|
||||||
</p>
|
{{ article.summary }}
|
||||||
<div id="details">
|
</p>
|
||||||
{% if site.custom.defaultAuthor != article.createdBy %}
|
<div id="details">
|
||||||
|
{% if site.custom.defaultAuthor != article.createdBy %}
|
||||||
<span>{{ article.createdBy }}</span>,
|
<span>{{ article.createdBy }}</span>,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span title='{{ article.createdAt | date("dd.MM.yyyy") }}'>{{ article.createdAt | date("dd.MM.yyyy") }}</span>
|
<span title='{{ article.createdAt | date("dd.MM.yyyy") }}'>{{ article.createdAt | date("dd.MM.yyyy") }}</span>
|
||||||
<span class="separator">|</span>
|
<span class="separator">|</span>
|
||||||
<span>5 min read</span>
|
<span>5 min read</span>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{% if article.custom.containsKey("photo") %}
|
{% if article.custom.containsKey("photo") %}
|
||||||
<div id="image">
|
<div id="image">
|
||||||
<img id="front-image" src="{{ asset(article.custom.photo) }}">
|
<img id="front-image" src="{{ asset(article.custom.photo) }}">
|
||||||
<img id="blurred-image" src="{{ asset(article.custom.photo) }}">
|
<img id="blurred-image" src="{{ asset(article.custom.photo) }}">
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div id="content">
|
||||||
|
{{ article.htmlContent | raw }}
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="content">
|
|
||||||
{{ article.htmlContent | raw }}
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<p>Last modified {{ article.modifiedAt | date("dd.MM.yyyy HH:mm") }} UTC by {{ article.modifiedBy }}</p>
|
<p>Last modified {{ article.modifiedAt | date("dd.MM.yyyy HH:mm") }} UTC by {{ article.modifiedBy }}</p>
|
||||||
|
|
|
@ -8,11 +8,12 @@
|
||||||
<link rel="stylesheet" href="{{ static('style.css') }}">
|
<link rel="stylesheet" href="{{ static('style.css') }}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div style="margin-top: 30vh;"></div>
|
<div id="page-content">
|
||||||
|
<div style="margin-top: 30vh;"></div>
|
||||||
|
|
||||||
<img id="current-blurred" src="{{ asset(articles[0].custom.photo) }}">
|
<img id="current-blurred" src="{{ asset(articles[0].custom.photo) }}">
|
||||||
|
|
||||||
{% for article in articles %}
|
{% for article in articles %}
|
||||||
<a href="post/{{ article.slug }}.html" class="post-short">
|
<a href="post/{{ article.slug }}.html" class="post-short">
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
|
@ -21,11 +22,12 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{% if article.custom.containsKey("photo") %}
|
{% if article.custom.containsKey("photo") %}
|
||||||
<img class="front-image" src="{{ asset(article.custom.photo) }}">
|
<img class="front-image" src="{{ asset(article.custom.photo) }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</article>
|
</article>
|
||||||
</a></a>
|
</a></a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<p>Content on m724.eu is licensed under <a href="https://creativecommons.org/licenses/by/4.0" target="_blank" rel="license noopener noreferrer">CC BY 4.0</a></p>
|
<p>Content on m724.eu is licensed under <a href="https://creativecommons.org/licenses/by/4.0" target="_blank" rel="license noopener noreferrer">CC BY 4.0</a></p>
|
||||||
|
|
|
@ -6,9 +6,17 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column; /* Arrange children vertically */
|
||||||
|
min-height: 100vh; /* Ensure body is at least the viewport height */
|
||||||
|
margin: 0; /* Reset default body margin */
|
||||||
|
}
|
||||||
|
|
||||||
|
#page-content {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
min-width: min(calc(100vw - 40px), 1000px);
|
min-width: min(calc(100vw - 40px), 1000px);
|
||||||
width: calc(50vw - 20px);
|
width: calc(50vw - 20px);
|
||||||
|
flex-grow: 1; /* Allow content to take up available space */
|
||||||
|
|
||||||
@media screen and (max-width: 1200px) {
|
@media screen and (max-width: 1200px) {
|
||||||
width: calc(100vw - 40px);
|
width: calc(100vw - 40px);
|
||||||
|
|
Loading…
Add table
Reference in a new issue