mirror of
https://gh.wpcy.net/https://github.com/TGMPA/TGM-Plugin-Activation.git
synced 2026-07-14 10:56:39 +08:00
Highlights: * Jekyll - Converted the website to use jekyll instead of plain HTML to make working with several pages easier to manage (common headers, navigation, footers etc). - Removed syntax highlighting js and css files in favour of using Jekyll with Pygments. - I've included a number of example files in the `_draft` folder which contain quite detailed instructions on how to use these in the context of Jekyll. * Jekyll/GitHub integration - Changed download links to always point to the last release zip/tar package instead of to the master branch. - Added a 'release archive' with links to the five previous releases. - Added a changelog subsection on the download page which will show the release notes of the last release. - Added contributors list via a js AJAX call to the GitHub API. - All of the above have fall-backs for when this information would not be available. Some of the above use js to inject the information as the TGMPA releases have been added at a later date and the data needs to be sorted and manipulated, which turned out to be impossible to do using Jekyll. * TGMPA organization - Changed references to the old repo location to the new one. - Added the new logo to the page. - Created a favicon based on the new logo. * 2.5.0 release - Changed references to 'pre-packaged' plugins to 'bundled'. - Updated the example.php code to the current version in `develop`, renamed the API section to `Configuration` and moved it to a separate page. - Updated the plugin settings and configuration option sections and changed the layout to a much more readable table format. - Added contributing section under authors. - Added roadmap page containing info on the v3.0 roadmap. - Added FAQ page with sub-pages. - Updated two of the four screenshots. * Other: - Renamed 'Dependencies' section to 'Requirements'. - Added current version number to the page header. - Added last update date of the site in the page footer. - Added Twitter follow and Tweet buttons. - Added blog section (currently unused - an example of what it would look like when used can be seen in my fork http://jrfnl.github.io/TGM-Plugin-Activation/ ). - Added 404 page. - Lots of small css tweaks. - Added marked.js library to convert release notes from markdown to html. - Added tgmpa.js file which handles the redirects and the injecting of GH releases info. The minified version will be used on the live site. The non-minified version will automatically be used when in a test environment. - Added robots.txt. - Added Atom feed for blog. - Added sitemap.xml + xml-sitemap.xsl - this does *not* use the Jekyll sitemaps plugin as it's not flexible enough. Sitemap code inspired by http://davidensinger.com/2013/11/building-a-better-sitemap-xml-with-jekyll/ - Added appropriate redirects for links from the old site using js (as you can't redirect #hashes through .htaccess). - Added separate contributing instructions for the gh-pages branch. - Added travis-ci build testing for jekyll. Once this branch has been merged, the FAQ and removal instructions wiki pages should be removed.
28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
<nav id="navigation" role="navigation">
|
|
<ul>
|
|
{% for p in site.pages %}
|
|
{% if p.anchor == "home" %}
|
|
<li>
|
|
<a href="{{ p.url | remove: 'index.html' | prepend: site.tgmpa.url }}" {% if p.url == page.url %}class="active"{% endif %}>{% if p.menutitle %}{{ p.menutitle }}{% elsif p.title %}{{ p.title }}{% endif %}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
|
|
{% for p in site.pages %}
|
|
{% unless p.menu == false or p.anchor == "home" %}
|
|
{% if p.needsposts == true and site.posts %}
|
|
{% unless site.posts.size == 0 or site.posts.empty? %}
|
|
<li>
|
|
<a href="{{ p.url | remove: 'index.html' | prepend: site.tgmpa.url }}" {% if p.url == page.url %}class="active"{% endif %}>{% if p.menutitle %}{{ p.menutitle }}{% elsif p.title %}{{ p.title }}{% endif %}</a>
|
|
</li>
|
|
{% endunless %}
|
|
{% else %}
|
|
<li>
|
|
<a href="{{ p.url | remove: 'index.html' | prepend: site.tgmpa.url }}" {% if p.url == page.url %}class="active"{% endif %}>{% if p.menutitle %}{{ p.menutitle }}{% elsif p.title %}{{ p.title }}{% endif %}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endunless %}
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|