diff --git a/content/response/604938a3/index.md b/content/response/604938a3/index.md index ffff8371..edcb5af9 100644 --- a/content/response/604938a3/index.md +++ b/content/response/604938a3/index.md @@ -10,6 +10,8 @@ xAuthorUrl: 'https://mstdn.social/@JonathanMBR' xPhoto: 'https://mstdn.social/system/accounts/avatars/000/179/051/original/f8e979470ecfd9e4.jpg' xContent: '

Interesting fact about lions;

Did you know adult lions pretend to be hurt by the bites of their little ones to encourage their strength?

' xPublished: '2021-03-10T18:27:15+00:00' +xContentPhoto: + - 'https://mstdn.social/system/media_attachments/files/105/866/908/388/598/413/original/6d5edff5e6867f8e.jpg' + - 'https://mstdn.social/system/media_attachments/files/105/866/908/634/890/968/original/befd0e7459dca22b.jpg' xPostType: photo --- - diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 11fdb5f3..c40e63a5 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -68,7 +68,8 @@ {{ if eq .Params.posttype "like-of" }} liked {{ .Params.xAuthor }}'s {{ .Params.xPostType }}{{ end }} {{ if eq .Params.posttype "in-reply-to" }} replied to {{ .Params.xAuthor }}'s {{ .Params.xPostType }}{{ end }} {{ if eq .Params.posttype "repost-of" }} shared {{ .Params.xAuthor }}'s {{ .Params.xPostType }}{{ end }}

- {{ if .Params.xContent }}
{{ .Params.xAuthor }}'s avatar{{ dateFormat "Mon, 02 Jan 2006 15:04:05 GMT" .Params.xPublished }}
{{ plainify .Params.xContent }}
{{end}} + {{ if .Params.xContent }}
{{ .Params.xAuthor }}'s avatar{{ dateFormat "Mon, 02 Jan 2006 15:04:05 GMT" .Params.xPublished }}{{ plainify .Params.xContent }} + {{ if .Params.xContentPhoto }}

{{ range .Params.xContentPhoto }}{{ end }}{{ end }}
{{end}} {{ if .Content }}
{{ .Content }}{{ end }} {{ if not (eq .Type "article") }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
diff --git a/themes/nipponalba/layouts/_default/single.html b/themes/nipponalba/layouts/_default/single.html index 812a8ce9..f718f8cf 100644 --- a/themes/nipponalba/layouts/_default/single.html +++ b/themes/nipponalba/layouts/_default/single.html @@ -93,15 +93,16 @@ -

{{ .Site.Params.Title }} +

{{ .Site.Params.Title }} {{ if eq .Params.posttype "like-of" }} liked {{ .Params.xAuthor }}'s {{ .Params.xPostType }}{{ end }} {{ if eq .Params.posttype "in-reply-to" }} replied to {{ .Params.xAuthor }}'s {{ .Params.xPostType }}{{ end }} {{ if eq .Params.posttype "repost-of" }} shared {{ .Params.xAuthor }}'s {{ .Params.xPostType }}{{ end }}

- {{ if .Params.xContent }}
{{ .Params.xAuthor }}'s avatar{{ dateFormat "Mon, 02 Jan 2006 15:04:05 GMT" .Params.xPublished }}
{{ plainify .Params.xContent }}
{{end}} + {{ if .Params.xContent }}
{{ .Params.xAuthor }}'s avatar{{ dateFormat "Mon, 02 Jan 2006 15:04:05 GMT" .Params.xPublished }}{{ plainify .Params.xContent }} + {{ if .Params.xContentPhoto }}

{{ range .Params.xContentPhoto }}{{ end }}{{ end }}
{{end}} {{ if .Content }}

{{ .Content }}
{{ end }} {{ if not (eq .Type "article") }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
-
{{ end }}
+
{{ end }} {{end}} diff --git a/themes/nipponalba/static/css/style.css b/themes/nipponalba/static/css/style.css index ed5381b6..ed021e5c 100644 --- a/themes/nipponalba/static/css/style.css +++ b/themes/nipponalba/static/css/style.css @@ -477,6 +477,12 @@ margin-bottom: 300px; width:100%; max-width: 600px; } +.h-entry img.xContentPhoto { + max-width: 310px; + display:inline; + margin-right: 10px; + border-radius:5px; +} .longpost img{ max-width:700px; @@ -484,28 +490,34 @@ margin-bottom: 300px; } #response .h-cite .p-content{ background-color: var(--border-colour); - display:block; + display:grid; min-height: 80px; border-radius: 15px; - padding: 10px 10px 20px 10px; + grid-template-columns: 80px calc(90% - 20px); + grid-template-rows: 40px auto; + max-height: calc(100% - 50px); } .remotePhoto{ - float:left; width: 70px; - padding: 10px 0; + display:inline; + padding: 15px 0px; + grid-column: 1; } .remotePhoto img{ display:block; } .response-text{ - min-height: calc(100% - 15px); + grid-column: 2; + vertical-align: top; + margin-bottom: 20px; } .response-date{ width: 100%; font-size: 13px; - display:block; text-align:right; - vertical-align:bottom; + grid-column: 2; + margin-right: 20px; + margin-top: 10px; } #interactions{