Commit 4829e08478
Unsigned
Layout: unified · split
web/src/components/things/PrivacyPolicyDetails.astro +2 −1
| @@ -22,6 +22,7 @@ const getIconName = (clasification: string) => { | |||
| 22 | 22 | ||
| 23 | --- | 23 | --- |
| 24 | 24 | ||
| 25 | {priv && ( | ||
| 25 | <div class="privacy-policy-wrapper"> | 26 | <div class="privacy-policy-wrapper"> |
| 26 | 27 | ||
| 27 | {(priv.points && priv.points.length) > 0 && ( | 28 | {(priv.points && priv.points.length) > 0 && ( |
| @@ -74,7 +75,7 @@ const getIconName = (clasification: string) => { | |||
| 74 | )} | 75 | )} |
| 75 | </div> | 76 | </div> |
| 76 | </div> | 77 | </div> |
| 77 | 78 | )} | |
| 78 | 79 | ||
| 79 | <style lang="scss"> | 80 | <style lang="scss"> |
| 80 | 81 | ||
web/src/pages/[...listing].astro +19 −27
| @@ -1,8 +1,6 @@ | |||
| 1 | --- | 1 | --- |
| 2 | 2 | ||
| 3 | import Layout from '@layouts/Layout.astro'; | 3 | import Layout from '@layouts/Layout.astro'; |
| 4 | import Button from '@components/form/Button.astro'; | ||
| 5 | import Main from '@components/scafold/MainCard.astro'; | ||
| 6 | import ServiceList from '@components/things/ServiceList.astro'; | 4 | import ServiceList from '@components/things/ServiceList.astro'; |
| 7 | import Comments from '@components/things/Comments.svelte'; | 5 | import Comments from '@components/things/Comments.svelte'; |
| 8 | import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro'; | 6 | import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro'; |
| @@ -29,9 +27,9 @@ const { | |||
| 29 | tosdrId, | 27 | tosdrId, |
| 30 | icon, | 28 | icon, |
| 31 | followWith, | 29 | followWith, |
| 32 | securityAudited, | 30 | // securityAudited, |
| 33 | openSource, | 31 | // openSource, |
| 34 | acceptsCrypto, | 32 | // acceptsCrypto, |
| 35 | parentSection, | 33 | parentSection, |
| 36 | categoryName, | 34 | categoryName, |
| 37 | } = Astro.props; | 35 | } = Astro.props; |
| @@ -42,18 +40,18 @@ const { | |||
| 42 | */ | 40 | */ |
| 43 | const makeKeyWordTag = () => { | 41 | const makeKeyWordTag = () => { |
| 44 | const keywords: string[] = []; | 42 | const keywords: string[] = []; |
| 45 | // keywords.push(`free and open source ${title} software`); | 43 | keywords.push(`free and open source ${parentSection.name} software`); |
| 46 | // keywords.push(`private ${title} comparison`); | 44 | keywords.push(`private ${parentSection.name} comparison`); |
| 47 | // (alternativeTo || []).forEach((alt: string) => { | 45 | (parentSection.alternativeTo || []).forEach((alt: string) => { |
| 48 | // keywords.push(`privacy-respecting ${alt} alternative`); | 46 | keywords.push(`privacy-respecting ${alt} alternative`); |
| 49 | // keywords.push(`free open source ${alt} alternative`); | 47 | keywords.push(`free open source ${alt} alternative`); |
| 50 | // }); | 48 | }); |
| 51 | // (services || []).forEach((serv: Service) => { | 49 | (parentSection.services || []).forEach((serv: Service) => { |
| 52 | // keywords.push(serv.name); | 50 | keywords.push(serv.name); |
| 53 | // }); | 51 | }); |
| 54 | // keywords.push('ad free'); | 52 | keywords.push('ad free'); |
| 55 | // keywords.push('open source software'); | 53 | keywords.push('open source software'); |
| 56 | // keywords.push('privacy respecting apps'); | 54 | keywords.push('privacy respecting apps'); |
| 57 | return keywords.join(', '); | 55 | return keywords.join(', '); |
| 58 | }; | 56 | }; |
| 59 | 57 | ||
| @@ -68,16 +66,10 @@ const makePageTitle = () => { | |||
| 68 | * Make a string page intro, for the description tag | 66 | * Make a string page intro, for the description tag |
| 69 | */ | 67 | */ |
| 70 | const makeDescriptionTag = () => { | 68 | const makeDescriptionTag = () => { |
| 71 | let description = `A list of privacy respecting ${name}. `; | 69 | return `Compare ${name} and other ${parentSection.name} at Awesome Privacy\n` |
| 72 | // if (services && services.length > 0) { | 70 | + description |
| 73 | // const serviceList = services.map((serv: Service) => serv.name); | 71 | + '\nAll this, and much more at Awesome Privacy, ' |
| 74 | // description += `Compare ${serviceList.join(', ')} and more private apps and services. ` | 72 | + 'the free and open source list of private software alternatives.'; |
| 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; | ||
| 81 | }; | 73 | }; |
| 82 | 74 | ||
| 83 | // Return a list of Services, except for the currtent one | 75 | // Return a list of Services, except for the currtent one |