Only render privacyy policy if data present
This commit is contained in:
parent
5d658452f4
commit
4829e08478
|
@ -22,6 +22,7 @@ const getIconName = (clasification: string) => {
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{priv && (
|
||||||
<div class="privacy-policy-wrapper">
|
<div class="privacy-policy-wrapper">
|
||||||
|
|
||||||
{(priv.points && priv.points.length) > 0 && (
|
{(priv.points && priv.points.length) > 0 && (
|
||||||
|
@ -74,7 +75,7 @@ const getIconName = (clasification: string) => {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
import Layout from '@layouts/Layout.astro';
|
import Layout from '@layouts/Layout.astro';
|
||||||
import Button from '@components/form/Button.astro';
|
|
||||||
import Main from '@components/scafold/MainCard.astro';
|
|
||||||
import ServiceList from '@components/things/ServiceList.astro';
|
import ServiceList from '@components/things/ServiceList.astro';
|
||||||
import Comments from '@components/things/Comments.svelte';
|
import Comments from '@components/things/Comments.svelte';
|
||||||
import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro';
|
import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro';
|
||||||
|
@ -29,9 +27,9 @@ const {
|
||||||
tosdrId,
|
tosdrId,
|
||||||
icon,
|
icon,
|
||||||
followWith,
|
followWith,
|
||||||
securityAudited,
|
// securityAudited,
|
||||||
openSource,
|
// openSource,
|
||||||
acceptsCrypto,
|
// acceptsCrypto,
|
||||||
parentSection,
|
parentSection,
|
||||||
categoryName,
|
categoryName,
|
||||||
} = Astro.props;
|
} = Astro.props;
|
||||||
|
@ -42,18 +40,18 @@ const {
|
||||||
*/
|
*/
|
||||||
const makeKeyWordTag = () => {
|
const makeKeyWordTag = () => {
|
||||||
const keywords: string[] = [];
|
const keywords: string[] = [];
|
||||||
// keywords.push(`free and open source ${title} software`);
|
keywords.push(`free and open source ${parentSection.name} software`);
|
||||||
// keywords.push(`private ${title} comparison`);
|
keywords.push(`private ${parentSection.name} comparison`);
|
||||||
// (alternativeTo || []).forEach((alt: string) => {
|
(parentSection.alternativeTo || []).forEach((alt: string) => {
|
||||||
// keywords.push(`privacy-respecting ${alt} alternative`);
|
keywords.push(`privacy-respecting ${alt} alternative`);
|
||||||
// keywords.push(`free open source ${alt} alternative`);
|
keywords.push(`free open source ${alt} alternative`);
|
||||||
// });
|
});
|
||||||
// (services || []).forEach((serv: Service) => {
|
(parentSection.services || []).forEach((serv: Service) => {
|
||||||
// keywords.push(serv.name);
|
keywords.push(serv.name);
|
||||||
// });
|
});
|
||||||
// keywords.push('ad free');
|
keywords.push('ad free');
|
||||||
// keywords.push('open source software');
|
keywords.push('open source software');
|
||||||
// keywords.push('privacy respecting apps');
|
keywords.push('privacy respecting apps');
|
||||||
return keywords.join(', ');
|
return keywords.join(', ');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -68,16 +66,10 @@ const makePageTitle = () => {
|
||||||
* Make a string page intro, for the description tag
|
* Make a string page intro, for the description tag
|
||||||
*/
|
*/
|
||||||
const makeDescriptionTag = () => {
|
const makeDescriptionTag = () => {
|
||||||
let description = `A list of privacy respecting ${name}. `;
|
return `Compare ${name} and other ${parentSection.name} at Awesome Privacy\n`
|
||||||
// if (services && services.length > 0) {
|
+ description
|
||||||
// const serviceList = services.map((serv: Service) => serv.name);
|
+ '\nAll this, and much more at Awesome Privacy, '
|
||||||
// description += `Compare ${serviceList.join(', ')} and more private apps and services. `
|
+ 'the free and open source list of private software alternatives.';
|
||||||
// } else {
|
|
||||||
// description += `Find private apps and services. This section is still a work in progress. `;
|
|
||||||
// }
|
|
||||||
// description += 'All this, and much more at Awesome Privacy, '
|
|
||||||
// description += 'the free and open source list of private software alternatives.';
|
|
||||||
return description;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Return a list of Services, except for the currtent one
|
// Return a list of Services, except for the currtent one
|
||||||
|
|
Loading…
Reference in New Issue