diff --git a/_header.html b/_header.html index dc1b3cb..9ff6609 100644 --- a/_header.html +++ b/_header.html @@ -3,7 +3,7 @@ Home /  Blog /  Tweaks /  - Download + Download
diff --git a/_output/blog/community-patch.html b/_output/blog/community-patch.html index 97d942a..09376f1 100644 --- a/_output/blog/community-patch.html +++ b/_output/blog/community-patch.html @@ -25,7 +25,7 @@ Home /  Blog /  Tweaks /  - Download + Download
@@ -34,9 +34,40 @@

Fri, 15 Jul 2022

-

pblog has received its first community patch! By “community” I mean someone other than myself has helped make this blog generator even better. So special thanks to Matthew Graybosch for contributing to this humble project and patching in some solid quality of life improvements.

This is why open source is great: smarter people can help fix your mashed-up spaghetti code!

The Changes

  1. Both pages and posts now generated Table of Contents by default
    • You have the ability to disable this site-wide in the pblog config
  2. Ability to disable Pandoc generated syntax highlighting
  3. xsltproc will now generate HTML5 and include the RSS feed description under the title
  4. New metadata variable (HTML_LANG) in the pblog.sh config
  5. Generated pages and posts now have “Table of Contents” by default
    • This can be disabled in individual files with toc: false
  6. Cleaned up redundant find statements

Some Features Left Behind…

Also suggested in this patch was the addition of more advanced image manipulation via ImageMagick. This additional feature was pretty great from my testing but I felt as though adding an extra dependency and slightly more complex settings to pblog was moving things further from simplicity.

BUT - that doesn’t mean you can’t take this great feature with you!

Introducing “Tweaks”

I feel that pblog should always remain as simple as possible at the core. Let people get something up-and-running with the least amount of friction as possible. But I know that some users might want to squeeze just a little bit more out of it. This is where the new Tweaks section comes in.

Feel free to check out the official Tweaks page and don’t be afraid to add your own by opening a patch-set!

That’s all for now, thanks for reading!

– Brad

+

pblog has received its first community patch! By “community” I mean someone other than myself has helped make this blog generator even better. So special thanks to Matthew Graybosch for contributing to this humble project and patching in some solid quality of life improvements.

+

This is why open source is great: smarter people can help fix your mashed-up spaghetti code!

+

The Changes

+
    +
  1. Both pages and posts now generated Table of Contents by default +
      +
    • You have the ability to disable this site-wide in the pblog config
    • +
  2. +
  3. Ability to disable Pandoc generated syntax highlighting
  4. +
  5. xsltproc will now generate HTML5 and include the RSS feed description under the title +
  6. +
  7. New metadata variable (HTML_LANG) in the pblog.sh config
  8. +
  9. Generated pages and posts now have “Table of Contents” by default +
      +
    • This can be disabled in individual files with toc: false
    • +
  10. +
  11. Cleaned up redundant find statements
  12. +
+

Some Features Left Behind…

+

Also suggested in this patch was the addition of more advanced image manipulation via ImageMagick. This additional feature was pretty great from my testing but I felt as though adding an extra dependency and slightly more complex settings to pblog was moving things further from simplicity.

+

BUT - that doesn’t mean you can’t take this great feature with you!

+

Introducing “Tweaks”

+

I feel that pblog should always remain as simple as possible at the core. Let people get something up-and-running with the least amount of friction as possible. But I know that some users might want to squeeze just a little bit more out of it. This is where the new Tweaks section comes in.

+

Feel free to check out the official Tweaks page and don’t be afraid to add your own by opening a patch-set!

+

That’s all for now, thanks for reading!

+

– Brad

diff --git a/_output/blog/default-styles.html b/_output/blog/default-styles.html index 325a841..c7e0483 100644 --- a/_output/blog/default-styles.html +++ b/_output/blog/default-styles.html @@ -25,7 +25,7 @@ Home /  Blog /  Tweaks /  - Download + Download
@@ -34,9 +34,28 @@

Wed, 27 Jul 2022

-

If it wasn’t already obvious, this project has received a minor styling overhaul. But looks weren’t the only thing updated with this latest patch.

The total build process time is now two times faster!

Keep reading for more details.

The Default “Theme”

The styling changes aren’t anything ground breaking. They simply center the main content and add a little more visual separation of the content and backdrop. Again, you can customize pblog as you see fit, but having a sane default is always nice.

New Config Setup

Since updates and performance fixes might continue to come through in the future, I didn’t want to make users play around with their default configuration every single time. Now, all main configuration is handled in the _config.sh file.

Feels cleaner already, right?

Cutting the Build Time in Half

I must give big kudos to Matthew Graybosch for inspiring this pretty big improvement. After some discussion over emails we both agreed that it seemed overkill to render the blog content twice (once for the XML feed itself and then again for all posts listed under blog). Performance wasn’t the initial goal when I first launched this project, but now that the dust has settled it seemed appropriate to go back and fix some things.

pblog now only needs to render the blog posts found in the posts directory once. It still produces semantic XML and keeps the webview versions of the articles looking solid. Overall I’m pretty happy with this little improvement - it should pretty noticeable on projects rendering many posts.

Far From Perfect

This project is still very much in it’s infancy. So if you notice something odd or broken in your own testing, please don’t hesitate to open a patch or simply bring up the issue!

Thanks for reading,

– Brad

+

If it wasn’t already obvious, this project has received a minor styling overhaul. But looks weren’t the only thing updated with this latest patch.

+

The total build process time is now two times faster!

+

Keep reading for more details.

+

The Default “Theme”

+

The styling changes aren’t anything ground breaking. They simply center the main content and add a little more visual separation of the content and backdrop. Again, you can customize pblog as you see fit, but having a sane default is always nice.

+

New Config Setup

+

Since updates and performance fixes might continue to come through in the future, I didn’t want to make users play around with their default configuration every single time. Now, all main configuration is handled in the new _config.sh file.

+

Feels cleaner already, right?

+

Cutting the Build Time in Half

+

I must give big kudos to Matthew Graybosch for inspiring this pretty big improvement. After some discussion over emails we both agreed that it seemed overkill to render the blog content twice (once for the XML feed itself and then again for all posts listed under blog). Performance wasn’t the initial goal when I first launched this project, but now that the dust has settled it seemed appropriate to go back and fix some things.

+

pblog now only needs to render the blog posts found in the posts directory once. It still produces semantic XML and keeps the webview versions of the articles looking solid. Overall I’m pretty happy with this little improvement - it should pretty noticeable on projects rendering many posts.

+

Far From Perfect

+

This project is still very much in it’s infancy. So if you notice something odd or broken in your own testing, please don’t hesitate to open a patch or simply bring up the issue!

+

Thanks for reading,

+

– Brad

diff --git a/_output/blog/index.html b/_output/blog/index.html index f1868f3..3e921a5 100644 --- a/_output/blog/index.html +++ b/_output/blog/index.html @@ -20,4 +20,4 @@ white-space: nowrap; width: 16ch; } -

pblog.xyz

Pandoc static blog generator

Wed, 27 Jul 2022 14:57:58 EDTNew Default Styling and 2x Faster!Fri, 15 Jul 2022 14:57:58 EDTFirst Community Patch & “Tweaks”Fri, 08 Jul 2022 14:57:58 EDTIncludes, rsync and Variables - Oh My!Mon, 04 Jul 2022 14:57:58 EDTIntroducing pblogThu, 30 Jun 2022 14:57:58 EDTAnnouncing pblog +

pblog.xyz

Pandoc static blog generator

Wed, 27 Jul 2022 11:42:04 EDTNew Default Styling and 2x Faster!Fri, 15 Jul 2022 11:42:04 EDTFirst Community Patch & “Tweaks”Fri, 08 Jul 2022 11:42:04 EDTIncludes, rsync and Variables - Oh My!Mon, 04 Jul 2022 11:42:04 EDTIntroducing pblogThu, 30 Jun 2022 11:42:04 EDTAnnouncing pblog diff --git a/_output/blog/pblog-intro.html b/_output/blog/pblog-intro.html index 489e18e..2faefd6 100644 --- a/_output/blog/pblog-intro.html +++ b/_output/blog/pblog-intro.html @@ -88,7 +88,7 @@ Home /  Blog /  Tweaks /  - Download + Download
@@ -97,9 +97,33 @@

Mon, 04 Jul 2022

-

This article is a living document. It will always have the most up-to-date information on getting started with pblog.

Last Updated: July 27, 2022


Although this project was already announced a couple days ago, I thought it might be best to actually breakdown pblog into greater detail.

Enough chit-chat, let’s get into it!

Main Goal

The entire purpose of pblog is to be as bare-bones as possible, while still maintaining a pleasant writing workflow. Users write their posts and pages in Markdown - pblog handles everything else:

Site Structure

After you’ve cloned the official pblog repo, the next thing you should do is edit the main _config.sh file in the root directory. This will give you a better understanding of how everything is built.

Once generated, pblog structures the final website files as such:

_output/
+

This article is a living document. It will always have the most up-to-date information on getting started with pblog.

+

Last Updated: July 27, 2022

+
+

Although this project was already announced a couple days ago, I thought it might be best to actually breakdown pblog into greater detail.

+

Enough chit-chat, let’s get into it!

+

Main Goal

+

The entire purpose of pblog is to be as bare-bones as possible, while still maintaining a pleasant writing workflow. Users write their posts and pages in Markdown - pblog handles everything else:

+
    +
  • Posts and pages generated via Pandoc with minimal CSS
  • +
  • RSS feed at feed.xml
  • +
  • Generated blog listing at blog/index.html
  • +
  • Browser-styled XML (in supported browsers)
  • +
+

Site Structure

+

After you’ve cloned the official pblog repo on Codeberg, the next thing you should do is edit the main _config.sh file in the root directory. This will give you a better understanding of how everything is built.

+

Once generated, pblog structures the final website files as such:

+
_output/
     |__blog/
         |__index.html
         |__blog-post-example.html
@@ -107,12 +131,41 @@
     |__feed.xml
     |__index.html
     |__rss.xsl
-    |__style.css

This structure is completely customizable by simply editing the pblog.sh file (if you so desire).

Headers and Footers

By default pblog will add the header and footer includes to every individual post and page. To edit these, simply open the _header.html and _footer.html files respectively.

Important: To avoid rendering issues DO NOT remove the included article opening and closing tags within those files. Everything else you can edit, remove, etc.

Posts and Pages

Posts and pages are written via Markdown inside the posts and pages folders respectively.

Individual posts require the following headers (take note of the date format):

---
+    |__style.css
+

This structure is completely customizable by simply editing the pblog.sh file (if you so desire).

+

Headers and Footers

+

By default pblog will add the header and footer includes to every individual post and page. To edit these, simply open the _header.html and _footer.html files respectively.

+

Important: To avoid rendering issues DO NOT remove the included article opening and closing tags within those files. Everything else you can edit, remove, etc.

+

Posts and Pages

+

Posts and pages are written via Markdown inside the posts and pages folders respectively.

+

Individual posts require the following headers (take note of the date format):

+
---
 title: Blog Title
 date: Mon, 04 Jul 2022
----

while individual pages only require a title:

---
+---
+

while individual pages only require a title:

+
---
 title: Page Title
----

This makes for an easier switch over from other SSG platforms like Jekyll or Hugo.

The Build Process

The main variables at the top of the pblog.sh file need to edited with your own details before generating your website. Those variables are fairly self-explanatory and simple to edit.

All you need to do now is run make (or make serve if you’re looking to test locally) and you’re done. Your website should now be fully generated inside the include _output directory. For quick reference:

  1. pblog converts your Markdown posts into two variations of HTML
    • One is used specifically for rendering itself inside the RSS feed
    • The other is used for linking in a browser
  2. Next, pblog converts your Markdown pages into HTML
  3. All of these generated HTML files are then moved to the _output folder

pblog is also smart enough to automatically generate a main blog list directory for you. This index.html file is placed inside the _output/blog folder on build. You can see an example of the blog list on this very website.

Uploading to the WWW

Those with more experience will probably lean towards using a utility like rsync to sync the contents of their _output folder with their web server. For those with less experience, I recommend using something like Netlify Drop to make things as friction-less as possible.

Wrapping Up

There isn’t much else to say. pblog is as static or flexible as you chose it to be. If you have any ideas on how to improve things or come across any bugs, please open a ticket or PR on the official repo.

Thanks and happy blogging with pblog!

+---
+

This makes for an easier switch over from other SSG platforms like Jekyll or Hugo.

+

The Build Process

+

The main variables at the top of the pblog.sh file need to edited with your own details before generating your website. Those variables are fairly self-explanatory and simple to edit.

+

All you need to do now is run make (or make serve if you’re looking to test locally) and you’re done. Your website should now be fully generated inside the include _output directory. For quick reference:

+
    +
  1. pblog converts your Markdown posts into two variations of HTML +
      +
    • One is used specifically for rendering itself inside the RSS feed
    • +
    • The other is used for linking in a browser
    • +
  2. +
  3. Next, pblog converts your Markdown pages into HTML
  4. +
  5. All of these generated HTML files are then moved to the _output folder
  6. +
+

pblog is also smart enough to automatically generate a main blog list directory for you. This index.html file is placed inside the _output/blog folder on build. You can see an example of the blog list on this very website.

+

Uploading to the WWW

+

Those with more experience will probably lean towards using a utility like rsync to sync the contents of their _output folder with their web server. For those with less experience, I recommend using something like Netlify Drop to make things as friction-less as possible.

+

Wrapping Up

+

There isn’t much else to say. pblog is as static or flexible as you chose it to be. If you have any ideas on how to improve things or come across any bugs, please open a ticket or PR on the official repo.

+

Thanks and happy blogging with pblog!

diff --git a/_output/blog/pblog-launch.html b/_output/blog/pblog-launch.html index 0b87d67..fa9bfcd 100644 --- a/_output/blog/pblog-launch.html +++ b/_output/blog/pblog-launch.html @@ -25,7 +25,7 @@ Home /  Blog /  Tweaks /  - Download + Download
@@ -33,7 +33,9 @@

Announcing pblog

Thu, 30 Jun 2022

-

It’s time to celebrate! The official launch of pblog happened today.

There isn’t much else to say. All details and instructions on how to start your own pblog can be found on the main homepage for this project.

Thanks for reading!

+

It’s time to celebrate! The official launch of pblog happened today.

+

There isn’t much else to say. All details and instructions on how to start your own pblog can be found on the main homepage for this project.

+

Thanks for reading!

diff --git a/_output/blog/small-patch.html b/_output/blog/small-patch.html index bb0b9c0..0db0b7d 100644 --- a/_output/blog/small-patch.html +++ b/_output/blog/small-patch.html @@ -25,7 +25,7 @@ Home /  Blog /  Tweaks /  - Download + Download
@@ -34,9 +34,26 @@

Fri, 08 Jul 2022

-

Even though pblog was just launched a week ago, it has since been updated with some nice quality-of-life improvements.

A new variable was added to the main pblog.sh configuration file called INC_HEAD_FOOT. By default this is set to true and simply pulls in two HTML files:

These includes are added to every outputted file from inside both the posts and pages directories on build.

Syncing Changes with rsync

Although it adds another dependency to the project, I believe utilizing rsync for the generated files is far better then nuking the directory from orbit each time. This also provides a cleaner experience for users syncing their _output directory with their web server of choice.

On the Horizon…

My plan was to also tackle the issue of “auto rebuilds” when running pblog locally. This became more of a headache than I initially estimated - so it was dropped from this patch. My hope is to get something up-and-running in the near future, while avoiding the inclusion of yet another major dependency. Anyone more experienced than myself in the ways of “auto rebuilds” is free to open a patch if they so desire!

Thanks for your interest in these minor updates!

P.S. Don’t forget - if your website runs on pblog be sure to reach out and get it featured on the homepage!

+

Even though pblog was just launched a week ago, it has since been updated with some nice quality-of-life improvements.

+ +

A new variable was added to the main pblog.sh configuration file called INC_HEAD_FOOT. By default this is set to true and simply pulls in two HTML files:

+ +

These includes are added to every outputted file from inside both the posts and pages directories on build.

+

Syncing Changes with rsync

+

Although it adds another dependency to the project, I believe utilizing rsync for the generated files is far better then nuking the directory from orbit each time. This also provides a cleaner experience for users syncing their _output directory with their web server of choice.

+

On the Horizon…

+

My plan was to also tackle the issue of “auto rebuilds” when running pblog locally. This became more of a headache than I initially estimated - so it was dropped from this patch. My hope is to get something up-and-running in the near future, while avoiding the inclusion of yet another major dependency. Anyone more experienced than myself in the ways of “auto rebuilds” is free to open a patch if they so desire!

+

Thanks for your interest in these minor updates!

+

P.S. Don’t forget - if your website runs on pblog be sure to reach out and get it featured on the homepage!

diff --git a/_output/feed.xml b/_output/feed.xml index 878d284..a2c636f 100644 --- a/_output/feed.xml +++ b/_output/feed.xml @@ -8,7 +8,7 @@ Copyright 2022, Bradley Taunt 60 - Fri, 15 Jul 2022 14:57:58 EDT + Fri, 15 Jul 2022 11:42:04 EDT 2022/07/15/5 First Community Patch & “Tweaks” https://pblog.xyz/blog/community-patch.html @@ -18,14 +18,45 @@

Fri, 15 Jul 2022

-

pblog has received its first community patch! By “community” I mean someone other than myself has helped make this blog generator even better. So special thanks to Matthew Graybosch for contributing to this humble project and patching in some solid quality of life improvements.

This is why open source is great: smarter people can help fix your mashed-up spaghetti code!

The Changes

  1. Both pages and posts now generated Table of Contents by default
    • You have the ability to disable this site-wide in the pblog config
  2. Ability to disable Pandoc generated syntax highlighting
  3. xsltproc will now generate HTML5 and include the RSS feed description under the title
  4. New metadata variable (HTML_LANG) in the pblog.sh config
  5. Generated pages and posts now have “Table of Contents” by default
    • This can be disabled in individual files with toc: false
  6. Cleaned up redundant find statements

Some Features Left Behind…

Also suggested in this patch was the addition of more advanced image manipulation via ImageMagick. This additional feature was pretty great from my testing but I felt as though adding an extra dependency and slightly more complex settings to pblog was moving things further from simplicity.

BUT - that doesn’t mean you can’t take this great feature with you!

Introducing “Tweaks”

I feel that pblog should always remain as simple as possible at the core. Let people get something up-and-running with the least amount of friction as possible. But I know that some users might want to squeeze just a little bit more out of it. This is where the new Tweaks section comes in.

Feel free to check out the official Tweaks page and don’t be afraid to add your own by opening a patch-set!

That’s all for now, thanks for reading!

– Brad

]]> +

pblog has received its first community patch! By “community” I mean someone other than myself has helped make this blog generator even better. So special thanks to Matthew Graybosch for contributing to this humble project and patching in some solid quality of life improvements.

+

This is why open source is great: smarter people can help fix your mashed-up spaghetti code!

+

The Changes

+
    +
  1. Both pages and posts now generated Table of Contents by default +
      +
    • You have the ability to disable this site-wide in the pblog config
    • +
  2. +
  3. Ability to disable Pandoc generated syntax highlighting
  4. +
  5. xsltproc will now generate HTML5 and include the RSS feed description under the title +
  6. +
  7. New metadata variable (HTML_LANG) in the pblog.sh config
  8. +
  9. Generated pages and posts now have “Table of Contents” by default +
      +
    • This can be disabled in individual files with toc: false
    • +
  10. +
  11. Cleaned up redundant find statements
  12. +
+

Some Features Left Behind…

+

Also suggested in this patch was the addition of more advanced image manipulation via ImageMagick. This additional feature was pretty great from my testing but I felt as though adding an extra dependency and slightly more complex settings to pblog was moving things further from simplicity.

+

BUT - that doesn’t mean you can’t take this great feature with you!

+

Introducing “Tweaks”

+

I feel that pblog should always remain as simple as possible at the core. Let people get something up-and-running with the least amount of friction as possible. But I know that some users might want to squeeze just a little bit more out of it. This is where the new Tweaks section comes in.

+

Feel free to check out the official Tweaks page and don’t be afraid to add your own by opening a patch-set!

+

That’s all for now, thanks for reading!

+

– Brad

]]> hello@tdarb.org (Bradley Taunt) https://pblog.xyz/blog/community-patch.html
- Wed, 27 Jul 2022 14:57:58 EDT + Wed, 27 Jul 2022 11:42:04 EDT 2022/07/27/3 New Default Styling and 2x Faster! https://pblog.xyz/blog/default-styles.html @@ -35,14 +66,33 @@

Wed, 27 Jul 2022

-

If it wasn’t already obvious, this project has received a minor styling overhaul. But looks weren’t the only thing updated with this latest patch.

The total build process time is now two times faster!

Keep reading for more details.

The Default “Theme”

The styling changes aren’t anything ground breaking. They simply center the main content and add a little more visual separation of the content and backdrop. Again, you can customize pblog as you see fit, but having a sane default is always nice.

New Config Setup

Since updates and performance fixes might continue to come through in the future, I didn’t want to make users play around with their default configuration every single time. Now, all main configuration is handled in the _config.sh file.

Feels cleaner already, right?

Cutting the Build Time in Half

I must give big kudos to Matthew Graybosch for inspiring this pretty big improvement. After some discussion over emails we both agreed that it seemed overkill to render the blog content twice (once for the XML feed itself and then again for all posts listed under blog). Performance wasn’t the initial goal when I first launched this project, but now that the dust has settled it seemed appropriate to go back and fix some things.

pblog now only needs to render the blog posts found in the posts directory once. It still produces semantic XML and keeps the webview versions of the articles looking solid. Overall I’m pretty happy with this little improvement - it should pretty noticeable on projects rendering many posts.

Far From Perfect

This project is still very much in it’s infancy. So if you notice something odd or broken in your own testing, please don’t hesitate to open a patch or simply bring up the issue!

Thanks for reading,

– Brad

]]> +

If it wasn’t already obvious, this project has received a minor styling overhaul. But looks weren’t the only thing updated with this latest patch.

+

The total build process time is now two times faster!

+

Keep reading for more details.

+

The Default “Theme”

+

The styling changes aren’t anything ground breaking. They simply center the main content and add a little more visual separation of the content and backdrop. Again, you can customize pblog as you see fit, but having a sane default is always nice.

+

New Config Setup

+

Since updates and performance fixes might continue to come through in the future, I didn’t want to make users play around with their default configuration every single time. Now, all main configuration is handled in the new _config.sh file.

+

Feels cleaner already, right?

+

Cutting the Build Time in Half

+

I must give big kudos to Matthew Graybosch for inspiring this pretty big improvement. After some discussion over emails we both agreed that it seemed overkill to render the blog content twice (once for the XML feed itself and then again for all posts listed under blog). Performance wasn’t the initial goal when I first launched this project, but now that the dust has settled it seemed appropriate to go back and fix some things.

+

pblog now only needs to render the blog posts found in the posts directory once. It still produces semantic XML and keeps the webview versions of the articles looking solid. Overall I’m pretty happy with this little improvement - it should pretty noticeable on projects rendering many posts.

+

Far From Perfect

+

This project is still very much in it’s infancy. So if you notice something odd or broken in your own testing, please don’t hesitate to open a patch or simply bring up the issue!

+

Thanks for reading,

+

– Brad

]]> hello@tdarb.org (Bradley Taunt) https://pblog.xyz/blog/default-styles.html
- Mon, 04 Jul 2022 14:57:58 EDT + Mon, 04 Jul 2022 11:42:04 EDT 2022/07/04/1 Introducing pblog https://pblog.xyz/blog/pblog-intro.html @@ -52,9 +102,33 @@

Mon, 04 Jul 2022

-

This article is a living document. It will always have the most up-to-date information on getting started with pblog.

Last Updated: July 27, 2022


Although this project was already announced a couple days ago, I thought it might be best to actually breakdown pblog into greater detail.

Enough chit-chat, let’s get into it!

Main Goal

The entire purpose of pblog is to be as bare-bones as possible, while still maintaining a pleasant writing workflow. Users write their posts and pages in Markdown - pblog handles everything else:

Site Structure

After you’ve cloned the official pblog repo, the next thing you should do is edit the main _config.sh file in the root directory. This will give you a better understanding of how everything is built.

Once generated, pblog structures the final website files as such:

_output/
+

This article is a living document. It will always have the most up-to-date information on getting started with pblog.

+

Last Updated: July 27, 2022

+
+

Although this project was already announced a couple days ago, I thought it might be best to actually breakdown pblog into greater detail.

+

Enough chit-chat, let’s get into it!

+

Main Goal

+

The entire purpose of pblog is to be as bare-bones as possible, while still maintaining a pleasant writing workflow. Users write their posts and pages in Markdown - pblog handles everything else:

+
    +
  • Posts and pages generated via Pandoc with minimal CSS
  • +
  • RSS feed at feed.xml
  • +
  • Generated blog listing at blog/index.html
  • +
  • Browser-styled XML (in supported browsers)
  • +
+

Site Structure

+

After you’ve cloned the official pblog repo on Codeberg, the next thing you should do is edit the main _config.sh file in the root directory. This will give you a better understanding of how everything is built.

+

Once generated, pblog structures the final website files as such:

+
_output/
     |__blog/
         |__index.html
         |__blog-post-example.html
@@ -62,17 +136,46 @@
     |__feed.xml
     |__index.html
     |__rss.xsl
-    |__style.css

This structure is completely customizable by simply editing the pblog.sh file (if you so desire).

Headers and Footers

By default pblog will add the header and footer includes to every individual post and page. To edit these, simply open the _header.html and _footer.html files respectively.

Important: To avoid rendering issues DO NOT remove the included article opening and closing tags within those files. Everything else you can edit, remove, etc.

Posts and Pages

Posts and pages are written via Markdown inside the posts and pages folders respectively.

Individual posts require the following headers (take note of the date format):

---
+    |__style.css
+

This structure is completely customizable by simply editing the pblog.sh file (if you so desire).

+

Headers and Footers

+

By default pblog will add the header and footer includes to every individual post and page. To edit these, simply open the _header.html and _footer.html files respectively.

+

Important: To avoid rendering issues DO NOT remove the included article opening and closing tags within those files. Everything else you can edit, remove, etc.

+

Posts and Pages

+

Posts and pages are written via Markdown inside the posts and pages folders respectively.

+

Individual posts require the following headers (take note of the date format):

+
---
 title: Blog Title
 date: Mon, 04 Jul 2022
----

while individual pages only require a title:

---
+---
+

while individual pages only require a title:

+
---
 title: Page Title
----

This makes for an easier switch over from other SSG platforms like Jekyll or Hugo.

The Build Process

The main variables at the top of the pblog.sh file need to edited with your own details before generating your website. Those variables are fairly self-explanatory and simple to edit.

All you need to do now is run make (or make serve if you’re looking to test locally) and you’re done. Your website should now be fully generated inside the include _output directory. For quick reference:

  1. pblog converts your Markdown posts into two variations of HTML
    • One is used specifically for rendering itself inside the RSS feed
    • The other is used for linking in a browser
  2. Next, pblog converts your Markdown pages into HTML
  3. All of these generated HTML files are then moved to the _output folder

pblog is also smart enough to automatically generate a main blog list directory for you. This index.html file is placed inside the _output/blog folder on build. You can see an example of the blog list on this very website.

Uploading to the WWW

Those with more experience will probably lean towards using a utility like rsync to sync the contents of their _output folder with their web server. For those with less experience, I recommend using something like Netlify Drop to make things as friction-less as possible.

Wrapping Up

There isn’t much else to say. pblog is as static or flexible as you chose it to be. If you have any ideas on how to improve things or come across any bugs, please open a ticket or PR on the official repo.

Thanks and happy blogging with pblog!

]]> +---
+

This makes for an easier switch over from other SSG platforms like Jekyll or Hugo.

+

The Build Process

+

The main variables at the top of the pblog.sh file need to edited with your own details before generating your website. Those variables are fairly self-explanatory and simple to edit.

+

All you need to do now is run make (or make serve if you’re looking to test locally) and you’re done. Your website should now be fully generated inside the include _output directory. For quick reference:

+
    +
  1. pblog converts your Markdown posts into two variations of HTML +
      +
    • One is used specifically for rendering itself inside the RSS feed
    • +
    • The other is used for linking in a browser
    • +
  2. +
  3. Next, pblog converts your Markdown pages into HTML
  4. +
  5. All of these generated HTML files are then moved to the _output folder
  6. +
+

pblog is also smart enough to automatically generate a main blog list directory for you. This index.html file is placed inside the _output/blog folder on build. You can see an example of the blog list on this very website.

+

Uploading to the WWW

+

Those with more experience will probably lean towards using a utility like rsync to sync the contents of their _output folder with their web server. For those with less experience, I recommend using something like Netlify Drop to make things as friction-less as possible.

+

Wrapping Up

+

There isn’t much else to say. pblog is as static or flexible as you chose it to be. If you have any ideas on how to improve things or come across any bugs, please open a ticket or PR on the official repo.

+

Thanks and happy blogging with pblog!

]]> hello@tdarb.org (Bradley Taunt) https://pblog.xyz/blog/pblog-intro.html
- Thu, 30 Jun 2022 14:57:58 EDT + Thu, 30 Jun 2022 11:42:04 EDT 2022/06/30/4 Announcing pblog https://pblog.xyz/blog/pblog-launch.html @@ -81,12 +184,14 @@

Announcing pblog

Thu, 30 Jun 2022

-

It’s time to celebrate! The official launch of pblog happened today.

There isn’t much else to say. All details and instructions on how to start your own pblog can be found on the main homepage for this project.

Thanks for reading!

]]> +

It’s time to celebrate! The official launch of pblog happened today.

+

There isn’t much else to say. All details and instructions on how to start your own pblog can be found on the main homepage for this project.

+

Thanks for reading!

]]> hello@tdarb.org (Bradley Taunt) https://pblog.xyz/blog/pblog-launch.html
- Fri, 08 Jul 2022 14:57:58 EDT + Fri, 08 Jul 2022 11:42:04 EDT 2022/07/08/5 Includes, rsync and Variables - Oh My! https://pblog.xyz/blog/small-patch.html @@ -96,9 +201,26 @@

Fri, 08 Jul 2022

-

Even though pblog was just launched a week ago, it has since been updated with some nice quality-of-life improvements.

A new variable was added to the main pblog.sh configuration file called INC_HEAD_FOOT. By default this is set to true and simply pulls in two HTML files:

These includes are added to every outputted file from inside both the posts and pages directories on build.

Syncing Changes with rsync

Although it adds another dependency to the project, I believe utilizing rsync for the generated files is far better then nuking the directory from orbit each time. This also provides a cleaner experience for users syncing their _output directory with their web server of choice.

On the Horizon…

My plan was to also tackle the issue of “auto rebuilds” when running pblog locally. This became more of a headache than I initially estimated - so it was dropped from this patch. My hope is to get something up-and-running in the near future, while avoiding the inclusion of yet another major dependency. Anyone more experienced than myself in the ways of “auto rebuilds” is free to open a patch if they so desire!

Thanks for your interest in these minor updates!

P.S. Don’t forget - if your website runs on pblog be sure to reach out and get it featured on the homepage!

]]> +

Even though pblog was just launched a week ago, it has since been updated with some nice quality-of-life improvements.

+ +

A new variable was added to the main pblog.sh configuration file called INC_HEAD_FOOT. By default this is set to true and simply pulls in two HTML files:

+ +

These includes are added to every outputted file from inside both the posts and pages directories on build.

+

Syncing Changes with rsync

+

Although it adds another dependency to the project, I believe utilizing rsync for the generated files is far better then nuking the directory from orbit each time. This also provides a cleaner experience for users syncing their _output directory with their web server of choice.

+

On the Horizon…

+

My plan was to also tackle the issue of “auto rebuilds” when running pblog locally. This became more of a headache than I initially estimated - so it was dropped from this patch. My hope is to get something up-and-running in the near future, while avoiding the inclusion of yet another major dependency. Anyone more experienced than myself in the ways of “auto rebuilds” is free to open a patch if they so desire!

+

Thanks for your interest in these minor updates!

+

P.S. Don’t forget - if your website runs on pblog be sure to reach out and get it featured on the homepage!

]]> hello@tdarb.org (Bradley Taunt) https://pblog.xyz/blog/small-patch.html
diff --git a/_output/index.html b/_output/index.html index 54057f7..82e3b95 100644 --- a/_output/index.html +++ b/_output/index.html @@ -88,14 +88,77 @@ Home /  Blog /  Tweaks /  - Download + Download

pblog.xyz

-

Peanut butter sandwich

Pandoc static blog generator

pblog comes packed with an incredible list of features:

and it also doesn’t ship with a lot of other features:

But you can add these things yourself with a little know-how and patience! The goal of pblog is to remain as bare-bones as possible, so these “extras” are left out intentionally.

Live Demo

This very website is a live demo! Mind blowing, right? Take a look at the automated blog list to see some blog posts.

Requirements

On MacOS / BSD Systems

On Linux

Getting Started

  1. Clone the project repo: https://git.sr.ht/~tdarb/pblog.xyz
  2. Edit the variables at the top of the pblog.sh file
  3. !! Pay close attention to the OS variable to set your correct operating system !!
  4. Edit the posts in posts and pages in pages to your own
  5. Run make from the root directory
  6. Upload the contents of the _output folder to your server
  7. Profit!!!

For a more in-depth look, take a look at the article Introducing pblog

Base Settings

Table of Contents

By default pblog ships with TOC (Table of Contents) enabled. You can disable this on each individual page or post by editing the TOCvariable in pblog.sh to false:

TOC: false

Code Highlighting

pblog uses the standard syntax highlighting provided with Pandoc. To disable this, set the SYNTAX variable to false in pblog.sh:

SYNTAX: false

Extras

Sites built with pblog

You can share your pblog websites by emailing me at the address listed below and I’ll add them here.

hello at tdarb {dot} org

+

Peanut butter sandwich

+

Pandoc static blog generator

+

pblog comes packed with an incredible list of features:

+ +

and it also doesn’t ship with a lot of other features:

+ +

But you can add these things yourself with a little know-how and patience! The goal of pblog is to remain as bare-bones as possible, so these “extras” are left out intentionally.

+

Live Demo

+

This very website is a live demo! Mind blowing, right? Take a look at the automated blog list to see some blog posts.

+

Requirements

+

On MacOS / BSD Systems

+ +

On Linux

+ +

Getting Started

+
    +
  1. Clone the project repo: https://codeberg.org/tdarb/pblog
  2. +
  3. Edit the variables at the top of the pblog.sh file
  4. +
  5. !! Pay close attention to the OS variable to set your correct operating system !!
  6. +
  7. Edit the posts in posts and pages in pages to your own
  8. +
  9. Run make from the root directory
  10. +
  11. Upload the contents of the _output folder to your server
  12. +
  13. Profit!!!
  14. +
+

For a more in-depth look, take a look at the article Introducing pblog

+

Base Settings

+

Table of Contents

+

By default pblog ships with TOC (Table of Contents) enabled. You can disable this on each individual page or post by editing the TOCvariable in pblog.sh to false:

+
TOC: false
+

Code Highlighting

+

pblog uses the standard syntax highlighting provided with Pandoc. To disable this, set the SYNTAX variable to false in pblog.sh:

+
SYNTAX: false
+

Extras

+ +

Sites built with pblog

+ +

You can share your pblog websites by emailing me at the address listed below and I’ll add them here.

+

hello at tdarb {dot} org

diff --git a/_output/tweaks.html b/_output/tweaks.html index 72f3617..8a0821b 100644 --- a/_output/tweaks.html +++ b/_output/tweaks.html @@ -88,7 +88,7 @@ Home /  Blog /  Tweaks /  - Download + Download
@@ -96,9 +96,26 @@

Tweaks

-

Tweaks Explained

“Tweaks” are extra features that are not packaged within the default pblog project. If you have your own tweaks you would like to include, be sure to open a patch.



Magick Images

by: Matthew Graybosch

This tweak gives you the ability to automatically convert PNG and JPG images to WEBP and AVIF files when used with the picture HTML element.

Requirements:

Then change your base makefile to reflect the following:

.SUFFIXES: .png .jpg .webp .avif
+

Tweaks Explained

+

“Tweaks” are extra features that are not packaged within the default pblog project. If you have your own tweaks you would like to include, be sure to open a patch.

+
+


+

Magick Images

+

by: Matthew Graybosch

+

This tweak gives you the ability to automatically convert PNG and JPG images to WEBP and AVIF files when used with the picture HTML element.

+

Requirements:

+ +

Then change your base makefile to reflect the following:

+
.SUFFIXES: .png .jpg .webp .avif
 
 .jpg.webp:
     magick -quality 80 "$<" "$@"
@@ -132,7 +149,14 @@
     python3 -m http.server --directory _output/
 
 clean:
-    rm _output/* rss/* $(JPEG_WEBP) $(JPEG_AVIF) $(PNG_WEBP) $(PNG_AVIF)

That’s it. Enjoy!



Hiding Table of Contents “Heading”

by Bradley Taunt

By default the include Table of Contents displays a title and styled section. To disable this, simply edit the style.css file and comment out or delete the following:

#TOC {
+    rm _output/* rss/* $(JPEG_WEBP) $(JPEG_AVIF) $(PNG_WEBP) $(PNG_AVIF)
+

That’s it. Enjoy!

+
+


+

Hiding Table of Contents “Heading”

+

by Bradley Taunt

+

By default the include Table of Contents displays a title and styled section. To disable this, simply edit the style.css file and comment out or delete the following:

+
#TOC {
     border: 1px solid;
     position: relative;
 }
@@ -143,7 +167,11 @@
     font-weight: bold;
     padding: 5px;
     position: relative;
-}


Adding navigation to blog index and RSS feed

In order to include any main navigation (or other custom elements for that matter) on the main blog index page and RSS feed.xml, simply edit the rss.xml file in the root directory. Be sure to add your elements / content inside the body tag near the bottom of the page.

+}
+
+


+

Adding navigation to blog index and RSS feed

+

In order to include any main navigation (or other custom elements for that matter) on the main blog index page and RSS feed.xml, simply edit the rss.xml file in the root directory. Be sure to add your elements / content inside the body tag near the bottom of the page.

diff --git a/pages/index.md b/pages/index.md index d05c319..551257b 100644 --- a/pages/index.md +++ b/pages/index.md @@ -44,7 +44,7 @@ This very website is a live demo! Mind blowing, right? Take a look at the [autom ## Getting Started -1. Clone the project repo: [https://git.sr.ht/~tdarb/pblog.xyz](https://git.sr.ht/~tdarb/pblog.xyz) +1. Clone the project repo: [https://codeberg.org/tdarb/pblog](https://codeberg.org/tdarb/pblog) 2. Edit the variables at the top of the `pblog.sh` file 3. **!! Pay close attention to the `OS` variable to set your correct operating system !!** 4. Edit the posts in `posts` and pages in `pages` to your own diff --git a/posts/pblog-intro.md b/posts/pblog-intro.md index dc20924..d5a348d 100644 --- a/posts/pblog-intro.md +++ b/posts/pblog-intro.md @@ -24,7 +24,7 @@ The entire purpose of `pblog` is to be as bare-bones as possible, while still ma ### Site Structure -After you've cloned the [official pblog repo](https://git.sr.ht/~tdarb/pblog.xyz), the next thing you should do is edit the main `_config.sh` file in the root directory. This will give you a better understanding of how everything is built. +After you've cloned the [official pblog repo on Codeberg](https://codeberg.org/tdarb/pblog), the next thing you should do is edit the main `_config.sh` file in the root directory. This will give you a better understanding of how everything is built. Once generated, *pblog* structures the final website files as such: @@ -91,6 +91,6 @@ Those with more experience will probably lean towards using a utility like `rsyn ### Wrapping Up -There isn't much else to say. `pblog` is as static or flexible as you chose it to be. If you have any ideas on how to improve things or come across any bugs, please [open a ticket or PR on the official repo](https://git.sr.ht/~tdarb/pblog.xyz). +There isn't much else to say. `pblog` is as static or flexible as you chose it to be. If you have any ideas on how to improve things or come across any bugs, please [open a ticket or PR on the official repo](https://codeberg.org/tdarb/pblog). Thanks and happy blogging with *pblog*! \ No newline at end of file