-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes: Refactor ccREL namespace(ns.html) from XHTML+RDFa (XHTML 4) to HTML+RDFa (HTML 5) and Extend Base Template #498
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start!
Please update it to better use the template system.
templates/ns.html
Outdated
<p class="box"> | ||
<a href="/licenses/by/4.0/" rel="license"> | ||
<img alt="Creative Commons License" height="31" src="https://licensebuttons.net/l/by/4.0/88x31.png" width="88"/> | ||
<img alt="Creative Commons License" height="31" src="https://licensebuttons.net/l/by/4.0/88x31.png" width="88"> | ||
</a> | ||
Except where otherwise | ||
<a class="subfoot" href="/policies#license"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This content can be removed. It duplicates the footer now that the base template is used.
templates/ns.html
Outdated
<!DOCTYPE html> | ||
<html lang="en" | ||
xmlns:cc="http://creativecommons.org/ns#" | ||
xmlns:dcterms="http://purl.org/dc/terms/" | ||
xmlns:owl="http://www.w3.org/2002/07/owl#" | ||
xmlns:rddl="http://www.rddl.org/" | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title> | ||
Describing Copyright in RDF - Creative Commons Rights Expression Language | ||
</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This duplicates base.html
. The content block ({% block content %}
) musn't contain <!DOCTYPE>
, <html>
, <head>
, nor <body>
.
The template base.html
template needs to be updated to support custom ` attributes.
The title should be in a title block ({% block title %}Describing Copyright in RDF - Creative Commons Rights Expression Language{% endblock %}
).
Hi @TimidRobot , I've addressed the requested changes. Please let me know if there's anything else to improve! |
Fixes
Description
This PR refactors the
ns.html
template for the (ccREL) namespace page to achieve the following:HTML5+RDFa Migration:
Base Template Integration:
ns.html
file now extendsbase.html
, ensuring the inclusion of a consistent header and footer across the site.Technical details
<img/>, <br/>
to<img>, <br>
.<rddl:resource>
into<section>
.<span>
tag is opened and immediately closed with</span>
.Screenshots
Checklist
Update index.md
).main
ormaster
).visible errors.
Developer Certificate of Origin
For the purposes of this DCO, "license" is equivalent to "license or public domain dedication," and "open source license" is equivalent to "open content license or public domain dedication."
Developer Certificate of Origin