Skip to content

Commit 0ef2eff

Browse files
committed
Add tailwindcss/typography for displaying Rich contents
1 parent 96958a0 commit 0ef2eff

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

pythonkr_backend/pythonkr/templates/pythonkr/pk_base.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="container mx-auto px-4">
1818
<div class="flex justify-between items-center py-4">
1919
<a class="navbar-brand" href="{% pageurl current_site.root_page %}">
20-
<img src="{% static 'pythonkr/pythonkr-badge.png' %}" alt="Python Korea Logo" height="80"/>
20+
<img class="h-12" src="{% static 'pythonkr/pythonkr-badge.png' %}" alt="Python Korea Logo"/>
2121
</a>
2222
<a href="#" class="text-xl font-bold text-gray-800">Python Korea</a>
2323
<div class="hidden md:flex space-x-4">
@@ -42,7 +42,9 @@
4242
</nav>
4343

4444
<main class="container mx-auto px-4 py-8">
45-
{% block content %}{{ page.content|richtext }}{% endblock %}
45+
<div class="prose">
46+
{% block content %}{{ page.content|richtext }}{% endblock %}
47+
</div>
4648
</main>
4749

4850
<footer class="bg-white border-t mt-12">

pythonkr_backend/theme/static_src/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pythonkr_backend/theme/static_src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"devDependencies": {
1717
"@tailwindcss/aspect-ratio": "^0.4.2",
1818
"@tailwindcss/forms": "^0.5.7",
19-
"@tailwindcss/typography": "^0.5.10",
19+
"@tailwindcss/typography": "^0.5.16",
2020
"cross-env": "^7.0.3",
2121
"postcss": "^8.4.32",
2222
"postcss-import": "^15.1.0",

pythonkr_backend/theme/static_src/tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ module.exports = {
5353
require('@tailwindcss/forms'),
5454
require('@tailwindcss/typography'),
5555
require('@tailwindcss/aspect-ratio'),
56+
require('@tailwindcss/typography'),
5657
],
5758
}

0 commit comments

Comments
 (0)