Files
pidcodes.github.com/_layouts/pid.html
Peter Newman 6c97d07e53 Use the original orgpath URL (#198)
* 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
2016-12-01 10:35:26 +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>