Skip to content

Commit

Permalink
Cleanup UI, bump workflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
robalexdev committed May 5, 2024
1 parent e82ddd0 commit 7c35bd1
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
id: pages
uses: actions/configure-pages@v5
- name: Collect content
uses: ralexander-phi/[email protected].8
uses: ralexander-phi/[email protected].9
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
Expand Down
8 changes: 6 additions & 2 deletions feeds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,25 @@
feed_url: file://static/.well-known/recommendations.opml

post_age_limit_days:
max_posts_per_feed: 50
max_posts_per_feed: 30
max_posts: 2000

block_words:
- cryptocurrency
- bitcoin
- tesla
- github copilot
- chatgpt

block_domains:
- medium.com
- substack.com
- twitter.com
- youtube.com
- youtu.be
# slow:
- feedpress.me

discover_depth: 2
max_recommendations_per_feed: 100
max_recommendations_per_feed: 50
max_recommendations: 1000
2 changes: 1 addition & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ baseURL:
languageCode: en-us
title: My New Hugo Site
canonifyURLs: true
paginate: 100
paginate: 30
2 changes: 2 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
<body>
{{ partial "topnav" . }}

<div class="main">
{{- block "main" . -}}
{{- end -}}
</div>

{{- block "analytics" . -}}
{{- end -}}
Expand Down
7 changes: 3 additions & 4 deletions layouts/discover/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@

{{ define "main" }}

<a href="..">⮢ Up</a>

<p>Here are even more RSS feeds recommended by the feeds I follow:</p>

{{ range .Pages}}
{{ $paginator := .Paginate .Pages }}
{{ range $paginator.Pages }}
{{ if and (.Title) (.Params.link) }}
<div class="rec">
<a href="{{ .Params.link }}" rel=“UGC” rel="nofollow">
Expand All @@ -45,5 +44,5 @@
</div>
{{ end }}
{{ end }}

{{ template "_internal/pagination.html" . }}
{{ end }}
7 changes: 3 additions & 4 deletions layouts/following/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@

{{ define "main" }}

<a href="..">⮢ Up</a>

<p>This news feed tracks the following feeds:</p>

{{ range .Pages}}
{{ $paginator := .Paginate .Pages }}
{{ range $paginator.Pages }}
<div class="feed">
<a href="feed-{{ .Params.id }}">
{{ if .Title }}
Expand All @@ -34,5 +33,5 @@
{{ end }}
</div>
{{ end }}

{{ template "_internal/pagination.html" . }}
{{ end }}
14 changes: 0 additions & 14 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
{{ define "extrahead" }}
<style>
ul.pagination {
text-align: center;
margin: 3em;
}
li.page-item {
font-size: 1.2em;
display: inline;
padding: 0.4em;
}
</style>
{{ end }}

{{ define "main" }}

{{ $paginator := .Paginate (where .Site.RegularPages "Section" "reading") }}
Expand Down
16 changes: 15 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
font-family: system-ui, -apple-system, Helvetica;
}

div.main {
padding: 1em;
}

div.topnav {
background-color: #58e;
padding: 0.3em;
padding: 0.3em 0.5em 0.3em 0.5em;
font-size: 1.1em;
margin: 0.5em 0 1em 0;
}
Expand Down Expand Up @@ -76,4 +80,14 @@
margin: 6em;
text-align: center;
}

ul.pagination {
text-align: center;
margin: 3em;
}
li.page-item {
font-size: 1.2em;
display: inline;
padding: 0.4em;
}
</style>
10 changes: 7 additions & 3 deletions static/.well-known/recommendations.opml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
<outline text="alexsci.com blog" type="rss" xmlUrl="https://alexsci.com/blog/rss.xml" />
<outline text="manton.org" type="rss" xmlUrl="https://www.manton.org/feed.xml" />
<outline text="scripting.com" type="rss" xmlUrl="http://scripting.com/rss.xml" />

<outline text="lobste.rs" type="rss" xmlUrl="https://lobste.rs/t/programming,cryptography,linux,networking,security,browsers,compsci,devops.rss" />
<outline text="Hacker News" type="rss" xmlUrl="https://hnrss.org/frontpage?points=100" />
<outline text="philbowell.me" type="rss" xmlUrl="https://philbowell.me/feed.xml" />
<outline text="lmika.org" type="rss" xmlUrl="https://lmika.org/feed.xml" />
<outline text="blog.jim-nielsen.com" type="rss" xmlUrl="https://blog.jim-nielsen.com/feed.xml" />
<outline text="solene" type="rss" xmlUrl="https://dataswamp.org/~solene/rss.xml" />
<outline text="daniel.haxx.se" type="rss" xmlUrl="https://daniel.haxx.se/blog/feed/" />
<outline text="tomhazledine" type="rss" xmlUrl="https://tomhazledine.com/feed.xml" />
<outline text="words.filippo.io" type="rss" xmlUrl="https://words.filippo.io/rss/" />
</body>
</opml>

0 comments on commit 7c35bd1

Please sign in to comment.