[gimp-web: 5/5] Fixing default view for all downloads w/o JS (googlebot)



commit b85b0512b364770c340a1e3535e02944213c7679
Author: Pat David <patdavid gmail com>
Date:   Wed Nov 25 13:44:00 2015 -0600

    Fixing default view for all downloads w/o JS (googlebot)

 content/downloads/index.md         |    8 +++++++-
 themes/newgimp/templates/home.html |    1 +
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/content/downloads/index.md b/content/downloads/index.md
index fe98b0a..1c05eb8 100644
--- a/content/downloads/index.md
+++ b/content/downloads/index.md
@@ -23,7 +23,7 @@ td, th {
 }
 
 .os {
-    display: none;
+    //display: none;
 }
 
 #pOSTEST {
@@ -65,12 +65,14 @@ td, th {
 </style>
 
 <noscript>
+<!--
 <style>
 .os { display: block; }
 #others { display: none; }
 #letmeknow { display: none; }
 #pOSTEST { display: block; }
 </style>
+-->
 </noscript>
 
 <figure>
@@ -378,6 +380,10 @@ If you are running one of the existing GIMP mirrors, or want to create a new one
 
 <script>
 
+document.getElementById('linux').style.display = 'none';
+document.getElementById('win').style.display = 'none';
+document.getElementById('mac').style.display = 'none';
+
 if ( platform.os.family.indexOf('Win') !== -1 && platform.os.family.indexOf('Phone') == -1 ){
     document.getElementById('win').style.display = 'block';
     document.getElementById('pOSTEST').innerHTML = 'Microsoft Windows.';
diff --git a/themes/newgimp/templates/home.html b/themes/newgimp/templates/home.html
index c9404b7..888ba1d 100644
--- a/themes/newgimp/templates/home.html
+++ b/themes/newgimp/templates/home.html
@@ -5,6 +5,7 @@
 {% block head %}
 {{ super() }}
         <link rel='stylesheet' type='text/css' href="/theme/css/home.css" />
+
         <meta itemprop='url' content='{{ SITEURL }}' />
         <meta itemprop='name' content='GIMP - GNU Image Manipulation Program' />
 {% endblock head %}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]