Эх сурвалжийг харах

Remove progress bar, add website repo, add footer

Riccardo Balbo 4 жил өмнө
parent
commit
ff08322b0d

+ 1 - 1
content/communitylog/new-website.md

@@ -93,7 +93,7 @@ Posts can integrate comments from the hub by setting the **enable_comments: true
 ## Contribute to the website
 ## Contribute to the website
 
 
 Just like everything else, the website is open to community contributions.
 Just like everything else, the website is open to community contributions.
-We will accept and review articles from the community in form of PRs to our [website repo](). 
+We will accept and review articles from the community in form of PRs to our [website repo](https://github.com/jMonkeyEngine/jmonkeyengine-website). 
 Once a PR is approved and merged, a CI/CD task will rebuild and deploy the static site.
 Once a PR is approved and merged, a CI/CD task will rebuild and deploy the static site.
 
 
 ### Create a post
 ### Create a post

+ 17 - 3
layouts/_default/baseof.html

@@ -5,8 +5,11 @@
 
 
   <title>{{ block "title" . }}{{ .Site.Title }} {{ with .Params.Title }} | {{ . }}{{ end }}{{ end }}</title>
   <title>{{ block "title" . }}{{ .Site.Title }} {{ with .Params.Title }} | {{ . }}{{ end }}{{ end }}</title>
   <meta name="viewport" content="width=device-width,minimum-scale=1">
   <meta name="viewport" content="width=device-width,minimum-scale=1">
+  <meta name="description" content="jMonkeyEngine is a modern developer friendly game engine written primarily in Java.  ">
 
 
   <link rel="stylesheet" href="/css/style.css"> 
   <link rel="stylesheet" href="/css/style.css"> 
+  
+  <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.min.js" integrity="sha512-WIklPM6qPCIp6d3fSSr90j+1unQHUOoWDS4sdTiR8gxUTnyZ8S2Mr8e10sKKJ/bhJgpAa/qG068RDkg6fIlNFA==" crossorigin="anonymous"></script> -->
 
 
   <script src="/highlight/highlight.pack.js"></script>
   <script src="/highlight/highlight.pack.js"></script>
   <script src="//cdnjs.cloudflare.com/ajax/libs/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
   <script src="//cdnjs.cloudflare.com/ajax/libs/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
@@ -30,13 +33,24 @@
 </head>
 </head>
 
 
 <body>
 <body>
-  <progress onload="startCyclingProgressBar()" max=100 value=0 id="pageLoadingProgress"></progress>
-
   <header> {{ block "header" . }}{{ partial "header.html" .}}{{ end }}</header>
   <header> {{ block "header" . }}{{ partial "header.html" .}}{{ end }}</header>
 
 
   <main>
   <main>
     {{ block "main" . }}{{ end }}
     {{ block "main" . }}{{ end }}
   </main>
   </main>
-  <footer></footer>
+  <footer> 
+    © 2020 jMonkeyEngine  |  <a title="Github repo"  rel='noopener nofollow noreferrer' target="_blank" href="https://github.com/jMonkeyEngine/jmonkeyengine-website">
+      <i class="fab fa-github"></i>
+    </a>
+    <a title="Report issue"  rel='noopener nofollow noreferrer' target="_blank" href="https://github.com/jMonkeyEngine/jmonkeyengine-website/issues">
+      <i class="fas fa-bug"></i>
+    </a>
+    <br />
+    All other trademarks, logos and featured content are property of their respective owners.
+    <br />
+    Website designed and developed by <a href="https://rblb.it">Riccardo Balbo</a>
+
+    
+  </footer>
 </body>
 </body>
 </html>
 </html>

+ 5 - 0
static/css/style.less

@@ -808,6 +808,11 @@ body {
     // The main footer
     // The main footer
     >footer {
     >footer {
         margin-top: 4rem; // Makes the page nicer by preventing it from abruptly end at the end of the content.
         margin-top: 4rem; // Makes the page nicer by preventing it from abruptly end at the end of the content.
+        text-align: center;
+        font-size:0.8rem;
+        color:var(--foreground2);
+        margin-bottom:1rem;
+
     }
     }
 
 
     >main {
     >main {

+ 0 - 17
static/js/utils.js

@@ -40,23 +40,6 @@ window.shuffleArray = function (array) {
 
 
 
 
 
 
-let PROGRESS_BAR_INTERVAL = null;
-window.addEventListener("load", function () {
-    document.getElementById("pageLoadingProgress").style.display = "none";
-    if (PROGRESS_BAR_INTERVAL) {
-        clearInterval(PROGRESS_BAR_INTERVAL);
-        PROGRESS_BAR_INTERVAL = null;
-    }
-});
-
-
-PROGRESS_BAR_INTERVAL = setInterval(function () {
-    const bar = document.getElementById("pageLoadingProgress");
-    if (!bar) return;
-    bar.value += 1;
-    if (bar.value >= bar.max) bar.value = 0;
-}, 20);
-
 
 
 window.addEventListener("DOMContentLoaded", function () {
 window.addEventListener("DOMContentLoaded", function () {
     document.querySelectorAll("[toggle]").forEach(el=>{
     document.querySelectorAll("[toggle]").forEach(el=>{