forked from letsblockit/letsblockit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinuxfr-cleanup.yaml
More file actions
38 lines (36 loc) · 980 Bytes
/
linuxfr-cleanup.yaml
File metadata and controls
38 lines (36 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
title: Cleanup the LinuxFr interface
params:
- name: homepage-pinned
description: Hide the pinned article at the top of the homepage
type: checkbox
default: true
- name: homepage-banner
description: Hide the advertising banner on the homepage
type: checkbox
default: false
tags:
- linuxfr
template: |
{{#if homepage-pinned}}
linuxfr.org###phare
{{/if}}
{{#if homepage-banner}}
linuxfr.org###phare + aside.banner
{{/if}}
tests:
- params: {}
output: ""
- params:
homepage-pinned: true
output: |
linuxfr.org###phare
- params:
homepage-pinned: true
homepage-banner: true
output: |
linuxfr.org###phare
linuxfr.org###phare + aside.banner
---
The LinuxFR.org homepage has a low information density, with the most recent article usually barely above the fold.
This filter allows you to hide the two elements at the top of the homepage, to make the most recent article more obvious
to find.