Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rahulptl165
Copy link

@rahulptl165 rahulptl165 commented Jan 6, 2025

Fixes

Description

This PR refactors the ns.html template for the (ccREL) namespace page to achieve the following:

  1. HTML5+RDFa Migration:

    • Updated the template from XHTML+RDFa (XHTML 4) to HTML5+RDFa for modern web standards compliance.
  2. Base Template Integration:

    • The ns.html file now extends base.html, ensuring the inclusion of a consistent header and footer across the site.

Technical details

  • Replaced <img/>, <br/> to <img>, <br>.
  • Changed the DOCTYPE declaration from XHTML to HTML5.
  • convert <rddl:resource> into <section>.
  • ensure the empty <span> tag is opened and immediately closed with </span>.

Screenshots

Screenshot 2025-01-07 021108

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main or master).
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no
    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
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@rahulptl165 rahulptl165 requested review from a team as code owners January 6, 2025 21:34
@rahulptl165 rahulptl165 requested review from TimidRobot and Shafiya-Heena and removed request for a team January 6, 2025 21:34
@TimidRobot TimidRobot self-assigned this Jan 8, 2025
Copy link
Member

@TimidRobot TimidRobot left a 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.

Comment on lines 445 to 450
<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">
Copy link
Member

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.

Comment on lines 3 to 17
<!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>
Copy link
Member

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 %}).

@rahulptl165
Copy link
Author

Hi @TimidRobot , I've addressed the requested changes. Please let me know if there's anything else to improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

[Feature] Refactor ns (ccREL namespace) template as HTML5+RDFa
2 participants