feat: move intro section to generator and only show on index.html

This commit is contained in:
Tommy 2024-08-06 15:46:54 +02:00
parent 5e04fec993
commit 5c8c8577ad
Signed by: tommy
SSH key fingerprint: SHA256:1LWgQT3QPHIT29plS8jjXc3S1FcE/4oGvsx3Efxs6Uc
4 changed files with 11 additions and 11 deletions

View file

@ -2,12 +2,12 @@
;; Define Your Webpage
(defvar *config*
(list
:webmaster "Tommy Skaug"
:title "Thoughts"
:description "Purposeful approaches"
:description "Greetings. I am a cyber security professional with more than a decade of operational experience.
I appreciate solving emerging and existing problems with novel and simple approaches."
:url "https://www.252.no/" ;; the trailing slash is mandatory! RSS links will fail without it. Notice the '~~' to produce a literal '~'
:rss-item-number 20 ;; limit total amount of items in RSS feed to 10
:date-format "%MonthName %DayNumber %Year" ;; format for date %DayNumber %DayName %MonthNumber %MonthName %Year

View file

@ -275,8 +275,10 @@
;; html generation of index homepage
(defun generate-semi-mainpage(&key (tiny t) (no-text nil))
(apply #'concatenate 'string
(loop for article in *articles* collect
(create-article article :tiny tiny :no-text no-text))))
(prepare "templates/about.tpl"
(template "%%Description%%" (getf *config* :description)))
(loop for article in *articles* collect
(create-article article :tiny tiny :no-text no-text))))
;; html generation of a tag homepage
(defun generate-tag-mainpage(articles-in-tag)

5
templates/about.tpl Normal file
View file

@ -0,0 +1,5 @@
<div class="intro">
%%Description%%
</div>

View file

@ -19,13 +19,6 @@
<li><a href="https://keyoxide.org/088194F806EBADEE1B48B1CBC0A38C49BB2258E8" target="_blank">Contact</a></li>
</ul>
</nav>
<!--<div>All Tags: %%Tags%%</div>-->
<div class="intro">Greetings. I am a cyber security professional
with more than a decade of operational experience. I appreciate
solving emerging and existing problems with novel and simple
approaches.</div>
</header>
<main>%%Body%%</main>