Browse Source

updating single page for images with alts

master
jk 4 years ago
parent
commit
86201336a6
  1. 176
      content/photo/5ee5f1d0/bridgy.json
  2. 1
      cron_job_is_running
  3. 1
      test
  4. 2
      themes/nipponalba/layouts/_default/single.html

176
content/photo/5ee5f1d0/bridgy.json

@ -1,176 +0,0 @@
{
"account":{
"acct":"jk",
"avatar":"https://social.nipponalba.scot/media/201caaea1889f39529535e829117ad39acdd7db241be2c888363e72bda171c67.jpg?name=profile.jpg",
"avatar_static":"https://social.nipponalba.scot/media/201caaea1889f39529535e829117ad39acdd7db241be2c888363e72bda171c67.jpg?name=profile.jpg",
"bot":false,
"created_at":"2018-12-22T02:47:00.000Z",
"display_name":"J K \ud83c\uddef\ud83c\uddf5\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f",
"emojis":[
],
"fields":[
{
"name":"homepage",
"value":"<a href=\"https://jk.nipponalba.scot\" rel=\"me\">jk.nipponalba.scot</a>"
},
{
"name":"pixelfed",
"value":"<a href=\"https://px.nipponalba.scot/jk\" rel=\"me\">jk@px.nipponalba.scot</a>"
},
{
"name":"pronouns",
"value":"he/him"
},
{
"name":"politics-y (fairly dormant atm) me",
"value":"<a href=\"https://social.nipponalba.scot/users/albannach\" rel=\"ugc\">@albannach</a>"
}
],
"follow_requests_count":0,
"followers_count":301,
"following_count":363,
"header":"https://social.nipponalba.scot/media/0838527e6395e51213310a61e4fe5a297efe3b1bd0f96ec4ca9f668dbef65d3f.jpg?name=IMAG0613-edited.jpg",
"header_static":"https://social.nipponalba.scot/media/0838527e6395e51213310a61e4fe5a297efe3b1bd0f96ec4ca9f668dbef65d3f.jpg?name=IMAG0613-edited.jpg",
"id":"1",
"locked":false,
"note":"Quintessentially Celtic, vehemently Viking, passionately European, unashamedly, proudly Scottish, craft beer and single malt whisky lover, enthusiastic cook, vegan, perpetually exhausted dad.<br/><br/><a href=\"https://jk.nipponalba.scot\">https://jk.nipponalba.scot</a><br/><br/><a class=\"hashtag\" data-tag=\"nobot\" href=\"https://social.nipponalba.scot/tag/nobot\">#nobot</a>",
"pleroma":{
"allow_following_move":true,
"background_image":"https://social.nipponalba.scot/media/570bb010636742daca3b3255b0043f3a3b7be8b3921b10135de239a5ff4cdf8c.png?name=fatherline-haplogroup-frequencies.png",
"confirmation_pending":false,
"deactivated":false,
"hide_favorites":true,
"hide_followers":true,
"hide_followers_count":false,
"hide_follows":true,
"hide_follows_count":false,
"is_admin":true,
"is_moderator":true,
"notification_settings":{
"followers":true,
"follows":true,
"non_followers":true,
"non_follows":true,
"privacy_option":false
},
"relationship":{
"blocked_by":false,
"blocking":false,
"domain_blocking":false,
"endorsed":false,
"followed_by":false,
"following":false,
"id":"1",
"muting":false,
"muting_notifications":false,
"requested":false,
"showing_reblogs":true,
"subscribing":false
},
"skip_thread_containment":false,
"tags":[
],
"unread_conversation_count":12693
},
"source":{
"fields":[
{
"name":"homepage",
"value":"<a href=\"https://jk.nipponalba.scot\" rel=me>jk.nipponalba.scot</a>"
},
{
"name":"pixelfed",
"value":"<a href=\"https://px.nipponalba.scot/jk\" rel=me>jk@px.nipponalba.scot</a>"
},
{
"name":"pronouns",
"value":"he/him"
},
{
"name":"politics-y (fairly dormant atm) me",
"value":"@albannach"
}
],
"note":"Quintessentially Celtic, vehemently Viking, passionately European, unashamedly, proudly Scottish, craft beer and single malt whisky lover, enthusiastic cook, vegan, perpetually exhausted dad.\n\nhttps://jk.nipponalba.scot\n\n#nobot",
"pleroma":{
"actor_type":"Person",
"discoverable":true,
"no_rich_text":false,
"show_role":true
},
"privacy":"public",
"sensitive":false
},
"statuses_count":1382,
"url":"https://social.nipponalba.scot/users/jk",
"username":"jk"
},
"application":{
"name":"Web",
"website":null
},
"bookmarked":false,
"card":null,
"content":"My daughter\u2019s morning in 3 acts..<br/><br/><br/><br/> (<a href=\"https://jk.nipponalba.scot/media/file-20200614104551-9558.jpg\">https://jk.nipponalba.scot/media/file-20200614104551-9558.jpg</a>)",
"created_at":"2020-06-14T09:45:59.000Z",
"emojis":[
],
"favourited":false,
"favourites_count":0,
"id":"9w4OLKtfsmjvzqgeDg",
"in_reply_to_account_id":null,
"in_reply_to_id":null,
"language":null,
"media_attachments":[
{
"description":"file.jpg",
"id":"-643834558",
"pleroma":{
"mime_type":"image/jpeg"
},
"preview_url":"https://social.nipponalba.scot/media/93f8bc241e6962cfb3b476037bd6facdda0e2a462a600942238cc14278c24550.jpg?name=file.jpg",
"remote_url":"https://social.nipponalba.scot/media/93f8bc241e6962cfb3b476037bd6facdda0e2a462a600942238cc14278c24550.jpg?name=file.jpg",
"text_url":"https://social.nipponalba.scot/media/93f8bc241e6962cfb3b476037bd6facdda0e2a462a600942238cc14278c24550.jpg?name=file.jpg",
"type":"image",
"url":"https://social.nipponalba.scot/media/93f8bc241e6962cfb3b476037bd6facdda0e2a462a600942238cc14278c24550.jpg?name=file.jpg"
}
],
"mentions":[
],
"muted":false,
"pinned":false,
"pleroma":{
"content":{
"text/plain":"My daughter\u2019s morning in 3 acts.. (https://jk.nipponalba.scot/media/file-20200614104551-9558.jpg)"
},
"conversation_id":11238153,
"direct_conversation_id":null,
"emoji_reactions":[
],
"expires_at":null,
"in_reply_to_account_acct":null,
"local":true,
"spoiler_text":{
"text/plain":""
},
"thread_muted":false
},
"poll":null,
"reblog":null,
"reblogged":false,
"reblogs_count":0,
"replies_count":0,
"sensitive":false,
"spoiler_text":"",
"tags":[
],
"uri":"https://social.nipponalba.scot/objects/293eb2ce-314d-4371-90c9-e1e834eb87a1",
"url":"https://social.nipponalba.scot/notice/9w4OLKtfsmjvzqgeDg",
"visibility":"public"
}

1
cron_job_is_running

@ -1 +0,0 @@
pull job run

1
test

@ -1 +0,0 @@
testing

2
themes/nipponalba/layouts/_default/single.html

@ -15,7 +15,7 @@
{{ if eq .Type "photo"}}
<section class="photogrid">
{{ range .Page.Params.Photo }}
{{ if in . "value" }}
{{ if isset . "value" }}
<a href="{{ .value }}"><img class="u-photo" src="{{ .value }}" alt="{{ .alt }}"/></a>
{{ else }}
<a href="{{ . }}"><img class="u-photo" src="{{ . }}" alt="Alt not yet added, will fix!"/></a>