Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
Upgrade template code
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed Feb 8, 2017
1 parent 6a0edce commit 9479d40
Show file tree
Hide file tree
Showing 10 changed files with 311 additions and 41 deletions.
6 changes: 3 additions & 3 deletions docs/_config.yml
@@ -1,5 +1,5 @@
projectName: PlusAsTab
projectUrl: http://joelpurra.github.com/plusastab
projectUrl: https://joelpurra.com/projects/plusastab/
projectRedirectBaseUrl: https://joelpurra.com/projects/plusastab
projectGithub: https://github.com/joelpurra/plusastab

googleAnalyticsAccountId: UA-29171100-1
projectStackoverflow: https://stackoverflow.com/search?q=plusastab
47 changes: 47 additions & 0 deletions docs/_data/keywords.yml
@@ -0,0 +1,47 @@
# Keywords for https://joelpurra.com/
# Taken from recent search keywords statistics from google, from linkedin, from cv/resume.
-
- ""
- senior
- software
- freelance
- web
- agile
- backend
- back end
- fullstack
- full stack
- ecommerce
-
- ""
- coder
- programmer
- developer
- engineer
- architect
- team lead
- cto
- consultant
-
- ""
- open source
- startup
- portfolio
- resume
- cv
- resume pdf
- cv pdf
- node.js
- javascript
- microservices
- chatbot
- apps
- artificial intelligence
- machine learning
-
- ""
- remote
- remotely
- contract
- part time
- short term
14 changes: 0 additions & 14 deletions docs/_includes/ga.html

This file was deleted.

80 changes: 80 additions & 0 deletions docs/_includes/piwik.html
@@ -0,0 +1,80 @@

<!-- DO NOT COPY THIS SCRIPT TAG -->
<!-- It's used for my statistics -->
<!-- DO NOT COPY THIS SCRIPT TAG -->
<!-- See also https://joelpurra.com/ -->
<!-- See also https://tracker.joelpurra.com/ -->
<!-- See also https://joelpurra.com/projects/masters-thesis/ -->
<!-- Piwik -->
<script type="text/javascript">
//<![CDATA[
// DO NOT COPY THIS SCRIPT TAG
// It's used for my statistics
// DO NOT COPY THIS SCRIPT TAG
(function() {
function isTrackingEnabled() {
// This code has been duplicated elsewhere in this project.
// https://stackoverflow.com/questions/23933650/javascript-only-detection-of-do-not-track-settings-in-ie11
// https://stackoverflow.com/questions/16947459/is-it-possible-to-check-the-value-of-firefox-dnt-with-javascript/16947583#16947583
// https://www.w3.org/TR/tracking-dnt/#js-dom
// https://www.w3.org/TR/tracking-dnt/#dnt-header-field
var dntValue = window.doNotTrack || window.msDoNotTrack || navigator.doNotTrack || navigator.msDoNotTrack || null;
var isDNT = dntValue === "yes" || dntValue === "1";

return !isDNT;
}

(function() {
try {
// NOTE: optionally insert a <noscript> element with the following id to display a non-tracking notice above it.
var noticeElementId = "noscript-tracking-notice";
var infoUrl = "https://tracker.joelpurra.com/";

var noticeStatus = isTrackingEnabled() ? "enabled" : "disabled";
var notice = "Active tracking using Piwik on this page has been <em>" + noticeStatus + "</em> based on your browser's Do Not Track (DNT) setting. Read more <a href=\"" + infoUrl +"\">about active tracking</a>.";

var noticeElement = document.createElement("p");
noticeElement.innerHTML = notice;

var noscriptTrackingNoticeElement = document.getElementById(noticeElementId);

if (noscriptTrackingNoticeElement) {
noscriptTrackingNoticeElement.parentNode.insertBefore(noticeElement, noscriptTrackingNoticeElement);
}
} catch(e) {
// Ignore.
}
}());

(function() {
if (window.piwikTrack === false || !isTrackingEnabled()) {
return;
}

var cookieDomain = "*.joelpurra.io";

if (/\.?github\.com$/.test(document.domain)) {
cookieDomain = "*.github.com";
}

window._paq = window._paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", cookieDomain]);
_paq.push(["setDomains", ["*.joelpurra.com", "*.joelpurra.se", "*.joelpurra.de"]]);
_paq.push(["setDoNotTrack", true]);
_paq.push(['enableLinkTracking']);
_paq.push(['enableHeartBeatTimer', 10]);
_paq.push(['trackPageView']);
(function() {
var u="https://tracker.joelpurra.com/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '13']);
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="https://tracker.joelpurra.com/piwik.php?idsite=13" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
2 changes: 1 addition & 1 deletion docs/_layouts/bare.html
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<html>
{{ content }}
</html>
</html>
2 changes: 1 addition & 1 deletion docs/_layouts/example.html
@@ -1,4 +1,4 @@
---
layout: page
---
{{ content }}
{{ content }}
14 changes: 14 additions & 0 deletions docs/_layouts/page-small.html
@@ -0,0 +1,14 @@
---
layout: page
---
<style type="text/css">
@media (min-width: 600px) and (min-height: 600px) {
#wrapper {
position: fixed;
bottom: 33%;
width: 100%;
}
}
</style>

{{ content }}

0 comments on commit 9479d40

Please sign in to comment.