diff --git a/jobs/templates/jobs/index.html b/jobs/templates/jobs/index.html index a90daf0..d1dda09 100644 --- a/jobs/templates/jobs/index.html +++ b/jobs/templates/jobs/index.html @@ -3,45 +3,102 @@
-
-

Latest Jobs

+
+

Latest Jobs

- {% for job in jobs %} -
-
-
- {{ job.title }} + +
+
+ {% for job in jobs %} +
+
+

{{ job.title }}

+

 

+

+

{{job.description|truncatewords:20}}

+

Apply

+
-
- {% for tag in job.tags.all %} - {{tag}} - {% endfor %} + {% endfor %} +
+ +
+ -
-
- Apply -
-
-
- {% endfor %}
-{% comment %} -
- {% for job in jobs %} -
- -
-

{{ job.description|truncatewords_html:20 }}

-
- -
- {% endfor %} -
-{% endcomment %} + {% endblock %} \ No newline at end of file diff --git a/jobs/views.py b/jobs/views.py index 1de8884..a61db16 100644 --- a/jobs/views.py +++ b/jobs/views.py @@ -17,7 +17,7 @@ class Index(TemplateView): def get_context_data(self, *args, **kwargs): context = super().get_context_data(*args, **kwargs) - context['jobs'] = Job.objects.all().order_by('-updated')[:3] + context['jobs'] = Job.objects.all().order_by('-updated')[:6] return context