mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-20 13:24:35 -05:00
Clean up default layout, move scripts to file
This commit is contained in:
parent
68bca5a02c
commit
b5d97486d9
37
_includes/scripts.html
Normal file
37
_includes/scripts.html
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<script src="assets/js/jquery-3.3.1.min.js?v=4"></script>
|
||||||
|
<script src="assets/js/popper.min.js?v=4"></script>
|
||||||
|
<script src="assets/js/bootstrap.min.js?v=4"></script>
|
||||||
|
<script src="assets/js/sortable.min.js?v=4"></script>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
$("[data-toggle='tooltip']").tooltip();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.navbar a').not(".dropdown-toggle").click(function (e) {
|
||||||
|
if ($(".navbar-toggler").is(":visible")) {
|
||||||
|
$('.navbar-collapse').collapse('toggle');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Piwik is the leading open-source analytics platform:
|
||||||
|
- Free open-source software
|
||||||
|
- 100% data ownership
|
||||||
|
- User privacy protection
|
||||||
|
-->
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var _paq = _paq || [];
|
||||||
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//piwik.privacytools.io/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||||
|
_paq.push(['setSiteId', '1']);
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<noscript><img src="https://piwik.privacytools.io/piwik.php?idsite=1&rec=1" style="border:0" alt=""/></noscript>
|
@ -1,19 +1,23 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<!-- set the default language as English -->
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<!-- tags for Search Engine Optimization -->
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
<meta name="referrer" content="no-referrer">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="keywords" content="privacy, anonymity, privacy tools, surveillance, encryption, edward snowden, nsa, tor">
|
<meta name="keywords" content="privacy, anonymity, privacy tools, surveillance, encryption, edward snowden, nsa, tor">
|
||||||
<meta name="description" content="{{ site.description }}">
|
<meta name="description" content="{{ site.description }}">
|
||||||
|
<meta name="msapplication-TileColor" content="#da532c">
|
||||||
<!-- referrer policy -->
|
<meta name="msapplication-TileImage" content="assets/img/favicons/mstile-144x144.png">
|
||||||
<meta name="referrer" content="no-referrer">
|
<meta name="msapplication-config" content="assets/img/favicons/browserconfig.xml">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
<meta property="og:title" content="Privacy Tools | Encryption against global mass surveillance" />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:url" content="https://www.privacytools.io/" />
|
||||||
|
<meta property="og:image" content="https://www.privacytools.io/assets/img/layout/ogimage.jpg" />
|
||||||
|
<meta property="og:description" content="You are being watched! Knowledge, encryption and privacy tools to protect you against global mass surveillance."/>
|
||||||
|
<meta property="og:locale" content="en_US" />
|
||||||
|
<meta property="og:site_name" content="privacytools.io" />
|
||||||
|
|
||||||
<!-- title -->
|
<!-- title -->
|
||||||
{% if page.title %}
|
{% if page.title %}
|
||||||
@ -38,71 +42,19 @@
|
|||||||
<link rel="icon" type="image/png" href="assets/img/favicons/favicon-16x16.png" sizes="16x16">
|
<link rel="icon" type="image/png" href="assets/img/favicons/favicon-16x16.png" sizes="16x16">
|
||||||
<link rel="manifest" href="assets/img/favicons/manifest.json">
|
<link rel="manifest" href="assets/img/favicons/manifest.json">
|
||||||
<link rel="shortcut icon" href="assets/img/favicons/favicon.ico">
|
<link rel="shortcut icon" href="assets/img/favicons/favicon.ico">
|
||||||
<meta name="msapplication-TileColor" content="#da532c">
|
|
||||||
<meta name="msapplication-TileImage" content="assets/img/favicons/mstile-144x144.png">
|
|
||||||
<meta name="msapplication-config" content="assets/img/favicons/browserconfig.xml">
|
|
||||||
<meta name="theme-color" content="#ffffff">
|
|
||||||
|
|
||||||
<!-- CSS stylesheets -->
|
<!-- CSS stylesheets -->
|
||||||
<link href="assets/css/style.css?v=5" rel="stylesheet">
|
<link href="assets/css/style.css?v=5" rel="stylesheet">
|
||||||
|
|
||||||
<!-- Open Graph Protocol tags for SEO -->
|
|
||||||
<meta property="og:title" content="Privacy Tools | Encryption against global mass surveillance" />
|
|
||||||
<meta property="og:type" content="website" />
|
|
||||||
<meta property="og:url" content="https://www.privacytools.io/" />
|
|
||||||
<meta property="og:image" content="https://www.privacytools.io/assets/img/layout/ogimage.jpg" />
|
|
||||||
<meta property="og:description" content="You are being watched! Knowledge, encryption and privacy tools to protect you against global mass surveillance."
|
|
||||||
/>
|
|
||||||
<meta property="og:locale" content="en_US" />
|
|
||||||
<meta property="og:site_name" content="privacytools.io" />
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target="#navbar">
|
<body data-spy="scroll" data-target="#navbar">
|
||||||
|
|
||||||
{% include nav.html %}
|
{% include nav.html %}
|
||||||
|
|
||||||
<div id="top" class="py-4">
|
<div id="top" class="py-4"></div>
|
||||||
<div class="mb-5"></div>
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- add jQuery, Popper, Bootstrap, Sortable, and tooltip libraries -->
|
{% include scripts.html %}
|
||||||
<script src="assets/js/jquery-3.3.1.min.js?v=4"></script>
|
|
||||||
<script src="assets/js/popper.min.js?v=4"></script>
|
|
||||||
<script src="assets/js/bootstrap.min.js?v=4"></script>
|
|
||||||
<script src="assets/js/sortable.min.js?v=4"></script>
|
|
||||||
<script>
|
|
||||||
$(function () {
|
|
||||||
$("[data-toggle='tooltip']").tooltip();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.navbar a').not(".dropdown-toggle").click(function (e) {
|
|
||||||
if ($(".navbar-toggler").is(":visible")) {
|
|
||||||
$('.navbar-collapse').collapse('toggle');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Piwik is the leading open-source analytics platform:
|
|
||||||
- Free open-source software
|
|
||||||
- 100% data ownership
|
|
||||||
- User privacy protection
|
|
||||||
-->
|
|
||||||
<script>
|
|
||||||
var _paq = _paq || [];
|
|
||||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
|
||||||
_paq.push(['trackPageView']);
|
|
||||||
_paq.push(['enableLinkTracking']);
|
|
||||||
(function() {
|
|
||||||
var u="//piwik.privacytools.io/";
|
|
||||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
|
||||||
_paq.push(['setSiteId', '1']);
|
|
||||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
||||||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<noscript><p><img src="//piwik.privacytools.io/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
|
|
||||||
<!-- End Piwik Code -->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
@import 'fontawesome';
|
@import 'fontawesome';
|
||||||
@import 'sortable-theme-bootstrap';
|
@import 'sortable-theme-bootstrap';
|
||||||
|
|
||||||
/* BS4 */
|
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
box-shadow: $card-shadow !important;
|
box-shadow: $card-shadow !important;
|
||||||
}
|
}
|
||||||
@ -32,14 +30,12 @@ a,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.card-primary, */
|
|
||||||
.card-primary {
|
.card-primary {
|
||||||
.card-header {
|
.card-header {
|
||||||
border-color: $card-primary-border !important;
|
border-color: $card-primary-border !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.card-warning, */
|
|
||||||
.card-warning {
|
.card-warning {
|
||||||
.card-header {
|
.card-header {
|
||||||
border-color: $card-warning-border !important;
|
border-color: $card-warning-border !important;
|
||||||
@ -113,6 +109,10 @@ a,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#top {
|
||||||
|
margin-bottom: 3rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
.twitter { background: $twitter; }
|
.twitter { background: $twitter; }
|
||||||
.mastodon { background: $mastodon; }
|
.mastodon { background: $mastodon; }
|
||||||
.facebook { background: $facebook; }
|
.facebook { background: $facebook; }
|
||||||
|
Loading…
Reference in New Issue
Block a user