You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django Vitae provides two primary views for a CV: HTML and PDF.
11
+
Django Vitae provides two primary views that represent the entire CV
12
+
document: HTML and PDF.
12
13
13
14
HTML
14
15
^^^^
15
16
16
-
The primary view provided by Django Vitae represents CVs as webpages. This is the view made available at the application's root URL, that is ``/``. The URL retrieves the view :class:`cv.views.CVView` that gathers the data from individual models and presents them in appropriate sections.
17
+
The primary view provided by Django Vitae represents a CV as a webpage.
18
+
This is the view made available at the application's root URL, that is
19
+
``/``. The URL retrieves the view :class:`cv.views.CVView` that gathers
20
+
the data from individual models and presents them in appropriate sections.
17
21
18
-
Template Structure
19
-
~~~~~~~~~~~~~~~~~~
20
-
21
-
Template structure::
22
+
**Template Structure**::
22
23
23
24
cv/
24
25
sections/
@@ -28,18 +29,99 @@ Template structure::
28
29
skeleton.html
29
30
30
31
31
-
The HTML views use a series of templates. At the lowest level, ``cv/skeleton.html`` defines the main structure for the page. The default template uses `Bootstrap`_ CSS styles and JavaScript and `Font Awesome`_ icons from their respective CDNs.
32
+
The HTML views use a series of templates layered on top of one
33
+
another. At the lowest level, ``cv/skeleton.html`` **defines the
34
+
main structure for the page**. The default template uses CSS styles
35
+
and Javascript from `Bootstrap` and icons from `Font Awesome`_
36
+
icons, using their respective `CDNs`_.
32
37
33
38
.. _Bootstrap: https://getbootstrap.com/
34
39
.. _Font Awesome: https://fontawesome.com/
35
-
36
-
The next template, ``cv/base.html`` inherits from ``cv/skeleton.html`` and **defines the order of sections** as a series of Django template blocks. The template ``cv/cv.html`` inherits from the ``cv/base.html`` template and defines each section.
37
-
38
-
In the default templates included with Django Vitae, ``cv/cv.html`` wraps sections in a ``<div>`` block and then `includes`_ a template for that section. These included templates are found in the ``sections`` directory in the root ``cv`` template directory. If you would like to customize the look of an individual section, you should write your own templates for the section you want to modify. The name of the section template is the plural of the model name; for example, the template for the :class:`~cv.models.base.Degree` model is ``cv/sections/degrees.html`` (the one exception is the template for :class:`~cv.models.works.OtherWriting`, which is simply ``cv/sections/otherwriting.html``).
0 commit comments