Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/willy-content-design'
Browse files Browse the repository at this point in the history
Signed-off-by: lennartrommeiss <[email protected]>
  • Loading branch information
lenderom committed Jan 29, 2025
2 parents 47767a4 + 400c5c6 commit a97d1d6
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
public/
.hugo_build.lock
resources/
hugo.exe
5 changes: 5 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ related:
- name: country
weight: 1
includeNewer: true

markup:
tableOfContents:
startLevel: 2
endLevel: 2
4 changes: 4 additions & 0 deletions themes/fiptheme/assets/sass/content.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.updateDate {
font-size: 1.3rem;
margin-bottom: 5px;
}
22 changes: 22 additions & 0 deletions themes/fiptheme/assets/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,25 @@
@import "stage.scss";
@import "teaser.scss";
@import "footer.scss";
@import "content.scss";

details {
position: relative;
overflow: hidden;
padding: 5px;
}

details[open] summary ~ * {
animation: slideDown 0.5s ease-in-out;
}

@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
15 changes: 13 additions & 2 deletions themes/fiptheme/layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
{{ define "main" }}
<div class="container">
<h1 data-pagefind-meta="title">{{ .Title }}</h1>

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<div class="updateDate">
<time datetime="{{ $dateMachine }}">Zuletzt aktualisiert: {{ $dateHuman }}</time>
</div>
<br>
<br>
{{ .Content }}

<div class="tableOfContents">
{{ .TableOfContents }}
</div>

<div class="content">
{{ .Content }}
</div>

{{ $related := .Site.RegularPages.RelatedIndices . "country" }}
{{ with $related }}
<h3>See Also</h3>
Expand Down

0 comments on commit a97d1d6

Please sign in to comment.