Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Jul 18, 2024
1 parent 18955e1 commit be8450c
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 5 deletions.
31 changes: 30 additions & 1 deletion assets/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -537,11 +537,28 @@ a:visited {
margin-bottom: 1.2em 0;
}

a::before,
a::after {
content: unset;
}

picture {
display: flex;
justify-content: center;

img {
a {
width: 100%;

@media (min-width : 75em) {
width: 60%;
}

img {
width: 100%;
}
}

&> img {
width: 100%;

@media (min-width : 75em) {
Expand All @@ -554,12 +571,23 @@ a:visited {
.post-body {
ul {
list-style: none;
padding-inline-start: 0;
/*padding-inline-start: 0;*/

li {
padding-left: 1em;
}

li::before {
content: '';
color: $marker-color;
font-size: 1.4em;
display: inline-block;
vertical-align: sub;
padding-right: .8em
}

/* Doesn't work in Safari
li::marker {
content: '☞';
color: $marker-color;
Expand All @@ -568,6 +596,7 @@ a:visited {
vertical-align: sub;
padding-right: .4em
}
*/
}

hr {
Expand Down
7 changes: 7 additions & 0 deletions assets/scss/gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@media (max-width: 35em) {
flex-direction: column;
gap: 2vwh;
padding: .6em;
}

a {
Expand All @@ -26,4 +27,10 @@
border-radius: .4rem;
}

.gallery-image {
.gallery-preview {
max-width: 100%;
}
}

}
2 changes: 1 addition & 1 deletion content/post/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ displayinlist: false
layout: blog
---

On this page I'll post updates on my projects about the technologies used in irregular intervals.
On this page I'll post updates on my projects, about the technologies used interesting additions to my collections (mainly art).
An overview of the last blog posts is available at [Projektemacher.org](https://projektemacher.org/posts/).
2 changes: 1 addition & 1 deletion content/post/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ displayinlist: false
layout: blog
---

Hier gibt es in unregelmäßigen Abständen Beiträge über meine Projekte und in Zukunft auch über die eingesetzten Technologien.
Hier gibt es in unregelmäßigen Abständen Beiträge über meine Projekte, über die eingesetzten Technologien und neue Fundstücke.
Eine Übersicht über die letzten Beiträge in den jeweiligen Blogs gibt es bei [Projektemacher.org](https://projektemacher.org/posts/).
1 change: 1 addition & 0 deletions content/post/pong/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Fun
- Retrocomputing
- DigitalImages
preview: pong-heatmap1.png
---

For some reason I came up with the idea of visualising [Pong](https://de.wikipedia.org/wiki/Pong)...
Expand Down
1 change: 1 addition & 0 deletions content/post/pong/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Fun
- Retrocomputing
- DigitalImages
preview: pong-heatmap1.png
---

Aus irgendeinem Grund bin ich auf die Idee gekommen [Pong](https://de.wikipedia.org/wiki/Pong) zu visualisieren...
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/li.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ <h2 class="post-title"><a class="readmore" href="{{ .RelPermalink}}" title="{{ i
<source media="(min-width:{{ . }}px)" srcset="{{ ($imgRes.Resize (printf "%sx" .)).RelPermalink }}">
{{- end -}}
{{- $imgRes := $.Page.Resources.Get $src -}}
<img src="{{ ($imgRes.Resize (printf "%sx" "1280")).RelPermalink }}" alt="{{ $.Title }}" />
<a title="{{ $.Title}}" href="{{ $.RelPermalink }}">
<img src="{{ ($imgRes.Resize (printf "%sx" "1280")).RelPermalink }}" alt="{{ $.Title }}" />
</a>
</picture>
</div>
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{{- $preview = $imgRes -}}
{{- end -}}

<img src="{{ $preview.RelPermalink }}" alt="{{ $alt }}" />
<img src="{{ $preview.RelPermalink }}" alt="{{ $alt }}" class="gallery-preview" />
</a>
{{- else -}}
{{ warnf "[shortcodes/gallery.html] Not found %s for %s" $image.src $.Page.File.Path }}
Expand Down

0 comments on commit be8450c

Please sign in to comment.