added tags to frontend!
parent
e52b3783e8
commit
a7a956cde5
|
@ -8,6 +8,12 @@ class entry {
|
||||||
this.id = id
|
this.id = id
|
||||||
}
|
}
|
||||||
createelement() {
|
createelement() {
|
||||||
|
// create taglist
|
||||||
|
let tags = ""
|
||||||
|
for ( let i = 0 ; i < this.tags.length ; i++ ) {
|
||||||
|
tags += `<span class="tag"><a href="/search?tag=${this.tags[i]}">${this.tags[i]}</a></span>`
|
||||||
|
}
|
||||||
|
|
||||||
let element = document.createElement("DIV");
|
let element = document.createElement("DIV");
|
||||||
element.innerHTML +=
|
element.innerHTML +=
|
||||||
`<div class="entry">
|
`<div class="entry">
|
||||||
|
@ -15,6 +21,9 @@ class entry {
|
||||||
<div class="author">BY <a class="author" href="/author?author=${this.author}">${this.author}</a></div>
|
<div class="author">BY <a class="author" href="/author?author=${this.author}">${this.author}</a></div>
|
||||||
<hr class="seperator" \>
|
<hr class="seperator" \>
|
||||||
<div class="preview">${this.desc}</div>
|
<div class="preview">${this.desc}</div>
|
||||||
|
<hr class="seperator" \>
|
||||||
|
<div class="tagtitle">Tags:</div>
|
||||||
|
<div class="tags">${tags}</div>
|
||||||
</div>`
|
</div>`
|
||||||
element.classList = ["entrybox"]
|
element.classList = ["entrybox"]
|
||||||
return element
|
return element
|
||||||
|
|
|
@ -69,6 +69,34 @@
|
||||||
border-top-width: 1px;
|
border-top-width: 1px;
|
||||||
border-top-style: solid;
|
border-top-style: solid;
|
||||||
}
|
}
|
||||||
|
.entrybox > .entry > .tags {
|
||||||
|
height: 2em;
|
||||||
|
}
|
||||||
|
.entrybox > .entry > .tagtitle {
|
||||||
|
font-size: 0.7em;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.entrybox > .entry > .tags > .tag {
|
||||||
|
position: relative;
|
||||||
|
top: 0.4em;
|
||||||
|
left: -0.3em;
|
||||||
|
margin-left: 0.4em;
|
||||||
|
|
||||||
|
padding: 0.15em;
|
||||||
|
padding-top: 0.1em;
|
||||||
|
|
||||||
|
border-color: #6d5dbf;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
|
||||||
|
border-top-color: #6f5dbf;
|
||||||
|
border-top-width: 0.3em;
|
||||||
|
border-top-style: solid;
|
||||||
|
}
|
||||||
|
.entrybox > .entry > .tags > .tag:hover {
|
||||||
|
background-color: #6f5dbf33
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* comments */
|
/* comments */
|
||||||
.comments > .comment {
|
.comments > .comment {
|
||||||
|
@ -100,9 +128,6 @@
|
||||||
/* other stuff */
|
/* other stuff */
|
||||||
|
|
||||||
/* footer */
|
/* footer */
|
||||||
.footer {
|
|
||||||
color: #414141;
|
|
||||||
}
|
|
||||||
.footer > a.text {
|
.footer > a.text {
|
||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
}
|
}
|
||||||
|
|
21
logs/log.log
21
logs/log.log
|
@ -721,3 +721,24 @@ err, crashed!"
|
||||||
1629150195225 | Reading posts sorted by "hot" with a length of 10
|
1629150195225 | Reading posts sorted by "hot" with a length of 10
|
||||||
1629150244240 | Reading postindex
|
1629150244240 | Reading postindex
|
||||||
1629150244824 | Reading posts sorted by "hot" with a length of 10
|
1629150244824 | Reading posts sorted by "hot" with a length of 10
|
||||||
|
--- SEPERATOR ---
|
||||||
|
--- SEPERATOR ---
|
||||||
|
1629161822577 | Dumping config:
|
||||||
|
1629161822584 | {"debug":false,"logging":1337,"logfile":"logs/log.log","ipget_endpoint_set":"//derzombiiie.com/getip.php?settoken=${TOKEN}","ipget_endpoint_get":"//derzombiiie.com/getip.php?token=${TOKEN}","cl":true,"site_name":"blog.derzombiiie.com","search_enable":false,"search_only_tags":true,"commenting_enabled":true,"post_ranking_auto":43200,"index_post_sort":"new","comment_sync_on_write":false,"comment_auto_sync":360}
|
||||||
|
1629212141086 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213138214 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213160051 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213174056 | Reading posts sorted by "new" with a length of 10
|
||||||
|
--- SEPERATOR ---
|
||||||
|
1629213206780 | Dumping config:
|
||||||
|
1629213206786 | {"debug":false,"logging":1337,"logfile":"logs/log.log","ipget_endpoint_set":"//derzombiiie.com/getip.php?settoken=${TOKEN}","ipget_endpoint_get":"//derzombiiie.com/getip.php?token=${TOKEN}","cl":true,"site_name":"blog.derzombiiie.com","search_enable":false,"search_only_tags":true,"commenting_enabled":true,"post_ranking_auto":43200,"index_post_sort":"new","comment_sync_on_write":false,"comment_auto_sync":360}
|
||||||
|
1629213248066 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213294278 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213298344 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213311129 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213342304 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213812178 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213820059 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629213972588 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629214553064 | Reading posts sorted by "new" with a length of 10
|
||||||
|
1629214575204 | Reading posts sorted by "new" with a length of 10
|
||||||
|
|
Loading…
Reference in New Issue