Skip to content

Added Coddy banners for learn-js.org #820

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

Merged
merged 7 commits into from
Apr 4, 2025
Merged

Conversation

KevinSpek
Copy link
Contributor

All languages share the same index.html except python, therefore I copied the index.html and created index-js.html and modified the contents of the new file, similar to index-python.html

main.py Outdated
@@ -409,7 +409,9 @@ def index(title, language="en"):
# is_german_user = response and response.country.iso_code == 'DE'

return make_response(render_template(
"index-python.html" if (language == "en" and domain_data["language"] == "python") else "index.html",
"index-python.html" if (language == "en" and domain_data["language"] == "python") else \
"index-js.html" if (language == "en" and domain_data["language"] == "javascript") else \
Copy link
Owner

Choose a reason for hiding this comment

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

I would prefer to remove duplications of index.html. python is special because datacamp has their own method of code execution.

@ronreiter ronreiter merged commit 2199628 into ronreiter:master Apr 4, 2025
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