Commit 4829e08478

4829e0847808389cffa9f39cea32655da0ee9ef4

parent: 5d658452f4

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-03-01 12:23 UTC

Only render privacyy policy if data present

Layout: unified · split

web/src/components/things/PrivacyPolicyDetails.astro +2 −1
@@ -22,6 +22,7 @@ const getIconName = (clasification: string) => {
2222
2323---
2424
25{priv && (
2526<div class="privacy-policy-wrapper">
2627
2728 {(priv.points && priv.points.length) > 0 && (
@@ -74,7 +75,7 @@ const getIconName = (clasification: string) => {
7475 )}
7576 </div>
7677</div>
77
78)}
7879
7980<style lang="scss">
8081
web/src/pages/[...listing].astro +19 −27
@@ -1,8 +1,6 @@
11---
22
33import Layout from '@layouts/Layout.astro';
4import Button from '@components/form/Button.astro';
5import Main from '@components/scafold/MainCard.astro';
64import ServiceList from '@components/things/ServiceList.astro';
75import Comments from '@components/things/Comments.svelte';
86import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro';
@@ -29,9 +27,9 @@ const {
2927 tosdrId,
3028 icon,
3129 followWith,
32 securityAudited,
33 openSource,
34 acceptsCrypto,
30 // securityAudited,
31 // openSource,
32 // acceptsCrypto,
3533 parentSection,
3634 categoryName,
3735} = Astro.props;
@@ -42,18 +40,18 @@ const {
4240 */
4341const makeKeyWordTag = () => {
4442 const keywords: string[] = [];
45 // keywords.push(`free and open source ${title} software`);
46 // keywords.push(`private ${title} comparison`);
47 // (alternativeTo || []).forEach((alt: string) => {
48 // keywords.push(`privacy-respecting ${alt} alternative`);
49 // keywords.push(`free open source ${alt} alternative`);
50 // });
51 // (services || []).forEach((serv: Service) => {
52 // keywords.push(serv.name);
53 // });
54 // keywords.push('ad free');
55 // keywords.push('open source software');
56 // keywords.push('privacy respecting apps');
43 keywords.push(`free and open source ${parentSection.name} software`);
44 keywords.push(`private ${parentSection.name} comparison`);
45 (parentSection.alternativeTo || []).forEach((alt: string) => {
46 keywords.push(`privacy-respecting ${alt} alternative`);
47 keywords.push(`free open source ${alt} alternative`);
48 });
49 (parentSection.services || []).forEach((serv: Service) => {
50 keywords.push(serv.name);
51 });
52 keywords.push('ad free');
53 keywords.push('open source software');
54 keywords.push('privacy respecting apps');
5755 return keywords.join(', ');
5856};
5957
@@ -68,16 +66,10 @@ const makePageTitle = () => {
6866 * Make a string page intro, for the description tag
6967 */
7068const makeDescriptionTag = () => {
71 let description = `A list of privacy respecting ${name}. `;
72 // if (services && services.length > 0) {
73 // const serviceList = services.map((serv: Service) => serv.name);
74 // description += `Compare ${serviceList.join(', ')} and more private apps and services. `
75 // } else {
76 // description += `Find private apps and services. This section is still a work in progress. `;
77 // }
78 // description += 'All this, and much more at Awesome Privacy, '
79 // description += 'the free and open source list of private software alternatives.';
80 return description;
69 return `Compare ${name} and other ${parentSection.name} at Awesome Privacy\n`
70 + description
71 + '\nAll this, and much more at Awesome Privacy, '
72 + 'the free and open source list of private software alternatives.';
8173};
8274
8375// Return a list of Services, except for the currtent one