mirror of
https://codeberg.org/teddit/teddit
synced 2024-12-23 00:49:03 +01:00
display domain name
This commit is contained in:
parent
d07a400884
commit
48dbc6380b
8
dist/css/styles.css
vendored
8
dist/css/styles.css
vendored
@ -774,6 +774,11 @@ input[type="submit"]:hover,
|
||||
color: var(--linkcolor);
|
||||
float: left;
|
||||
}
|
||||
#post .title .domain {
|
||||
color: gray;
|
||||
font-size: 12px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
#post .submitted {
|
||||
font-size: small;
|
||||
color: #686868;
|
||||
@ -1360,6 +1365,9 @@ code {
|
||||
#search form {
|
||||
width: 240px;
|
||||
}
|
||||
.comment {
|
||||
padding-left: 2.5%;
|
||||
}
|
||||
.comment details summary::-webkit-details-marker,
|
||||
.comment details summary::marker {
|
||||
font-size: 1.25rem;
|
||||
|
@ -25,6 +25,7 @@ module.exports = function(fetch) {
|
||||
url: post.url,
|
||||
ups: post.ups,
|
||||
id: post.id,
|
||||
domain: post.domain,
|
||||
comments: null,
|
||||
has_media: false,
|
||||
media: null,
|
||||
|
@ -23,6 +23,7 @@ html
|
||||
.title
|
||||
a(href="" + localize(post.url) + "")
|
||||
h2 #{cleanTitle(post.title)}
|
||||
span(class="domain") (#{post.domain})
|
||||
p.submitted
|
||||
span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by
|
||||
a(href="/u/" + post.author + "")
|
||||
@ -32,6 +33,7 @@ html
|
||||
.title
|
||||
a(href="" + localize(post.crosspost.permalink) + "")
|
||||
h2 #{cleanTitle(post.crosspost.title)}
|
||||
span(class="domain") (#{post.domain})
|
||||
.num_comments
|
||||
| #{post.crosspost.num_comments} comments
|
||||
.score
|
||||
@ -86,6 +88,7 @@ html
|
||||
.title
|
||||
a(href="" + post.media.embed_src + "", target="_blank")
|
||||
p #{cleanTitle(post.media.title)}
|
||||
span(class="domain") (#{post.domain})
|
||||
.video-holder
|
||||
a(href="" + post.media.embed_src + "", target="_blank")
|
||||
img(src="" + post.media.thumbnail + "")
|
||||
|
Loading…
Reference in New Issue
Block a user