[gimp-web/testing: 11/11] Merge branch 'downloads-templated' into testing



commit 174f282793c730d42609b78a56c7f0e31de88094
Merge: 60d1254 a6f59bb
Author: Pat David <patdavid gmail com>
Date:   Mon Jul 25 14:04:49 2016 -0500

    Merge branch 'downloads-templated' into testing

 GIMP_VERSIONS                           |  114 +++++++++
 content/downloads/index.md              |  374 +---------------------------
 pelicanconf.local.py                    |   39 +++-
 plugins/gimp_mirrors/gimp_mirrors.py    |   55 +++--
 themes/newgimp/templates/downloads.html |  418 +++++++++++++++++++++++++++++++
 themes/newgimp/templates/page.html      |    4 +-
 6 files changed, 616 insertions(+), 388 deletions(-)
---
diff --cc content/downloads/index.md
index 423f591,93cb203..5faf00f
--- a/content/downloads/index.md
+++ b/content/downloads/index.md
@@@ -1,374 -1,15 +1,10 @@@
  Title: Downloads
  Date: 2015-08-14T14:18:56-05:00
  Author: Pat David
+ Template: downloads
 -GIMP_VERSION_STABLE_MACOS: 2.8.16
 -GIMP_VERSION_STABLE_WINDOWS: 2.8.18
 -GIMP_VERSION_STABLE_POSTFIX_MACOS: -1
 -GIMP_VERSION_STABLE_POSTFIX_WINDOWS: 
  
+ The actual page content for /downloads/ has been moved into its own template
 -file at `./themes/newgimp/templates/downloads/html`.  This is so we can now
 -use Jinja variables on the page such as the ones defined above: GIMP_VERSION_*.
++file at `./themes/newgimp/templates/downloads/html`.
  
- <figure>
- <img src="downloadsplash-aryeom.jpg" alt="Download Splash Image courtesy of Areyom" />
- </figure>
- 
- ## Current Stable Version
- The current stable release of GIMP is **2.8.18** (2016-07-14).
- 
- <div class="OSTEST" markdown="1">
- We think your OS is 
- <span id="pOSTEST">
- Well, we don't actually know.  
- Either Javascript is disabled, or I am not working quite right...  
- So I am showing you all the options.  
- </span>  
- 
- <p id='others'>
- Show downloads for 
- <span class="show_links" id='os_linux'>GNU/Linux</span>&nbsp;| 
- <span class="show_links" id='os_mac'>OS&nbsp;X</span>&nbsp;| 
- <span class="show_links" id='os_win'>Microsoft&nbsp;Windows</span>&nbsp;| 
- <span class="show_links" id='os_all'>All</span>
- </p>
- 
- </div>
- 
- <div id='linux' class="os linux" markdown='1'>
- ## GIMP for Unix-like systems
- 
- It's very likely your Unix-like system such as a GNU/Linux distribution already comes with a GIMP package. 
It is a preferred method of installing GIMP, as the distribution maintainers take care of all the 
dependencies and bug fix updates. Please note that many distros decide to pin a specific version of GIMP to 
their releases.
- 
- GIMP can also run on Solaris and is available for the BSD family of systems such as FreeBSD and OpenBSD.
- 
- Please refer to the documentation for your Unix-like system on the installation of software.
- 
- </div>
- 
- 
- <div id='mac' class="os mac" markdown="1">
- ## GIMP for Mac OS X
- 
- <span class='win-button' id='osx-torrent'>
- <a href="//download.gimp.org/pub/gimp/v2.8/osx/gimp-2.8.18-x86_64.dmg.torrent">
-     Download GIMP&nbsp;2.8.18<br/>
-     via BitTorrent
- </a>
- </span>
- <span class='win-button'>
- <a href="//download.gimp.org/mirror/pub/gimp/v2.8/osx/gimp-2.8.18-x86_64.dmg">
-     Download GIMP&nbsp;2.8.18<br/>
-     directly
- </a>
- </span>
- 
- <small markdown=1>
- The download links above will attempt to download GIMP from one of our trusted mirror servers.
- If the mirrors do not work or you would rather download directly from our server, you can get the [direct 
download here][osx direct].
- </small>
- 
- [osx direct]: //download.gimp.org/pub/gimp/v2.8/osx/
- 
- 
- Since the 2.8.2 version, GIMP runs on OSX natively. No X11 environment is required.
- 
- ### Native build
- 
- The official GIMP 2.8 DMG installer (linked above) is a stock GIMP build without any add-ons. It works on 
OS X 10.6 Snow Leopard and later. Just open the downloaded DMG and drag and drop GIMP into your 
"Applications" folder.
- 
- The MD5 hash sum for `gimp-2.8.18-x86_64.dmg` is:
- <kbd>81c62ee2a2708568a26db1d3c200c4ab</kbd>.
- 
- 
- 
- ### Older Downloads
- Previous installers for OSX can be found here: 
[download.gimp.org](//download.gimp.org/mirror/pub/gimp/v2.8/osx/).
- 
- 
- 
- ### Macports
- A (easy?) way to compile and install GIMP and other great [Free 
software](http://www.gnu.org/philosophy/free-sw.html) on your Mac is by using 
[Macports](http://www.macports.org/). The installer allows you to choose from a large directory of packages. 
To install gimp using Macports, you simply do `sudo port install gimp` once you have Macports installed.
- 
- Disclaimer: we have not investigated if it's feasible to build GIMP 2.8 from Macports. The [GIMP port 
file](https://trac.macports.org/browser/trunk/dports/graphics/gimp/Portfile) mentions 2.8.10, and appears to 
be maintained, however.
- 
- * [Download Macports](http://macports.org/)
- 
- 
- 
- ### Homebrew
- Homebrew is similar to Macports and provides packages (aka formulas) to install, either by compiling them 
from source or by using pre-made binaries. While there appears to be no formula for GIMP itself, there are 
reports that all dependencies are available. This may help to build GIMP from source.
- 
- * [Download Homebrew](http://brew.sh/)
- 
- 
- 
- ### Fink
- Fink is a package repository that offer mostly precompiled binaries. It provides the apt-get command known 
to e.g. Debian and Ubuntu users, and installing GIMP is as easy as `sudo apt-get install gimp` once you have 
installed the [Fink installer](http://www.finkproject.org/download/index.php).  
- If there's no binary package, then `fink install gimp` will compile GIMP from source.
- 
- Disclaimer: we haven't been able to determine if it is possible to install or build GIMP 2.8 from Fink. 
GIMP 2.6.12 appears to be the most recent [GIMP 
package](http://pdb.finkproject.org/pdb/browse.php?summary=gimp) that is [offered 
there](http://pdb.finkproject.org/pdb/package.php/gimp2).
- 
- * [Download Fink](http://www.finkproject.org/)
- 
- </div>
- 
- 
- 
- <div id='win' class="os win" markdown="1">
- ## GIMP for Windows
- 
- <span class='win-button' id='win-torrent'>
- <a href="//download.gimp.org/pub/gimp/v2.8/windows/gimp-2.8.18-setup.exe.torrent" title="Download GIMP via 
BitTorrent" id="win-torrent-link">
-     Download GIMP&nbsp;2.8.18<br/>
-     via BitTorrent
- </a>  
- </span>
- <span class='win-button'>
- <a href="//download.gimp.org/mirror/pub/gimp/v2.8/windows/gimp-2.8.18-setup.exe" title="Download GIMP via 
HTTP" id='win-download-link' >
-     Download GIMP&nbsp;2.8.18<br/>
-     directly
- </a>
- </span>
- 
- <small markdown=1>
- The download links above will attempt to download GIMP from one of our trusted mirror servers.
- If the mirrors do not work or you would rather download directly from our server, you can get the [direct 
download here][win direct].
- </small>
- 
- [win direct]: //download.gimp.org/pub/gimp/v2.8/windows/
- 
- These links download the official GIMP installer for Windows (~100MB). 
- The installer contains both 32-bit and 64-bit versions of GIMP, and will automatically use the appropriate 
one.
- 
- BitTorrent is a peer-to-peer file sharing system. It works by downloading GIMP from a distributed network 
of BitTorrent users, and may improve download speed dramatically. 
- Choosing this option will download the torrent file for the GIMP installer. 
- You may need to install a torrent client to make use of this file. <a 
href="//en.wikipedia.org/wiki/BitTorrent" title="BitTorrent on Wikipedia">Learn more...</a>
- 
- ### MD5 Hash Sum
- The MD5 hash sum for `gimp-2.8.18-setup.exe` is: <kbd>510bb11abc72443f431226523fa21b6f</kbd>.
- 
- ### Older Downloads
- Previous installers for Windows can be found here: 
[download.gimp.org](//download.gimp.org/mirror/pub/gimp/v2.8/windows/).
- 
- ### GIMP User Manual
- 
- *   [Chinese 
Simplified](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-zh_CN-setup.exe) 
(24.3 MB)
- *   [Catalan](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-ca-setup.exe) 
(24.2 MB)
- *   [Danish](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-da-setup.exe) 
(24.2 MB)
- *   [Dutch](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-nl-setup.exe) 
(24.3 MB)
- *   [English](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-en-setup.exe) 
(24.2 MB)
- *   [English (United 
Kingdom)](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-en_GB-setup.exe) (24.2 
MB)
- *   [French](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-fr-setup.exe) 
(25.7 MB)
- *   [German](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-de-setup.exe) 
(28.0 MB)
- *   [Greek](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-el-setup.exe) 
(24.0 MB)
- *   [Italian](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-it-setup.exe) 
(30.2 MB)
- *   [Japanese](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-ja-setup.exe) 
(23.6 MB)
- *   [Korean](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-ko-setup.exe) 
(24.9 MB)
- *   [Norwegian 
Nynorsk](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-nn-setup.exe) (20.9 MB)
- *   [Russian](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-ru-setup.exe) 
(24.9 MB)
- *   [Slovenian](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-sl-setup.exe) 
(24.3 MB)
- *   [Spanish](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-es-setup.exe) 
(24.9 MB)
- *   [Swedish](//download.gimp.org/mirror/pub/gimp/help/windows/2.8/2.8.2/gimp-help-2-2.8.2-sv-setup.exe) 
(24.7 MB)
- </div>
- 
- ---
- 
- <div id='source'  markdown="1">
- ## Source for version 2.8 (Stable)
- 
- GIMP releases available from gimp.org and its [mirrors](#mirrors) contain the source code and have to be 
compiled in order to be installed on your system.
- 
- For instructions, how to build GIMP from source code, please see [this page](/source/).
- 
- GIMP 2.8.16 is now available at 
[http://download.gimp.org/mirror/pub/gimp/v2.8/](//download.gimp.org/mirror/pub/gimp/v2.8/). You may want to 
read the [Release Notes for GIMP 2.8](/release-notes/gimp-2.8.html).
- 
- To allow you to check the integrity of the tarballs, here are the MD5 sums of the latest releases:
- 
- **gimp-2.8.18.tar.bz2**
- <kbd>5adaa11a68bc8a42bb2c778fee4d389c</kbd>
- 
- **gimp-2.8.16.tar.bz2**  
- <kbd>30e0a1b7c18b0e3415f4ac54567252ac</kbd>
- 
- **gimp-2.8.14.tar.bz2**  
- <kbd>233c948203383fa078434cc3f8f925cb</kbd>
- 
- **gimp-2.8.12.tar.bz2**  
- <kbd>47fefa240c38cfb1016b57ad6324378d</kbd>
- 
- **gimp-2.8.10.tar.bz2**  
- <kbd>84c964aab7044489af69f7319bb59b47</kbd>
- 
- **gimp-2.8.8.tar.bz2**  
- <kbd>ef2547c3514a1096931637bd6250635a</kbd>
- 
- **gimp-2.8.6.tar.bz2**  
- <kbd>12b3fdf33d1f07ae79b412a9e38b9693</kbd>
- 
- **gimp-2.8.4.tar.bz2**  
- <kbd>392592e8755d046317878d226145900f</kbd>
- 
- **gimp-2.8.2.tar.bz2**  
- <kbd>b542138820ca3a41cbd63fc331907955</kbd>
- 
- **gimp-2.8.0.tar.bz2**  
- <kbd>28997d14055f15db063eb92e1c8a7ebb</kbd>
- 
- 
- GIMP help files are available at 
[http://download.gimp.org/mirror/pub/gimp/help/](//download.gimp.org/mirror/pub/gimp/help/).
- 
- Please consider using one of the mirrors listed below.
- 
- ## Development snapshots
- 
- The current development branch is GIMP 2.9 and will finally lead to the next stable GIMP release 2.10.
- 
- For instructions, how to build GIMP from source code, please see [this page](/source/).
- 
- Nightly builds for Windows are available at [darkrefraction.com](http://nightly.darkrefraction.com/gimp/). 
This is unstable software, please use it at your own risk.
- 
- A detailed list of changes in the development branch is available in 
[git](https://git.gnome.org/cgit/gimp/plain/NEWS).
- 
- GIMP 2.9.4 is now available at 
[http://download.gimp.org/mirror/pub/gimp/v2.9/](//download.gimp.org/mirror/pub/gimp/v2.9/).
- 
- To allow you to check the integrity of the tarballs, here are the MD5 sums of the latest development 
snapshots:
- 
- **gimp-2.9.4.tar.bz2**  
- <kbd>6b3d425a7949110eeb532badedf721f3</kbd>
- 
- **gimp-2.9.2.tar.bz2**  
- <kbd>aa8a846a497e3328c5b7d2fd33f5cf63</kbd>
- 
- </div>
- 
- <div id='mirrors'  markdown="1">
- ## FTP and Web Mirrors
- 
- We had a server move a while back that caused us to lose our existing mirrors (moved from physical to 
virtual server and to an environment that doesn't allow FTP access).
- On the plus side, we are now able to offer rsync access to download.gimp.org.
- 
- If you are running one of the existing GIMP mirrors, or want to create a new one, please [contact 
us](/webmasters.html) to get your rsync credentials.
- 
- <!-- MIRRORS -->
- 
- </div>
- 
- 
- <script src="/js/platform.js"></script>
- 
- <script>
- 
- if ( platform.os.family.indexOf('Win') !== -1 && platform.os.family.indexOf('Phone') == -1 ){
-     // Windows, _not_ Phone
-     document.getElementById('win').style.display = 'block';
-     document.getElementById('mac').style.display = 'none';
-     document.getElementById('linux').style.display = 'none';
-     document.getElementById('pOSTEST').innerHTML = 'Microsoft Windows.';
- }else if ( platform.os.family.indexOf('OS X') !== -1 ){
-     // OS X
-     document.getElementById('win').style.display = 'none';
-     document.getElementById('mac').style.display = 'block';
-     document.getElementById('linux').style.display = 'none';
-     document.getElementById('pOSTEST').innerHTML = 'OS X.';
- }else if ( platform.os.family.indexOf('iOS') !== -1 || platform.os.family.indexOf('Android') !== -1 ){
-     // iOS or Android
-     document.getElementById('pOSTEST').innerHTML = platform.os.family + '.';
-     var nope = "<br/><strong>This platform is not currently supported.</strong>";
-     document.getElementById('pOSTEST').innerHTML += nope;
-     document.getElementById('win').style.display = 'none';
-     document.getElementById('mac').style.display = 'none';
-     document.getElementById('linux').style.display = 'none';
- }else {
-     // Everything else (assuming *nix-type)
-     document.getElementById('pOSTEST').innerHTML = platform.os.family + '.';
-     document.getElementById('win').style.display = 'none';
-     document.getElementById('mac').style.display = 'none';
-     document.getElementById('linux').style.display = 'block';
- }
- 
- function render( os ){
-     switch( this.id ) {
-         case 'os_linux':
-             document.getElementById('linux').style.display = 'block';
-             document.getElementById('win').style.display = 'none';
-             document.getElementById('mac').style.display = 'none';
-             break;
-         case 'os_win':
-             document.getElementById('linux').style.display = 'none';
-             document.getElementById('win').style.display = 'block';
-             document.getElementById('mac').style.display = 'none';
-             break;
-         case 'os_mac':
-             document.getElementById('linux').style.display = 'none';
-             document.getElementById('win').style.display = 'none';
-             document.getElementById('mac').style.display = 'block';
-             break;
-         default:
-             document.getElementById('linux').style.display = 'block';
-             document.getElementById('win').style.display = 'block';
-             document.getElementById('mac').style.display = 'block';
-             break;
-     }
-     return false;
- }
- 
- document.getElementById('os_all').addEventListener("click", render );
- document.getElementById('os_linux').addEventListener("click", render );
- document.getElementById('os_win').addEventListener("click", render );
- document.getElementById('os_mac').addEventListener("click", render );
- </script>
- 
- <style>
- table {
-     max-width: 35rem;
-     margin: 1rem auto;
- }
- td, th {
-     padding: 0 1rem;
- }
- 
- .download-mirrors{
-     word-wrap: break-word;
- }
- 
- @media ( max-width: 40rem ){
-     .download-mirrors dd {
-         margin-left: 0.5rem;
-     }
- }
- 
- .os {
-     display: block;
- }
- 
- #pOSTEST {
-     font-style: italic;
- }
- 
- .show_links {
-     color: #497bad;
-     cursor: pointer;
- }
- 
- .win-button {
-     display: inline-block;
-     border: solid 1px #666;
-     background-color: #f57900;
-     margin: 0.5rem 0;
-     border-radius: 10px;
-     box-shadow: 1px 1px 2px;
-     text-align: center;
-     font-family: Questrial;
-     font-weight: 400;
-     width: 49%;
- }
- 
- #win-torrent, #osx-torrent {
-     background-color: #008080;
- }
- 
- .win-button a {
-     color: white;
-     font-weight: bold;
-     display: inline-block;
-     padding: 1rem;
- }
- 
- .mirrors {
-     display: none;
- }
- </style>
+ If you want to edit the text of the /downloads/ page, please see the above
+ template file.


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