hauntweb/haunt.scm

110 lines
3.2 KiB
Scheme
Raw Normal View History

2024-02-13 01:42:33 +00:00
;;; -*- coding: utf-8 -*-
;;;
;;; This program is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU General Public License as
;;; published by the Free Software Foundation; either version 3 of the
;;; License, or (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;;; General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program. If not, see
;;; <http://www.gnu.org/licenses/>.
(use-modules (haunt builder blog)
(haunt builder assets)
(haunt post)
(haunt site)
(haunt config)
(useful))
;; Static "Home"
(define home-page
(static-page
"Home"
2024-02-18 06:28:49 +00:00
"/index.html"
2024-02-13 01:42:33 +00:00
`(,(centered-image "images/mainframe_256x256.gif"))))
;; Static "About" page
(define about-page
(static-page
"About"
2024-02-18 06:28:49 +00:00
"/about.html"
2024-02-13 01:42:33 +00:00
`((h1 "About")
(p "This is the personal website of Cristian Cezar Moisés."
" I am a student. (Pronouns: "
(i "he, him, his")
").")
,(centered-image "images/profile.png")
(p "Learning about cybersec,infosec and hacking."
"Information Security Graduate"
,(link* "Ftec"
"https://www.ftec.com.br/")
". My research focused on the "
"Linux Servers Security."
"I'm a free software enthusiast.")
(br)
2024-02-13 03:34:16 +00:00
(p " I love code and unify projects like threejs + react "
2024-02-13 01:42:33 +00:00
"Check my awesome interactive portfolio "
,(link* "here"
"https://live-one.vercel.app")
". Outside of work, I'm a computerphile — "
"I enjoy learning about and using programming languages "
".This "
"site was written in the LISP dialect Scheme (GNU Guile, version "
,(version)
") and built with the Haunt library (version "
,%haunt-version
") on "
,(strftime "%c" (localtime (current-time)))
". The source code can be found on "
,(link* "GitHub"
2024-02-13 03:10:49 +00:00
"https://github.com/cristiancmoises/cristiancmoises.github.io")
2024-02-13 01:42:33 +00:00
". Check my YouTube channel "
,(link* "SecurityOps" "https://youtube.com/@securityops")
"."))))
(define not-found
(static-page
"404"
2024-02-13 03:07:31 +00:00
"/site/404.html"
2024-02-13 01:42:33 +00:00
`((h1 "404 Page Not Found")
(p "Unfortunately the page you've tried to access doesn't exist!")
(br)
(h2 "Return "
,(link* "Home"
2024-02-18 06:28:49 +00:00
"/")
2024-02-13 01:42:33 +00:00
"?"))))
2024-02-18 06:28:49 +00:00
;; Collection of projects posts
(define %projects
`(("Recent Posts" "/projects.html" ,projects-posts)))
2024-02-13 01:42:33 +00:00
;; Collection of research-related posts
(define %research
2024-02-18 06:28:49 +00:00
`(("Published Work" "/research.html" ,research-posts)))
2024-02-13 01:42:33 +00:00
;; Build site
(site #:title
"C.C.M. Homepage"
#:domain
2024-02-20 03:25:56 +00:00
"cristiancmoises.github.io/site/"
2024-02-13 01:42:33 +00:00
#:default-metadata
'((author . "Cristian Cezar Moisés"))
#:readers
(list commonmark-reader*)
#:builders
2024-02-24 03:25:42 +00:00
(list
(blog #:theme default-theme #:collections %projects)
2024-02-13 01:42:33 +00:00
(blog #:theme default-theme #:collections %research)
home-page
about-page
not-found
(static-directory "css")
2024-02-18 06:28:49 +00:00
(static-directory "download")
2024-02-20 03:25:56 +00:00
(static-directory "images")
(static-directory "videos")))