]> git.vanrenterghem.biz Git - www2.vanrenterghem.biz.git/commitdiff
Zorg dat post index pagina semantisch correct is.
authorFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Thu, 28 Dec 2023 06:35:13 +0000 (14:35 +0800)
committerFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Thu, 28 Dec 2023 06:35:13 +0000 (14:35 +0800)
html/post-index.mustache
maak-website.el
source/posts/Fibonacci_golden_spiral.org
source/posts/explore-AU-road-fatalities.org

index 7883bbde7cd0f31bb0af95f47ad76345ff0fc49c..e581eff4676a10c2842b8a8f1578bec81fb2c9dd 100644 (file)
       <div class="row justify-content-center">
        <div class="col-auto d-none d-md-block pt-2 ps-2">
          <aside id="sidebar" class="card">
-           <div class="card-body">
+           <section class="card-body">
              <p>Tags</p>
              <!--# include file="/tag-index-body.html" -->
-           </div>
+           </section>
          </aside>
-       </div> <!-- end of column -->
+       </div> <!-- end of column -->
        <div class="col-xs-11 col-sm-11 col-md-8 col-lg-9 col-xl-9 col-xxl-9 pt-2 ps-2 pe-2">
-         <section id="content" class="content inlinepage">
+         <main id="content" class="content inlinepage">
            {{{contents}}}
-         </section>
-       </div>
-      </div>
-    </div>
+         </main>
+       </div> <!-- end of column 2 -->
+      </div> <!-- end of row -->
+    </div> <!-- end of container -->
     
     {{>footer}}
   </body>
index 10f2e6a69caf4675ea9b9e17ce2378de2be645ee..565a5d0e0a81a1605e99588393c8aeffee3401f8 100644 (file)
@@ -9,7 +9,7 @@
 (setq org-html-htmlize-output-type 'css) ; default: 'inline-css
 (setq org-time-stamp-custom-formats '("%A %e %B %Y" . "%A %e %B %Y at %H:%M"))
 (setq org-display-custom-times t)
-(setq org-html-container-element "section") ;; TODO - check
+(setq org-html-container-element "div") ;; TODO - check
 (setq my-blog-base-folder "~/websites/stage.vanrenterghem.biz")
 (setq my-blog-source-folder "~/websites/stage.vanrenterghem.biz/source")
 (setq my-blog-target-folder "~/websites/stage.vanrenterghem.biz/target")
@@ -161,10 +161,10 @@ Either the section between #+BEGIN_PREVIEW and +#END_PREVIEW is used, or the fir
          (insert "#+END_export\n")
          (insert preview)
                                        ;(insert (concat "#+INCLUDE: \"" relpath "\" :only-contents t :lines \"1-10\"\n"))
-          (insert "\n")
+         (insert "\n")
           (insert (concat "[[file:" relpath "][Read More...]]\n"))
          (insert "#+BEGIN_export html\n")
-         (insert "<\/section>\n")
+         (insert "</section> <!-- END CARD-BODY-->\n")
          (insert "#+END_export\n")
          ))
       ;; kill the first hrule to make this look OK
index 90abf9a3f439344d5e9f7b94d1c46db6d3e4e4d1..14ba5b07fd3a1a0503b2a047168170aab5f1d1c9 100644 (file)
 #+OPTIONS: toc:nil  \r
 #+date: <2019-09-16 22:03:03>\r
 \r
-* What \r
 After having read the first part of a Rcpp tutorial which compared native R vs C++ implementations of a Fibonacci sequence generator, I resorted to drawing the so-called Golden Spiral using R.\r
 \r
-* Details\r
 Libraries used in this example are the following\r
 \r
 #+BEGIN_SRC R :session R\r
@@ -338,7 +336,6 @@ df <- data.frame(t(serie))
 #+RESULTS:\r
 : TRUE\r
 \r
-* Result\r
 With everything now ready in the right coordinate system, it's now only a matter of setting some options to make the output look acceptable.\r
 #+BEGIN_SRC R :session R :results output file graphics :file ../assets/golden_spiral-ggplot-coord-fixed.png :width 800 :height 800 :exports both\r
 ggplot(df, aes(x=X1,y=X2)) +\r
@@ -356,5 +353,4 @@ ggplot(df, aes(x=X1,y=X2)) +
          y = "")\r
 #+END_SRC\r
 \r
-* Note on how this post was written.\r
-After a long hiatus, I set about using emacs, org-mode and ESS together to create this post. All code is part of an .org file, and gets exported to markdown using the orgmode conversion - C-c C-e m m.\r
+Note on how this post was written: After a long hiatus, I set about using emacs, org-mode and ESS together to create this post. All code is part of an .org file, and gets exported to markdown using the orgmode conversion - C-c C-e m m.\r
index ce66e5abcfe553ffa7a95271bb472cc75f962831..6c60f336d07a8ec05b90fd133afeaf5be35b24f7 100644 (file)
@@ -2,10 +2,6 @@
 #+filetags: :R:analysis:
 #+title: Explore Australian road fatalities.
 
-** Road fatalities in Australia
-:PROPERTIES:
-:CUSTOM_ID: road-fatalities-in-australia
-:END:
 Recently inspired to doing a little analysis again, I landed on a
 dataset from
 [[https://bitre.gov.au/statistics/safety/fatal_road_crash_database.aspx]],
@@ -15,6 +11,7 @@ great example of how governments are moving with the times!
 ** Trends
 :PROPERTIES:
 :CUSTOM_ID: trends
+:HTML_CONTAINER_CLASS: card-body
 :END:
 I started by looking at the trends - what is the approximate number of
 road fatalities a year, and how is it evolving over time? Are there any
@@ -33,6 +30,7 @@ differences noticeable between states? Or by gender?
 ** What age group is most at risk in city traffic?
 :PROPERTIES:
 :CUSTOM_ID: what-age-group-is-most-at-risk-in-city-traffic
+:HTML_CONTAINER_CLASS: card-body
 :END:
 Next, I wondered if there were any particular ages that were more at
 risk in city traffic. I opted to quickly bin the data to produce a
@@ -57,6 +55,7 @@ fatalities %>%
 ** Hypothesis
 :PROPERTIES:
 :CUSTOM_ID: hypothesis
+:HTML_CONTAINER_CLASS: card-body
 :END:
 Based on the above, I wondered - are people above 65 more likely to die
 in slow traffic areas? To make this a bit easier, I added two variables
@@ -130,6 +129,7 @@ prop.test(pensioners,everyone)
 ** Conclusion
 :PROPERTIES:
 :CUSTOM_ID: conclusion
+:HTML_CONTAINER_CLASS: card-body
 :END:
 It's possible to conclude older people are over-represented in the
 fatalities in lower speed zones. Further ideas for investigation are