Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
javierarce committed Oct 1, 2023
1 parent f21187d commit c8a8dd8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -371,3 +371,7 @@ a.is-photo::after {
}
}

.Layout__blogroll ul li {
padding: 0;
margin: 0;
}
1 change: 1 addition & 0 deletions pages/blogroll.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ show_title: false
show_date: false
show_description: false
description: A list of blogs and newsletters that I enjoy reading
className: Blogroll
---

### Favorite blogs
Expand Down
9 changes: 5 additions & 4 deletions scripts/rss.reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ class RSS extends HTMLElement {
connectedCallback() {
this.styles = document.createElement('style')
this.styles.innerHTML = `
rss-reader { display: block; margin: 0 0 1em 0; }
rss-reader { display: block; margin: 0 0 0 0; }
::part(blog), ::part(entry) { text-decoration: none; color: #ffc107; text-decoration: underline; }
::part(post) { opacity: 0; visibility: hidden; transition: opacity 250ms ease-in-out; }
::part(entry) { text-decoration: underline; }
::part(date) { font-size: 0.8em; }
rss-reader.is-loaded::part(post) { opacity: 1; color: #ffff; visibility: visible; }
rss-reader.is-loaded::part(post) { opacity: 1; visibility: visible; }
rss-reader.is-loaded::part(entry) { opacity: 1; color: #ffff; visibility: visible; }
`

document.head.appendChild(this.styles)
Expand Down Expand Up @@ -42,7 +43,7 @@ class RSS extends HTMLElement {
try {
this.fetch(`//api.javier.computer/api/feed/${URL}`)
} catch (e) {
console.log('meeeh')
console.error(e)
}
}

Expand Down Expand Up @@ -70,7 +71,7 @@ class RSS extends HTMLElement {
entryDate.textContent = ago ? ` ${ago} ago` : ''
entryDate.part = 'date'

entry.appendChild(entryLink)
//entry.appendChild(entryLink)
entry.appendChild(entryDate)
this.shadow.appendChild(entry)
this.classList.add('is-loaded')
Expand Down

0 comments on commit c8a8dd8

Please sign in to comment.