Commit 6f497dd65e

6f497dd65e5d28bd5ac7939e92892c99a2a93eaf

parent: 351ff4ea5e

Unsigned

cmc <hello@cleberg.net> · 2025-05-08 23:03 UTC

update: README

Layout: unified · split

README.md deleted −86
@@ -1,86 +0,0 @@
1# cleberg.net
2
3[cleberg.net](https://cleberg.net) is my personal webpage and blog. This
4website and blog utilize the powerful Org-Mode publishing system,
5courtesy of the [weblorg](https://github.com/emacs-love/weblorg) Emacs
6package.
7
8## Features & Configuration
9
10This site leverages the flexibility of Org-Mode to allow for easy
11customization through a simple `publish.el` file. For those
12who are interested in tweaking the underlying configuration, the weblorg
13documentation provides all necessary details on possible settings and
14options.
15
16## Getting Started
17
18To begin exploring or contributing to this project, you\'ll first need
19to set up a local copy of the repository. This can be accomplished by
20running the following commands within Emacs:
21
22```shell
23git clone https://github.com/ccleberg/cleberg.net && \
24cd cleberg.net && \
25emacs -nw
26```
27
28Alternatively, if you prefer working with Doom, simply open any of the
29repository files using `Spc f f` and selecting
30`README.org`. From there, feel free to make any necessary
31changes or customizations.
32
33## Building & Publishing the Site
34
35To test the site locally within Emacs, run the following command
36sequence:
37
38Use the `ENV` environment variable to determine which base
39URL weblorg will use. If ENV is omitted, it will default to
40`localhost:8000`. If `ENV=prod`, weblorg will look
41in the `publish.el` file for the production base URL.
42
43```shell
44# production:
45ENV=prod emacs --script publish.el
46
47# development:
48emacs --script publish.el
49```
50
51The resulting files can then be deployed to your desired target using
52any method of your choice, such as `scp` or SFTP.
53
54Alternatively, you may prefer to utilize the provided
55`build.sh` script to automate this process. To do so, simply
56customize and run the script as needed.
57
58```shell
59# production:
60ENV=prod ./build.sh
61
62# development:
63./build.sh
64```
65
66### Creating New Blog Posts
67
68To quickly create a new blog post within Emacs, follow these steps:
69
701. Run `C-x C-f` (`SPC f f` in Doom) to open a
71 new Org-Mode file.
722. Utilize the `insert-file-contents` command by pressing
73 `C-x i`.
743. Direct the contents of `template.org` (located at
75 `utils/template.org`) into the newly opened file.
76
77This streamlined process allows you to rapidly generate fresh content
78for cleberg.net, taking advantage of the existing template structure and
79formatting.
80
81## Contributing & Tasks
82
83For those interested in contributing to this project or addressing any
84outstanding issues, please refer to the issues tab. This is where you
85can find a comprehensive list of open tickets or submit a new ticket for
86consideration.
README.org added +79
@@ -0,0 +1,79 @@
1* cleberg.net
2
3[[https://cleberg.net][cleberg.net]] is my personal web page and blog. This website and blog utilize the
4powerful Org-Mode publishing system, courtesy of the [[https://github.com/emacs-love/weblorg][weblorg]] Emacs package.
5
6| Light Mode | Dark Mode |
7|-------------------------+------------------------|
8| [[./screenshots/light.png]] | [[./screenshots/dark.png]] |
9
10** Features & Configuration
11
12This site leverages the flexibility of Org-Mode to allow for easy customization
13through a simple =publish.el= file. For those who are interested in tweaking the
14underlying configuration, the weblorg documentation provides all necessary
15details on possible settings and options.
16
17** Getting Started
18
19To begin exploring or contributing to this project, you'll first need to set up
20a local copy of the repository. This can be accomplished by running the
21following commands within Emacs:
22
23#+begin_src shell
24git clone https://github.com/ccleberg/cleberg.net && \
25cd cleberg.net && \
26emacs -nw
27#+end_src
28
29Alternatively, if you prefer working with Doom, simply open any of the
30repository files using =Spc f f= and selecting =README.org=. From there, feel
31free to make any necessary changes or customizations.
32
33** Building & Publishing the Site
34
35To test the site locally within Emacs, run the following command sequence:
36
37Use the =ENV= environment variable to determine which base URL weblorg will use.
38If ENV is omitted, it will default to =localhost:8000=. If =ENV=prod=, weblorg
39will look in the =publish.el= file for the production base URL.
40
41#+begin_src shell
42# production:
43ENV=prod emacs --script publish.el
44
45# development:
46emacs --script publish.el
47#+end_src
48
49The resulting files can then be deployed to your desired target using any method
50of your choice, such as =scp= or SFTP.
51
52Alternatively, you may prefer to utilize the provided =build.sh= script to
53automate this process. To do so, simply customize and run the script as needed.
54
55#+begin_src shell
56# production:
57ENV=prod ./build.sh
58
59# development:
60./build.sh
61#+end_src
62
63*** Creating New Blog Posts
64
65To quickly create a new blog post within Emacs, follow these steps:
66
671. Run =C-x C-f= (=SPC f f= in Doom) to open a new Org-Mode file.
682. Utilize the =insert-file-contents= command by pressing =C-x i=.
693. Direct the contents of =template.org= (located at =utils/template.org=) into
70 the newly opened file.
71
72This streamlined process allows you to rapidly generate fresh content for
73cleberg.net, taking advantage of the existing template structure and formatting.
74
75** Contributing & Tasks
76
77For those interested in contributing to this project or addressing any
78outstanding issues, please refer to the issues tab. This is where you can find a
79comprehensive list of open tickets or submit a new ticket for consideration.
screenshots/dark.png added

Binary file not shown.

screenshots/light.png added

Binary file not shown.