modified readme
This commit is contained in:
parent
56d8de3cd5
commit
80ad606350
6 changed files with 10 additions and 105 deletions
0
.packages/ess-20240516.811/etc/ESSR/BUILDESSR
Executable file → Normal file
0
.packages/ess-20240516.811/etc/ESSR/BUILDESSR
Executable file → Normal file
0
.packages/ess-20240516.811/etc/ess-sas-sh-command
Executable file → Normal file
0
.packages/ess-20240516.811/etc/ess-sas-sh-command
Executable file → Normal file
0
.packages/ess-20240516.811/obsolete/ess-font-lock.el
Executable file → Normal file
0
.packages/ess-20240516.811/obsolete/ess-font-lock.el
Executable file → Normal file
10
README.org
10
README.org
|
@ -5,6 +5,16 @@ hacking together a custom one because I didn't like that most existing
|
|||
ones were either focused around documentation, or blogs, and I wanted
|
||||
to make one that functioned how I wanted it to.
|
||||
|
||||
Also, I'm one person making a project for myself. If there are any
|
||||
changes you want to see made, fork the repo. If there are any changes
|
||||
made that you don't like, fork the repo.
|
||||
|
||||
If you like what I do here, check out my other stuff:
|
||||
[[https://klymilark.fallcounty.monster][My blog]]
|
||||
|
||||
And consider donating
|
||||
[[https://ko-fi.com/klymilark][Ko-fi]]
|
||||
|
||||
* How to install
|
||||
|
||||
- Clone this git repo with "git clone https://git.disroot.org/klymilark/kristells-ssg.git"
|
||||
|
|
105
build-site.el~
105
build-site.el~
|
@ -1,105 +0,0 @@
|
|||
;; Set the package installation directory so that packages aren't stored in the
|
||||
;; ~/.emacs.d/elpa path.
|
||||
(require 'package)
|
||||
(setq package-user-dir (expand-file-name "./.packages"))
|
||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
||||
("elpa" . "https://elpa.gnu.org/packages/")))
|
||||
|
||||
;; Initialize the package system
|
||||
(package-initialize)
|
||||
(unless package-archive-contents
|
||||
(package-refresh-contents))
|
||||
|
||||
;; Install dependencies
|
||||
(package-install 'htmlize)
|
||||
(package-install 'ox-rss)
|
||||
(package-install 'fontawesome)
|
||||
(package-install 'webfeeder)
|
||||
|
||||
;; Load the publishing system
|
||||
(require 'ox-publish)
|
||||
(require 'ox-rss)
|
||||
;; Customize the HTML output
|
||||
(setq org-html-validation-link nil ;; Don't show validation link
|
||||
org-html-head-include-scripts nil ;; Use our own scripts
|
||||
org-html-head-include-default-style nil ;; Use our own styles
|
||||
org-html-head "<link rel=\"stylesheet\" href=\"https://cdn.simplecss.org/simple.min.css\" />")
|
||||
|
||||
;; Define the publishing project
|
||||
(setq org-publish-project-alist
|
||||
(list
|
||||
(list "org-site:main"
|
||||
:author "Kristell L."
|
||||
:recursive t
|
||||
:makeindex t
|
||||
:base-directory "./content"
|
||||
:publishing-function 'org-html-publish-to-html
|
||||
:publishing-directory "./public"
|
||||
;;:html-preamble (file-contents "./content/scaffold/header.org")
|
||||
:makeindex nil ;; Stop generating theindex.org
|
||||
:with-author t ;; Don't include author name
|
||||
:with-creator t ;; Include Emacs and Org versions in footer
|
||||
:with-toc nil ;; Include a table of contents
|
||||
:section-numbers nil ;; Don't include section numbers
|
||||
:time-stamp-file nil)))
|
||||
(add-to-list
|
||||
'org-publish-project-alist
|
||||
'("org-site:blog"
|
||||
:base-directory "./content/blog"
|
||||
:base-extension "org"
|
||||
:auto-sitemap t ; Generate sitemap.org automagically...
|
||||
:sitemap-filename "sitemap.org" ; ... call it sitemap.org (it's the default).
|
||||
:sitemap-title "" ; ... with title 'Sitemap'.
|
||||
:sitemap-sort-files chronologically
|
||||
:html-link-use-abs-url t
|
||||
:publishing-directory "./public/blog"
|
||||
:section-numbers nil
|
||||
:table-of-contents nil))
|
||||
; (add-to-list
|
||||
; 'org-publish-project-alist
|
||||
; '("homepage_rss"
|
||||
; :base-directory "./content/blog"
|
||||
; :base-extension "org"
|
||||
; :rss-image-url "https://upload.wikimedia.org/wikipedia/commons/thumb/1/16/RSS_icon.svg/36px-RSS_icon.svg.png"
|
||||
; :html-link-home "http://klymilark.fallcounty.monster/blog"
|
||||
; :html-link-use-abs-url t
|
||||
; :rss-extension "xml"
|
||||
; :publishing-directory "./public/blog/"
|
||||
; :publishing-function (org-rss-publish-to-rss)
|
||||
; :section-numbers nil
|
||||
; :exclude ".*" ;; To exclude all files...
|
||||
; :include ("index.org") ;; ... except index.org.
|
||||
; :table-of-contents nil))
|
||||
|
||||
(defun dw/rss-extract-date (html-file)
|
||||
"Extract the post date from an HTML file."
|
||||
(with-temp-buffer
|
||||
(insert-file-contents html-file)
|
||||
(let* ((dom (libxml-parse-html-region (point-min) (point-max)))
|
||||
(date-string (dom-text (car (dom-by-class dom "date"))))
|
||||
(parsed-date (parse-time-string date-string))
|
||||
(day (nth 3 parsed-date))
|
||||
(month (nth 4 parsed-date))
|
||||
(year (nth 5 parsed-date))))))
|
||||
|
||||
;(defun dw/rss-extract-summary (html-file)
|
||||
; )
|
||||
|
||||
(setq webfeeder-date-function #'dw/rss-extract-date)
|
||||
|
||||
;;;; https://gitlab.com/ambrevar/emacs-webfeeder/-/blob/master/webfeeder.el
|
||||
(webfeeder-build "rss.xml"
|
||||
"./public"
|
||||
"http://klymilark.fallcounty.monster"
|
||||
(mapcar (lambda (file) (concat "blog/" file))
|
||||
(let ((default-directory (expand-file-name "./public/blog/")))
|
||||
(directory-files-recursively "./" ".*\\.html$")))
|
||||
:builder 'webfeeder-make-rss
|
||||
:title "Kristell's Blog"
|
||||
:description "Wildly differential interests from Kristell L"
|
||||
:author "Kristell")
|
||||
|
||||
;; Generate the site output
|
||||
(org-publish-all t)
|
||||
|
||||
(message "Build complete!")
|
0
build.sh
Executable file → Normal file
0
build.sh
Executable file → Normal file
Loading…
Reference in a new issue