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

Add viewport meta in head #32

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Add viewport meta in head #32

merged 1 commit into from
Aug 21, 2023

Conversation

cedk
Copy link
Contributor

@cedk cedk commented Aug 19, 2023

It provides a better support for mobile device.

Copy link
Owner

@mgedmin mgedmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@@ -571,6 +572,7 @@ def head(self, title, prev=('', ''), index=('', ''), next=('', ''),
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=%(charset)s" />
<meta name="viewport" content="width=device-width, initial-scale=1">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, XHTML style should be using /> for standalone tags.

(I'm not sure I care, XHTML is dead.)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I fixed it after merging in the end.)

@mgedmin mgedmin merged commit 962983b into mgedmin:master Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants