diff --git a/one.org b/one.org index 4543638..3fa31a2 100644 --- a/one.org +++ b/one.org @@ -427,7 +427,6 @@ For example, you can create a link to the ~blog single~ page with the ~slug~ of #+BEGIN_SRC html {% get_current_language as CURRENT_LANGUAGE %} - - - - {{ title }} - - - - - - -
-
-
-
-
- {% include 'components/header.html' %} -
-
{% include page %}
-
- {% include 'components/footer.html' %} -
-
- - + {# my-app/templates/layouts/base.html #} + {% load static i18n %} + {% get_current_language as CURRENT_LANGUAGE %} + + + + {{ title }} + + + + + + +
+
+
+
+
+ {% include 'components/header.html' %} +
+
{% include page %}
+
+ {% include 'components/footer.html' %} +
+
+ + #+END_SRC In the future we will define ~main.js~, a minimal JavaScript to connect the events and the WebSockets client. @@ -846,15 +846,19 @@ We will create the home page template, which will be the one that will be render Create a folder called ~pages~ in your template folder and inside it create a file called ~home.html~. #+BEGIN_SRC html -{# my-app/templates/pages/home.html #} -{% load static %} + {# my-app/templates/pages/home.html #} + {% load static %} -
-

- -

-

-
+
+

+ +

+

+
#+END_SRC As you can see, we have defined a button to launch the action of generating the random number (~button~) and the place where we will print the result (~output-random-number~).