Files
pidcodes.github.com/_layouts/pid.html
Peter Newman b37cbc3b0f Try making liquid strict (#232)
* Remove errant .DS_Store file

* Ignore .DS_Store

* Create a list of organisations

* Add an org list

* Show number of PIDs per org

* Fix HTML issue, sort orgs by title

* Try and fix the PID count

* Try and fix issues

* Try again to fix issues

* Try yet again to fix issues

* Correct the urlpart

* Change to sort_natural, minor code tidy

* Try and fix the sorting

* Try again to fix the sorting

* Remove debugging

* Add a link to orgs page

* Install dependencies for Travis

* Create .travis.yml

* Add the Travis script

* Update the Ruby version

* Bump the Ruby version some more

* Switch back to the documented version

* Add the exclude

* Update based on https://github.com/jekyll/jekyll/pull/5413

* Add github-pages Gem

* Add missing gems

* Add redcarpet

* Switch to tasks so we can run multiple CI tasks

* Switch to tasks

* Fix the matrix

* More matrix fixing

* Turn on more htmlproofer options

* Make the check less strict

* Don't bother complaining about extra jekyll tags

* Escape HTML entities

* Fix the email link

* Fix the link within the 404 page!

* Escape more HTML entities

* Remove an invalid site URL

* Cache ruby bundles

* Escape even more HTML entities

* Escape yet more HTML entities

* Escape more HTML entities and switch to a div

* Try and fix the errant paragraph item

* Add a Travis badge to the readme

* Update Gemfile

Adapted from https://github.com/lunaryorn/lunaryorn.github.io

* Update _config.yml

* Add some more checks to Travis

* Report GH Pages versions

* Tidy up, add redcarpet back in

* Try and stop the spurious paragraph tags

* Check Open Graph

* Make pid.codes an internal domain

* Ensure we've got the fixed html-proofer

* Use the original orgpath URL

* Ignore some broken URLs

* Try and fix the syntax issue

* Third try at fixing syntax

* Ignore another broken URL

* Alternative ignore of a specific URL

* Ignore the remaining URLs

* Update Instant Infrastructure URL

* Remove a redundant URL ignore

* Update some broken links

* Update links

* Remove more resolved links

* Force links in kramdown

* Format more links for kramdown

* Make more links clickable/add more site URLs

* Fix more URLs

* Fix some more URLs and ignore some others

* Fix the remaining broken link

* Fix the URL I missed

* Make Jekyll liquid processing strict, make general Jekyll processing verbose

* Try and fix the Liquid warning

* Try and fix more Liquid errors

* Fix more Liquid errors

* Switch to warn until we've fixed all the errors

* Switch back, warn doesn't actually log the errors :(

* Fix another error

* Revert and try another fix as it just breaks it

* Go verbose

* Revert and try another fix

* Revert and fix

* Assign and fix
2017-03-22 17:59:09 +00:00

48 lines
1.6 KiB
HTML

{% include data.html %}
{% capture orgpath %}/org/{{page.owner}}/{% endcapture %}
{% assign org = orgs|where:"url",orgpath|first %}
{% assign urlparts = page.url|split:"/" %}
{% assign vid = urlparts[1] %}
{% assign pid = urlparts[2] %}
<!DOCTYPE html>
<html>
{% capture title %}{{vid}}/{{pid|upcase}} {{page.title}}{% endcapture %}
{% include head.html title=title %}
<body class="{% if site.animated %}animated fade-in-down{% endif %}">
<div class="site-wrap">
{% include header.html %}
<div class="post p2 p-responsive wrap" role="main">
<div class="measure">
<div class="post">
<header class="post-header">
<h1 class="h2">
<a href="/{{vid}}/">{{vid|upcase}}</a> /
{{pid|upcase}} -
{{page.title|xml_escape}}
</h1>
</header>
<article class="post-content">
<table>
<tr><th>VID</th><td>0x{{vid|upcase}}</td></tr>
<tr><th>PID</th><td>0x{{pid|upcase}}</td></tr>
<tr><th>Owner</th><td><a href="{{orgpath}}">{{org.title|xml_escape}}</a></td></tr>
<tr><th>License</th><td>{{page.license|xml_escape}}</td></tr>
{% if page.site %}
<tr><th>Site</th><td><a href="{{page.site}}">{{page.site|xml_escape}}</a></td></tr>
{% endif %}
{% if page.source %}
<tr><th>Source</th><td><a href="{{page.source}}">{{page.source|xml_escape}}</a></td></tr>
{% endif %}
</table>
{{ content }}
</article>
</div>
</div>
</div>
</div>
{% include footer.html %}
</body>
</html>