From d97e834da928dc511fab1a37897539891e9698bd Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Tue, 18 Jun 2024 09:50:21 +0200 Subject: [PATCH] removed some emacs artifacts --- blog.org~ | 0 flake.nix~ | 21 -------------- haunt.scm~ | 85 ------------------------------------------------------ haunt.yml~ | 19 ------------ 4 files changed, 125 deletions(-) delete mode 100644 blog.org~ delete mode 100644 flake.nix~ delete mode 100644 haunt.scm~ delete mode 100644 haunt.yml~ diff --git a/blog.org~ b/blog.org~ deleted file mode 100644 index e69de29..0000000 diff --git a/flake.nix~ b/flake.nix~ deleted file mode 100644 index 25b8284..0000000 --- a/flake.nix~ +++ /dev/null @@ -1,21 +0,0 @@ -{ - description = "A Nix-flake-based Nix development environment"; - inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; - - outputs = { self, nixpkgs }: - let - supportedSystems = - [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; - forEachSupportedSystem = f: - nixpkgs.lib.genAttrs supportedSystems - (system: f { pkgs = import nixpkgs { inherit system; }; }); - in { - devShells = forEachSupportedSystem ({ pkgs }: { - default = pkgs.mkShell { - packages = with pkgs; [ - ncurses - ]; - }; - }); - }; -} diff --git a/haunt.scm~ b/haunt.scm~ deleted file mode 100644 index 78ee8f0..0000000 --- a/haunt.scm~ +++ /dev/null @@ -1,85 +0,0 @@ -;;; Copyright (C) 2024 Geir Okkenhaug Jerstad -;;; -;;; 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 -;;; . -;; Some piece of code come from David Thompson blog (GPLv3+). -;; https://git.dthompson.us/blog.git and Pierre-Antoine Rouby -;; https://framagit.org/prouby/blog - -(use-modules (haunt asset) - (haunt builder blog) - (haunt builder atom) - (haunt builder assets) - ;;(haunt builder flat-pages) - (haunt reader commonmark) - (haunt reader skribe) - (haunt site) - (haunt page) - (haunt utils)) - -(define (nav-link label url) - `((a (@ (class "navlink") - (href ,url)) ,label))) - -(define %cc-by-sa-link - '(a (@ (href "https://creativecommons.org/licenses/by-sa/4.0/")) - "Creative Commons Attribution Share-Alike 4.0 International")) - -(define %cc-by-sa-button - '(a (@ (class "cc-button") - (href "https://creativecommons.org/licenses/by-sa/4.0/")) - (img (@ (src "https://licensebuttons.net/l/by-sa/4.0/80x15.png") - (alt "cc-by-sa button"))))) - -;;; -;;; Theme -;;; -(define main-theme - (theme - #:name "main" - #:layout - (lambda (site title body) - `((doctype "html") - (head - (meta (@ (charset "utf-8"))) - (title ,(string-append title " --- " (site-title site))) - (link (@ (rel "stylesheet") - (href ,(string-append "/assets/simple.css"))))) - (body - (header - (div (@ (class "nav")) - (ul (ul ,(nav-link "Home " "/") - ,(nav-link "About" "about.html"))))) - (hr) - (div (@ (class "content")) - ,body) - (hr) - (footer - (p "© 2024 Geir Okkenhaug Jerstad " - ,%cc-by-sa-button))))))) - -(site #:title "geokkjer's home on the web, built with Guile and Haunt" - #:domain "blog.geokkjer.eu" - #:default-metadata - '((author . "Geir Okkenhaug Jerstad") - (email . "geir@geokkjer.eu")) - #:readers (list commonmark-reader skribe-reader) - #:builders (list (blog #:theme main-theme) - ;;;(page "pages" - ;;; #:template (theme-layout main-theme) - (static-directory "assets") - (atom-feed) - (atom-feeds-by-tag) - (static-directory "images"))) - diff --git a/haunt.yml~ b/haunt.yml~ deleted file mode 100644 index cf960a6..0000000 --- a/haunt.yml~ +++ /dev/null @@ -1,19 +0,0 @@ -image: guix -packages: - - haunt - - hut - # you may need guile-commonmark for optional Markdown support - - guile-commonmark - # you may need guile-reader for optional Skribe support - - guile-reader -oauth: pages.sr.ht/PAGES:RW -environment: - site: example.org -tasks: -- package: | - # assuming that your repository name is the same as site domain - cd $site - haunt build - tar -C site -cvz . > ../site.tar.gz -- upload: | - hut pages publish -d $site site.tar.gz