Skip to content

Commit

Permalink
Add server setup post.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmedrano committed Jun 4, 2024
1 parent 949b808 commit 2a6c950
Show file tree
Hide file tree
Showing 9 changed files with 229 additions and 151 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*html
src/hosts/*png
src/posts/*png
27 changes: 8 additions & 19 deletions build.el
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;;; package -- Build script for wmedrano.dev
;;; Commentary:
;;; Builds wmedrano.dev website by converting .org files into html.
;;; emacs -Q --script build.el
;;; ~emacs -Q --script build.el~
;;; Code:
(require 'ox-publish)

Expand All @@ -12,12 +12,12 @@ The static site is output into the site directory."
(let ((org-html-home/up-format "
<div id=\"org-div-home-and-up\">
<!--%s-->
<a href=\"%s\">HOME</a> | <a href=\"/posts\">POSTS</a> | <a href=\"/about.html\">ABOUT</a>
<a href=\"%s\">HOME</a>
</div>
")
(org-html-link-up "../") ;; Unused. Required for home/up to render.
(org-publish-project-alist
`(("wmedrano-site" :components ("wmedrano-home" "wmedrano-posts" "wmedrano-hosts"))
`(("wmedrano-site" :components ("wmedrano-home" "wmedrano-posts"))
("wmedrano-home"
:base-directory "./src"
:publishing-directory "./src"
Expand All @@ -34,24 +34,13 @@ The static site is output into the site directory."
:publishing-directory "./src/posts"
:publishing-function org-html-publish-to-html
:recursive t
:auto-sitemap t
:section-numbers nil
:sitemap-title "Posts"
:sitemap-filename "index.org"
:html-link-home "../"
)
("wmedrano-hosts"
:base-directory "./src/hosts"
:publishing-function org-html-publish-to-html
:publishing-directory "./src/hosts"
:recursive nil
:auto-sitemap t
:section-numbers t
:sitemap-title "Hosts"
:sitemap-filename "index.org"
:html-link-home "../")))
:html-link-home "../.."
)))
(org-html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\"/>")
(org-html-validation-link nil))
(org-html-validation-link nil)
(org-export-with-author nil)
(org-export-with-date t))
(org-publish-project "wmedrano-site" t)))

(build-wmedrano-dev-site)
Expand Down
3 changes: 0 additions & 3 deletions src/hosts/index.org

This file was deleted.

121 changes: 0 additions & 121 deletions src/hosts/oddtaxi.org

This file was deleted.

7 changes: 4 additions & 3 deletions src/index.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#+AUTHOR: Will Medrano
#+DATE: [2024-05-12 Sun]

[[file:posts/index.org][Posts]]

[[file:about.org][About Me]]
- [[file:index.org][Posts]]
- [[file:posts/github-gitlab.org][GitHub or GitLab for Hobby Projects]]
- [[file:posts/server-setup.org][Server Setup for wmedrano.dev]]
- [[file:about.org][About Me]]
3 changes: 0 additions & 3 deletions src/posts/index.org

This file was deleted.

Loading

0 comments on commit 2a6c950

Please sign in to comment.