Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add download links to the releases #56

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/_data/site.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"title": "Dangerzone",
"description": "The Dangerzone application takes potentially dangerous documents and converts them to safe PDF files",
"url": "https://dangerzone.rocks/",
"author": {
"name": "Dangerzone development team",
"email": "[email protected]"
}
"title": "Dangerzone",
"description": "The Dangerzone application takes potentially dangerous documents and converts them to safe PDF files",
"url": "https://dangerzone.rocks/",
"author": {
"name": "Dangerzone development team",
"email": "[email protected]"
},
"github_repo": "https://github.com/freedomofpress/dangerzone",
"version": "0.8.0"
}
57 changes: 57 additions & 0 deletions src/_includes/downloads.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<section id="downloads" class="wrapper clearfix">
<h2>Download Dangerzone {{ version }}</h2>
🔍 <a href="https://github.com/freedomofpress/dangerzone/blob/v{{ version }}/INSTALL.md#verifying-pgp-signatures">How to verify</a>
</br>
<div class="os-download-container">
<div class="osPrimary">
<img src="/assets/img/apple-logo.png" alt="Apple Logo">
<p class="title">MacOS</p>
<a class="button"
href="https://github.com/freedomofpress/dangerzone/releases/download/v{{ version }}/Dangerzone-{{ version }}-i686.dmg">Intel chip</a>
<a class="button"
href="https://github.com/freedomofpress/dangerzone/releases/download/v{{ version }}/Dangerzone-{{ version }}-arm64.dmg">Apple Silicon chip</a>
<p class="cpu-arch-info">&#8505;&#65039;
<a href="https://support.apple.com/en-us/HT211814">Which one do I have?</a>
</p>
</div>
<div class="osPrimary">
<img src="/assets/img/windows-logo.png" alt="Windows Logo">
<p class="title">Windows</p>
<a class="button"
href="https://github.com/freedomofpress/dangerzone/releases/download/v{{ version }}/Dangerzone-{{ version }}.msi">Download for
Windows</a>
<p class="cpu-arch-info">&#65039; <!-- invalid emoji to display same-height whitespace as macOS -->
<p></p>
</p>
</div>
</div>
<div class="os-download-container">
<div class="osSecondary">
<img src="/assets/img/ubuntu-logo.png" alt="Ubuntu Logo">
<p class="title">Ubuntu / Debian</p>
<a class="button"
href="https://github.com/freedomofpress/dangerzone/blob/v{{ version }}/INSTALL.md#ubuntu-debian">Install</a>
</div>
<div class="osSecondary">
<img src="/assets/img/fedora-logo.png" alt="Fedora Logo">
<p class="title">Fedora</p>
<a class="button"
href="https://github.com/freedomofpress/dangerzone/blob/v{{ version }}/INSTALL.md#fedora">Install</a>
</div>
<div class="osSecondary">
<img src="/assets/img/tails-logo.svg" alt="Tails Logo">
<p class="title">Tails</p>
<a class="button" href="https://tails.net/doc/persistent_storage/additional_software/dangerzone/index.en.html">Install</a>
</div>
<div class="osSecondary">
<img src="/assets/img/linux-logo.png" alt="Linux Logo">
<p class="title">Other Linux</p>
<a class="button" href="https://github.com/freedomofpress/dangerzone/blob/main/BUILD.md">Build from Source</a>
</div>
<div class="osSecondary">
<img src="/assets/img/qubes-os-logo.png" alt="Qubes OS Logo">
<p class="title">Qubes OS (Beta)</p>
<a class="button" href="https://github.com/freedomofpress/dangerzone/blob/v{{ version }}/INSTALL.md#qubes-os">Install</a>
</div>
</div>
</section>
12 changes: 12 additions & 0 deletions src/_layouts/release.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: base
---

<article>
<div class="wrapper article">
<h1>{{ title }}</h1>
<div class="post-time"><time datetime="{{ date | dateIso }}">{{ date | dateReadable }}</time></div>
{{ content | safe }}
</div>
{% include "../_includes/downloads.njk" %}
</article>
108 changes: 0 additions & 108 deletions src/index.html

This file was deleted.

54 changes: 54 additions & 0 deletions src/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
layout: base.njk
---

<div id="intro">
<div class="wrapper">
<img src="assets/img/logo.png" title="Dangerzone">
<h1>Dangerzone</h1>
<p class="title">Take potentially dangerous PDFs, office documents, or images and convert them
to safe PDFs.</p>

<a class="buttonPrimary" href="#downloads">Download</a>

<a class="button" href="about/" class="buttonSecondary" rel="noreferrer noopener">Learn More</a>
</div>
</div>
<section class="wrapper" id="features">
<div class="feature">
<p class="title">No Network Access</p>
<p>Sandboxes don't have network access, so if a malicious document
can compromise one, it can't phone home</p>
</div>
<div class="feature">
<p class="title">Optional OCR</p>
<p>Dangerzone can optionally OCR the safe PDFs it creates, so it
will have a text layer again</p>
</div>
<div class="feature">
<p class="title">Reduced File Size</p>
<p>Dangerzone compresses the safe PDF to reduce file size</p>
</div>
<div class="feature">
<p class="title">Open Docs Safely</p>
<p>After converting, Dangerzone lets you open the safe PDF in the PDF
viewer of your choice, which allows you to open PDFs and office docs
in Dangerzone by default so you never accidentally open a dangerous document</p>
</div>
</section>

{% set version = site.version %}
{% include "./_includes/downloads.njk" %}

<section class="wrapper" id="news">
<h2>How It Works</h2>
<div class="clearfix">
<p>Dangerzone works like this: You give it a document that you don't know
if you can trust (for example, an email attachment). Inside of a sandbox,
Dangerzone converts the document to a PDF (if it isn't already one), and
then converts the PDF into raw pixel data: a huge list of of RGB color
values for each page. Then, Dangerzone takes this pixel data and converts
it back into a PDF.</p>
<p><a href="about/">Learn more</a></p>
</div>
</section>
3 changes: 2 additions & 1 deletion src/news/2024-10-01-0.7.1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: post
layout: release
title: Dangerzone 0.7.1 is out
version: 0.7.1
date: 2024-10-01
---

Expand Down
3 changes: 2 additions & 1 deletion src/news/2024-11-06-0.8.0.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: post
layout: release
title: Dangerzone 0.8.0 is out
version: 0.8.0
date: 2024-11-06
---

Expand Down