This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/master by this push:
     new b946003  Simplifies anchors
b946003 is described below

commit b94600388d64c1d96daa3996a526e7684b59d84a
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Tue Oct 10 08:43:15 2017 +0200

    Simplifies anchors
---
 source/_layouts/core-developers.html  | 14 --------------
 source/_layouts/default.html          | 14 --------------
 source/_layouts/getting-started.html  | 14 --------------
 source/_layouts/maven-archetypes.html | 14 --------------
 source/_layouts/plugin.html           | 14 --------------
 source/css/custom.css                 | 10 ++++++----
 source/download.html                  | 28 +++++++++-------------------
 source/downloads.html                 |  5 ++---
 source/mail.md                        |  2 --
 source/primer.md                      |  2 --
 10 files changed, 17 insertions(+), 100 deletions(-)

diff --git a/source/_layouts/core-developers.html 
b/source/_layouts/core-developers.html
index f8145a4..cf78bde 100644
--- a/source/_layouts/core-developers.html
+++ b/source/_layouts/core-developers.html
@@ -33,19 +33,5 @@
 
 {% include footer.html %}
 
-<script>
-$(function() {
-  return $("h2, h3, h4, h5, h6").each(function(i, el) {
-    var $el, id;
-    $el = $(el);
-    id = $el.attr('id');
-    if (id) {
-      $el.removeAttr('id');
-      return $el.before($("<a />").addClass('anchor').attr('name', id));
-    }
-  });
-});
-</script>
-
 </body>
 </html>
diff --git a/source/_layouts/default.html b/source/_layouts/default.html
index 34350bb..edf59a5 100644
--- a/source/_layouts/default.html
+++ b/source/_layouts/default.html
@@ -35,19 +35,5 @@
 
 {% include footer.html %}
 
-<script>
-$(function() {
-  return $("h2, h3, h4, h5, h6").each(function(i, el) {
-    var $el, id;
-    $el = $(el);
-    id = $el.attr('id');
-    if (id) {
-      $el.removeAttr('id');
-      return $el.before($("<a />").addClass('anchor').attr('name', id));
-    }
-  });
-});
-</script>
-
 </body>
 </html>
diff --git a/source/_layouts/getting-started.html 
b/source/_layouts/getting-started.html
index 7fc3035..b672f8f 100644
--- a/source/_layouts/getting-started.html
+++ b/source/_layouts/getting-started.html
@@ -33,19 +33,5 @@
 
 {% include footer.html %}
 
-<script>
-$(function() {
-  return $("h2, h3, h4, h5, h6").each(function(i, el) {
-    var $el, id;
-    $el = $(el);
-    id = $el.attr('id');
-    if (id) {
-      $el.removeAttr('id');
-      return $el.before($("<a />").addClass('anchor').attr('name', id));
-    }
-  });
-});
-</script>
-
 </body>
 </html>
diff --git a/source/_layouts/maven-archetypes.html 
b/source/_layouts/maven-archetypes.html
index 63a1002..7e59143 100644
--- a/source/_layouts/maven-archetypes.html
+++ b/source/_layouts/maven-archetypes.html
@@ -33,19 +33,5 @@
 
 {% include footer.html %}
 
-<script>
-$(function() {
-  return $("h2, h3, h4, h5, h6").each(function(i, el) {
-    var $el, id;
-    $el = $(el);
-    id = $el.attr('id');
-    if (id) {
-      $el.removeAttr('id');
-      return $el.before($("<a />").addClass('anchor').attr('name', id));
-    }
-  });
-});
-</script>
-
 </body>
 </html>
diff --git a/source/_layouts/plugin.html b/source/_layouts/plugin.html
index c9b3e60..6c3300a 100644
--- a/source/_layouts/plugin.html
+++ b/source/_layouts/plugin.html
@@ -33,19 +33,5 @@
 
 {% include footer.html %}
 
-<script>
-$(function() {
-  return $("h2, h3, h4, h5, h6").each(function(i, el) {
-    var $el, id;
-    $el = $(el);
-    id = $el.attr('id');
-    if (id) {
-      $el.removeAttr('id');
-      return $el.before($("<a />").addClass('anchor').attr('name', id));
-    }
-  });
-});
-</script>
-
 </body>
 </html>
diff --git a/source/css/custom.css b/source/css/custom.css
index 7a96649..5e0878f 100644
--- a/source/css/custom.css
+++ b/source/css/custom.css
@@ -15,7 +15,6 @@
 
 h2, h3, h4, h5, h6 {
   position: relative;
-  display: inline-block;
 }
 
 h2:hover .header-link,
@@ -26,10 +25,13 @@ h6:hover .header-link {
   opacity: 1;
 }
 
-a.anchor {
+h2:before, h3:before, h4:before {
+  content: '';
   display: block;
-  height: 94px;
-  margin-top: -94px;
+
+  margin-top: -108px;
+  padding-bottom: 108px;
+
   visibility: hidden;
 }
 
diff --git a/source/download.html b/source/download.html
index 18dead5..65c543d 100644
--- a/source/download.html
+++ b/source/download.html
@@ -4,7 +4,6 @@ title: Download a Release
 ---
 
 <h1>Download a Release of Apache Struts</h1>
-<a class="anchor" name="download"></a>
 
 <p>
   The Apache Struts web framework is a free open-source solution for creating
@@ -17,8 +16,7 @@ title: Download a Release
   main distribution directory.
 </p>
 
-<h2>Mirror</h2>
-<a class="anchor" name="mirror"></a>
+<h2 id="mirror">Mirror</h2>
 
 <p>
   [if-any logo]
@@ -59,11 +57,9 @@ title: Download a Release
     mirrors.</a>
 </p>
 
-<h1>Full Releases</h1>
-<a class="anchor" name="struts-ga"></a>
+<h2 id="struts-ga">Full Releases</h2>
 
-<a class="anchor" name="struts{{ site.current_version_short }}"></a>
-<h2>Struts {{ site.current_version }}</h2>
+<h3 id="struts{{ site.current_version_short }}">Struts {{ site.current_version 
}}</h3>
 
 <p>
   <a href="http://struts.apache.org/";>Apache Struts {{ site.current_version 
}}</a> is an elegant, extensible
@@ -139,8 +135,7 @@ title: Download a Release
 
 </ul>
 
-<a class="anchor" name="struts-23x"></a>
-<h2>Struts 2.3.34</h2>
+<h3 id="struts-23x">Struts 2.3.34</h3>
 
 <ul>
   <li>
@@ -209,8 +204,7 @@ title: Download a Release
 
 </ul>
 
-<a class="anchor" name="struts-extras"></a>
-<h2>Struts Extras</h2>
+<h3 id="struts-extras">Struts Extras</h3>
 
 <ul>
   <li>
@@ -271,14 +265,12 @@ title: Download a Release
 
 </ul>
 
-<a class="anchor" name="prior-releases"></a>
-<h2>Prior releases</h2>
+<h2 id="prior-releases">Prior releases</h2>
 <p>
   If you are looking for other versions than above please check <a 
href="http://archive.apache.org/dist/struts/";>the Apache Archive</a> site.
 </p>
 
-<h2>Struts 1.3.10</h2>
-<a class="anchor" name="struts1310"></a>
+<h3 id="struts1310">Struts 1.3.10</h3>
 
 <p>
   <a href="http://struts.apache.org/1.3.10/index.html";>Struts 1.3.10 - EOL</a>
@@ -345,14 +337,12 @@ title: Download a Release
 
 </ul>
 
-<h2>Older Releases</h2>
-<a class="anchor" name="strutsarchive"></a>
+<h2 id="strutsarchive">Older Releases</h2>
 <p>
   Older versions of Struts are available from the <a 
href="http://archive.apache.org/dist/struts/";>Archive Site.</a>
 </p>
 
-<h1>Verify the integrity of the files</h1>
-<a class="anchor" name="verify"></a>
+<h2 id="verify">Verify the integrity of the files</h2>
 
 <p>
   We recommend that you verify the integrity of the downloaded files using the 
PGP or MD5 signatures.
diff --git a/source/downloads.html b/source/downloads.html
index 4cb8809..bf0db1b 100644
--- a/source/downloads.html
+++ b/source/downloads.html
@@ -87,8 +87,7 @@ title: Releases
   <a href="kickstart.html#releases"><strong>Why are some version numbers 
missing?</strong></a>
 </p>
 
-<h1>Prior Releases</h1>
-<a class="anchor" name="PriorReleases"></a>
+<h2 id="prior-releases">Prior Releases</h2>
 
 <p>
   As a courtesy, we retain archival copies of the website for releases that 
initially were considered
@@ -1382,7 +1381,7 @@ title: Releases
   for a release locally, so as to conserve bandwidth.
 </p>
 
-<h1>Licensing of Apache Struts Releases</h1>
+<h2>Licensing of Apache Struts Releases</h2>
 <p>
   Apache Struts 2 source code and documentation is
   licensed to the Apache Software Foundation (ASF) under one
diff --git a/source/mail.md b/source/mail.md
index 9f7fab3..7ce4e8b 100644
--- a/source/mail.md
+++ b/source/mail.md
@@ -29,8 +29,6 @@ You can use a web interface as well if you want to post a 
question [https://list
 
 You can read the [ASF 
Mail](http://mail-archives.apache.org/mod_mbox/struts-user) or the [Mark 
Mail](http://markmail.org/list/org.apache.struts.users)
 Archives if you are looking for older discussions. There are many other 
archives out there as well.
-{:.anchor name=archives}
-
 
 If you want to **discuss patches or contribute to Struts** you should 
subscribe to the [developers list](dev-mail.html).
 {:.alert .alert-success}
diff --git a/source/primer.md b/source/primer.md
index 50bf4bd..f9390ba 100644
--- a/source/primer.md
+++ b/source/primer.md
@@ -268,8 +268,6 @@ features to return [JSON](http://json.org), which usually 
fuels AJAX driven webp
 With that it is easily possible to use jQuery or 
[AngularJS](http://www.angularjs.org)
 as a front end layer and even completely discard JSP.
 
-<a class="anchor" name="view_frameworks"></a>
-
 As mentioned, aside from Java Server Pages, there are several other
 presentation technologies available to Struts:
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@struts.apache.org" <commits@struts.apache.org>'].

Reply via email to