Author: sebb Date: Sun Apr 29 12:08:16 2018 New Revision: 1830506 URL: http://svn.apache.org/viewvc?rev=1830506&view=rev Log: Move common HTML into include files
Added: attic/site-jekyll/src/_includes/page_end.html (with props) attic/site-jekyll/src/_includes/page_start.html (with props) Removed: attic/site-jekyll/src/_includes/footer.html attic/site-jekyll/src/_includes/menu.html Modified: attic/site-jekyll/src/_layouts/project.html attic/site-jekyll/src/_plugins/generate_projects.rb attic/site-jekyll/src/index.html attic/site-jekyll/src/process.html attic/site-jekyll/src/resolution.html Added: attic/site-jekyll/src/_includes/page_end.html URL: http://svn.apache.org/viewvc/attic/site-jekyll/src/_includes/page_end.html?rev=1830506&view=auto ============================================================================== --- attic/site-jekyll/src/_includes/page_end.html (added) +++ attic/site-jekyll/src/_includes/page_end.html Sun Apr 29 12:08:16 2018 @@ -0,0 +1,38 @@ + </div> + <div class="column span-8 last"> + <div class="block"> + <div class="nav column span-11"> + <div> + <div class="menuheader">The Apache Attic</div> + <ul> + <li><a href="{{ page.myrelativeurl }}index.html">Home</a></li> + <li><a href="{{ page.myrelativeurl }}process.html">Process</a></li> + <li><a href="http://issues.apache.org/jira/browse/ATTIC">Process tracking</a></li> + <li><a href="https://whimsy.apache.org/board/minutes/Attic.html">Board Minutes</a></li> + <li><a href="http://www.apache.org/licenses/">License</a></li> + <li><a href="http://www.apache.org/security/">Security</a></li> + </ul> + <div class="menuheader">Related Apache Links</div> + <ul> + <li><a href="http://www.apache.org/">Foundation</a></li> + <li><a href="http://www.apache.org/foundation/sponsorship.html">Donate</a></li> + <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li> + <li><a href="http://incubator.apache.org/">Incubator</a></li> + <li><a href="http://apachecon.com/">ApacheCon</a></li> + </ul> + </div> + </div> + <div class="nav column prepend-1 span-12 last"> + {% include project.list %} + </div> + </div> + </div> + <div class="column span-24 footer"> + <hr/> + <p>Copyright © 2009-2018 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/> + Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p> + </div> + </div> + </div> +</body> +</html> Propchange: attic/site-jekyll/src/_includes/page_end.html ------------------------------------------------------------------------------ svn:eol-style = native Added: attic/site-jekyll/src/_includes/page_start.html URL: http://svn.apache.org/viewvc/attic/site-jekyll/src/_includes/page_start.html?rev=1830506&view=auto ============================================================================== --- attic/site-jekyll/src/_includes/page_start.html (added) +++ attic/site-jekyll/src/_includes/page_start.html Sun Apr 29 12:08:16 2018 @@ -0,0 +1,51 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <!-- + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + This file is generated from XML source: DO NOT EDIT! + XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + --> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <link rel="stylesheet" href="{{ page.myrelativeurl }}style/compressed.css" type="text/css" media="screen, projection"/> + <link rel="stylesheet" href="{{ page.myrelativeurl }}style/style.css" type="text/css" media="screen, projection"/> + <link rel="stylesheet" href="{{ page.myrelativeurl }}style/attic.css" type="text/css" media="screen, projection"/> + <!--[if IE]><link rel="stylesheet" href="{{ page.myrelativeurl }}style/ie.css" type="text/css" media="screen, projection"/><![endif]--> + <meta name="author" content="The Apache Software Foundation" /><meta name="email" content="general.AT.attic.apache.DOT.org" /> + <title>{{ page.title }} - Apache Attic</title> + + </head> + <body id="sub"> + <div class="container"> + <hr class="space col"/> + <div class="block"> + <div class="column span-24"> + <div id="header"> + <!-- Add 'default' header section here. --> + <h1>{{ page.title }}</h1> + </div> + </div> + </div> + <hr/> + <div class="block content"> + <div class="column span-15 colborder"> + \ No newline at end of file Propchange: attic/site-jekyll/src/_includes/page_start.html ------------------------------------------------------------------------------ svn:eol-style = native Modified: attic/site-jekyll/src/_layouts/project.html URL: http://svn.apache.org/viewvc/attic/site-jekyll/src/_layouts/project.html?rev=1830506&r1=1830505&r2=1830506&view=diff ============================================================================== --- attic/site-jekyll/src/_layouts/project.html (original) +++ attic/site-jekyll/src/_layouts/project.html Sun Apr 29 12:08:16 2018 @@ -1,59 +1,9 @@ --- -# define relative url to top level so menu.html and project.list can generate the correct relative URLs +# define relative url to top level so includes can generate the correct relative URLs myrelativeurl: ../ +# Note: title is defined in the generate_projects plugin --- -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - This file is generated from XML source: DO NOT EDIT! - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - --> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - <link rel="stylesheet" href="../style/compressed.css" type="text/css" media="screen, projection"/> - <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen, projection"/> - <link rel="stylesheet" href="../style/attic.css" type="text/css" media="screen, projection"/> - <!--[if IE]><link rel="stylesheet" href="../style/ie.css" type="text/css" media="screen, projection"/><![endif]--> - <meta name="author" content="The Apache Software Foundation" /><meta name="email" content="general.AT.attic.apache.DOT.org" /> - <title>Apache {{ page.json.name }} - Apache Attic</title> - - </head> - <body id="sub"> - <div class="container"> - <hr class="space col"/> - <div class="block"> - <div class="column span-24"> - <div id="header"> - <!-- Add 'default' header section here. --> - <h1>Apache {{ page.json.name }}</h1> - </div> - </div> - </div> - <hr/> - <div class="block content"> - <div class="column span-15 colborder"> - -<div class="section-content"> +{% include page_start.html %} {%- comment %} Variables used by the template (page.json.*): @@ -78,6 +28,7 @@ wiki wikiname {%- endcomment %} +<div class="section-content"> <p>{%- if page.json.website != '' %}<a href="{{ page.json.website }}">Apache {{ page.json.name }}</a>{% else %}Apache {{ page.json.name }}{% endif %} moved into the Attic in {{ page.json.retired }}. {{ page.json.description }}</p> @@ -154,22 +105,4 @@ wikiname {%- endfor %} {%- endif %} </div> - </div> - <div class="column span-8 last"> - <div class="block"> - <div class="nav column span-11"> - {% include menu.html %} - </div> - <div class="nav column prepend-1 span-12 last"> - {% include project.list %} - </div> - </div> - </div> - <div class="column span-24 footer"> - {% include footer.html %} - </div> - </div> - </div> -</body> -</html> - +{% include page_end.html %} Modified: attic/site-jekyll/src/_plugins/generate_projects.rb URL: http://svn.apache.org/viewvc/attic/site-jekyll/src/_plugins/generate_projects.rb?rev=1830506&r1=1830505&r2=1830506&view=diff ============================================================================== --- attic/site-jekyll/src/_plugins/generate_projects.rb (original) +++ attic/site-jekyll/src/_plugins/generate_projects.rb Sun Apr 29 12:08:16 2018 @@ -90,6 +90,9 @@ module Jekyll prj['scmURL'] = prj['scm'] end + # Set up the page title for use by the includes + self.data['title'] = "Apache #{prj['name']}" + # Create a new variable. This is used by the template to access the page data # N.B. the variable name must agree with that used by the template # Also it should not be one of the Jekyll page variable names. Modified: attic/site-jekyll/src/index.html URL: http://svn.apache.org/viewvc/attic/site-jekyll/src/index.html?rev=1830506&r1=1830505&r2=1830506&view=diff ============================================================================== --- attic/site-jekyll/src/index.html (original) +++ attic/site-jekyll/src/index.html Sun Apr 29 12:08:16 2018 @@ -1,59 +1,10 @@ --- # TODO: convert to markdown -# define relative url to top level so menu.html and project.list can generate the correct relative URLs +# define relative url to top level so includes can generate the correct relative URLs myrelativeurl: '' +title: The Apache Attic --- -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - This file is generated from XML source: DO NOT EDIT! - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - --> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - <link rel="stylesheet" href="style/compressed.css" type="text/css" media="screen, projection"/> - <link rel="stylesheet" href="style/style.css" type="text/css" media="screen, projection"/> - <link rel="stylesheet" href="style/attic.css" type="text/css" media="screen, projection"/> - <!--[if IE]><link rel="stylesheet" href="style/ie.css" type="text/css" media="screen, projection"/><![endif]--> - <meta name="author" content="The Apache Software Foundation" /><meta name="email" content="general.AT.attic.apache.DOT.org" /> - <title>The Apache Attic - Apache Attic</title> - - </head> - <body id="sub"> - <div class="container"> - <hr class="space col"/> - <div class="block"> - <div class="column span-24"> - <div id="header"> - <!-- Add 'default' header section here. --> - <h1>The Apache Attic</h1> - </div> - </div> - </div> - <hr/> - <div class="block content"> - <div class="column span-15 colborder"> - +{% include page_start.html %} <div class="section-content"> <p> The Apache Attic was created in @@ -132,22 +83,4 @@ myrelativeurl: '' <div class="section-content"> <p>The Apache Incubator project is the entry path into The Apache Software Foundation for projects and codebases wishing to become part of the Foundation's efforts. Not all projects 'graduate' out of the Incubator and are instead retired. Those retired projects may be found on the Incubator's <a href="http://incubator.apache.org/projects/index.html#retired">Project page</a>. </p> </div> - </div> - <div class="column span-8 last"> - <div class="block"> - <div class="nav column span-11"> - {% include menu.html %} - </div> - <div class="nav column prepend-1 span-12 last"> - {% include project.list %} - </div> - </div> - </div> - <div class="column span-24 footer"> - {% include footer.html %} - </div> - </div> - </div> -</body> -</html> - +{% include page_end.html %} Modified: attic/site-jekyll/src/process.html URL: http://svn.apache.org/viewvc/attic/site-jekyll/src/process.html?rev=1830506&r1=1830505&r2=1830506&view=diff ============================================================================== --- attic/site-jekyll/src/process.html (original) +++ attic/site-jekyll/src/process.html Sun Apr 29 12:08:16 2018 @@ -1,59 +1,10 @@ --- # TODO: convert to markdown -# define relative url to top level so menu.html and project.list can generate the correct relative URLs +# define relative url to top level so includes can generate the correct relative URLs myrelativeurl: '' +title: Moving a project to the Attic --- -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - This file is generated from XML source: DO NOT EDIT! - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - --> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - <link rel="stylesheet" href="style/compressed.css" type="text/css" media="screen, projection"/> - <link rel="stylesheet" href="style/style.css" type="text/css" media="screen, projection"/> - <link rel="stylesheet" href="style/attic.css" type="text/css" media="screen, projection"/> - <!--[if IE]><link rel="stylesheet" href="style/ie.css" type="text/css" media="screen, projection"/><![endif]--> - <meta name="author" content="The Apache Software Foundation" /><meta name="email" content="general.AT.attic.apache.DOT.org" /> - <title>Moving a project to the Attic - Apache Attic</title> - - </head> - <body id="sub"> - <div class="container"> - <hr class="space col"/> - <div class="block"> - <div class="column span-24"> - <div id="header"> - <!-- Add 'default' header section here. --> - <h1>Moving a project to the Attic</h1> - </div> - </div> - </div> - <hr/> - <div class="block content"> - <div class="column span-15 colborder"> - +{% include page_start.html %} <div class="section-content"> <p>At some point a project will vote to join the Attic. The following defines a process to move that project into the Attic and gently close it down. </p> @@ -269,22 +220,4 @@ on behalf of the Apache Attic and the no <p>It's important to include the boilerplate from the project's site so people know what we're talking about. </p> </div> - </div> - <div class="column span-8 last"> - <div class="block"> - <div class="nav column span-11"> - {% include menu.html %} - </div> - <div class="nav column prepend-1 span-12 last"> - {% include project.list %} - </div> - </div> - </div> - <div class="column span-24 footer"> - {% include footer.html %} - </div> - </div> - </div> -</body> -</html> - +{% include page_end.html %} Modified: attic/site-jekyll/src/resolution.html URL: http://svn.apache.org/viewvc/attic/site-jekyll/src/resolution.html?rev=1830506&r1=1830505&r2=1830506&view=diff ============================================================================== --- attic/site-jekyll/src/resolution.html (original) +++ attic/site-jekyll/src/resolution.html Sun Apr 29 12:08:16 2018 @@ -1,59 +1,10 @@ --- # TODO: convert to markdown -# define relative url to top level so menu.html and project.list can generate the correct relative URLs +# define relative url to top level so includes can generate the correct relative URLs myrelativeurl: '' +title: Board Resolution to move to the Attic --- -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - This file is generated from XML source: DO NOT EDIT! - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - --> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> - <link rel="stylesheet" href="style/compressed.css" type="text/css" media="screen, projection"/> - <link rel="stylesheet" href="style/style.css" type="text/css" media="screen, projection"/> - <link rel="stylesheet" href="style/attic.css" type="text/css" media="screen, projection"/> - <!--[if IE]><link rel="stylesheet" href="style/ie.css" type="text/css" media="screen, projection"/><![endif]--> - <meta name="author" content="The Apache Software Foundation" /><meta name="email" content="general.AT.attic.apache.DOT.org" /> - <title>Board Resolution to move to the Attic - Apache Attic</title> - - </head> - <body id="sub"> - <div class="container"> - <hr class="space col"/> - <div class="block"> - <div class="column span-24"> - <div id="header"> - <!-- Add 'default' header section here. --> - <h1>Board Resolution to move to the Attic</h1> - </div> - </div> - </div> - <hr/> - <div class="block content"> - <div class="column span-15 colborder"> - +{% include page_start.html %} <div class="section-content"> <p>The following is a sample resolution to move a project to the Apache Attic. A project's chair should include this in the agenda for the next board meeting. </p> @@ -81,22 +32,4 @@ myrelativeurl: '' RESOLVED, that the Apache {PROJECT} PMC is hereby terminated. </pre> </div> - </div> - <div class="column span-8 last"> - <div class="block"> - <div class="nav column span-11"> - {% include menu.html %} - </div> - <div class="nav column prepend-1 span-12 last"> - {% include project.list %} - </div> - </div> - </div> - <div class="column span-24 footer"> - {% include footer.html %} - </div> - </div> - </div> -</body> -</html> - +{% include page_end.html %}