1
0
mirror of https://codeberg.org/teddit/teddit synced 2024-12-23 00:49:03 +01:00

display domain name

This commit is contained in:
teddit 2020-12-04 22:33:40 +01:00
parent d07a400884
commit 48dbc6380b
3 changed files with 12 additions and 0 deletions

8
dist/css/styles.css vendored
View File

@ -774,6 +774,11 @@ input[type="submit"]:hover,
color: var(--linkcolor); color: var(--linkcolor);
float: left; float: left;
} }
#post .title .domain {
color: gray;
font-size: 12px;
margin-left: 10px;
}
#post .submitted { #post .submitted {
font-size: small; font-size: small;
color: #686868; color: #686868;
@ -1360,6 +1365,9 @@ code {
#search form { #search form {
width: 240px; width: 240px;
} }
.comment {
padding-left: 2.5%;
}
.comment details summary::-webkit-details-marker, .comment details summary::-webkit-details-marker,
.comment details summary::marker { .comment details summary::marker {
font-size: 1.25rem; font-size: 1.25rem;

View File

@ -25,6 +25,7 @@ module.exports = function(fetch) {
url: post.url, url: post.url,
ups: post.ups, ups: post.ups,
id: post.id, id: post.id,
domain: post.domain,
comments: null, comments: null,
has_media: false, has_media: false,
media: null, media: null,

View File

@ -23,6 +23,7 @@ html
.title .title
a(href="" + localize(post.url) + "") a(href="" + localize(post.url) + "")
h2 #{cleanTitle(post.title)} h2 #{cleanTitle(post.title)}
span(class="domain") (#{post.domain})
p.submitted p.submitted
span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by
a(href="/u/" + post.author + "") a(href="/u/" + post.author + "")
@ -32,6 +33,7 @@ html
.title .title
a(href="" + localize(post.crosspost.permalink) + "") a(href="" + localize(post.crosspost.permalink) + "")
h2 #{cleanTitle(post.crosspost.title)} h2 #{cleanTitle(post.crosspost.title)}
span(class="domain") (#{post.domain})
.num_comments .num_comments
| #{post.crosspost.num_comments} comments | #{post.crosspost.num_comments} comments
.score .score
@ -86,6 +88,7 @@ html
.title .title
a(href="" + post.media.embed_src + "", target="_blank") a(href="" + post.media.embed_src + "", target="_blank")
p #{cleanTitle(post.media.title)} p #{cleanTitle(post.media.title)}
span(class="domain") (#{post.domain})
.video-holder .video-holder
a(href="" + post.media.embed_src + "", target="_blank") a(href="" + post.media.embed_src + "", target="_blank")
img(src="" + post.media.thumbnail + "") img(src="" + post.media.thumbnail + "")