Skip to content

Commit

Permalink
Updated facicon and optimized some JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkosertic committed Sep 6, 2017
1 parent 0037191 commit 443a432
Show file tree
Hide file tree
Showing 15 changed files with 146 additions and 108 deletions.
Binary file removed static/favicon.ico
Binary file not shown.
111 changes: 109 additions & 2 deletions themes/simple/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<footer>
&copy; Mirko Sertic. All rights reserved.
</footer>
<script src="{{ .Site.BaseURL }}js/particles.min.js"></script>
<script src="{{ .Site.BaseURL }}js/app.js"></script>
<script>
function existsByCSSSelector(aSelector) {
var element = document.querySelector(aSelector)
Expand Down Expand Up @@ -41,6 +39,115 @@
}
}

var particleLoader = new Loader();
particleLoader.require(["{{ .Site.BaseURL }}js/particles.min.js"], function() {
particlesJS("particles-js", {
"particles": {
"number": {
"value": 60,
"density": {
"enable": true,
"value_area": 200
}
},
"color": {
"value": "#6b6e70"
},
"shape": {
"type": "circle",
"stroke": {
"width": 0,
"color": "#6b6e70"
},
"polygon": {
"nb_sides": 5
},
},
"opacity": {
"value": 0.5,
"random": false,
"anim": {
"enable": false,
"speed": 1,
"opacity_min": 0.1,
"sync": false
}
},
"size": {
"value": 3,
"random": true,
"anim": {
"enable": false,
"speed": 40,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable": true,
"distance": 150,
"color": "#6b6e70",
"opacity": 0.4,
"width": 1
},
"move": {
"enable": true,
"speed": 2,
"direction": "none",
"random": false,
"straight": false,
"out_mode": "out",
"bounce": false,
"attract": {
"enable": false,
"rotateX": 600,
"rotateY": 1200
}
}
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "grab"
},
"onclick": {
"enable": true,
"mode": "push"
},
"resize": true
},
"modes": {
"grab": {
"distance": 140,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 400,
"size": 40,
"duration": 2,
"opacity": 8,
"speed": 3
},
"repulse": {
"distance": 200,
"duration": 0.4
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
}
},
"retina_detect": true
});
});

if (existsByCSSSelector("pre.highlight code") > 0) {
var loader = new Loader();
loader.require(["{{ .Site.BaseURL }}js/highlight-9.9.0.min.js"], function() {
Expand Down
10 changes: 9 additions & 1 deletion themes/simple/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
{{ end }}

<link rel="stylesheet" href="{{ .Site.BaseURL }}css/site.css">
<link rel="shortcut icon" href="{{ .Site.BaseURL }}favicon.ico"/>

<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL }}apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.BaseURL }}favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.BaseURL }}favicon-16x16.png">
<link rel="manifest" href="{{ .Site.BaseURL }}manifest.json">
<link rel="mask-icon" href="{{ .Site.BaseURL }}safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">

{{ template "_internal/google_analytics_async.html" . }}
</head>
<body>
Expand Down
Binary file added themes/simple/static/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/simple/static/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/simple/static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions themes/simple/static/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added themes/simple/static/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/simple/static/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/simple/static/favicon.ico
Binary file not shown.
Binary file added themes/simple/static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 0 additions & 105 deletions themes/simple/static/js/app.js

This file was deleted.

18 changes: 18 additions & 0 deletions themes/simple/static/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added themes/simple/static/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions themes/simple/static/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 443a432

Please sign in to comment.