Skip to content

Commit

Permalink
streamline templates, remove google analytics preparing for #6
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Oct 29, 2020
1 parent 9709758 commit 4913350
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 54 deletions.
3 changes: 1 addition & 2 deletions inst/pkgdown/templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<div class="contents col-md-9">
<p>{{#package}}Developed by {{{authors}}}{{/package}}.</p>
<p>
Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> {{#pkgdown}}{{version}}{{/pkgdown}}.
</p>
Site built by <a href="https://pkgdown.r-lib.org">pkgdown</a>.
</div>

<div class="col-md-3 hidden-xs hidden-sm">
Expand Down
16 changes: 2 additions & 14 deletions inst/pkgdown/templates/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>

<!-- Bootstrap -->
<link href="{{#site}}{{root}}{{/site}}tidyverse.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>

<!-- bootstrap-toc -->
Expand All @@ -30,7 +30,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script>
Expand Down Expand Up @@ -94,15 +94,3 @@
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

{{#yaml}}{{#ganalytics}}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{.}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{.}}');
</script>
{{/ganalytics}}{{/yaml}}
38 changes: 0 additions & 38 deletions inst/pkgdown/templates/navbar.html

This file was deleted.

2 changes: 2 additions & 0 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ template:
docsearch:
api_key: fff00ea40cd3cf5552ca21044cb33c52
index_name: subugoe_subugoetheme
navbar:
type: inverse

0 comments on commit 4913350

Please sign in to comment.