feat: move intro section to generator and only show on index.html
This commit is contained in:
parent
5e04fec993
commit
5c8c8577ad
4 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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
5
templates/about.tpl
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
<div class="intro">
|
||||
%%Description%%
|
||||
</div>
|
||||
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue