Skip to content

how do you create about section (sitelink)? #142

@gnu-forever

Description

@gnu-forever

I have the following configuration:

(setq org-static-blog-publish-title "My blog")
(setq org-static-blog-publish-url "https://example.com/")
(setq org-static-blog-publish-directory "~/projects/org-static-blog/example.com/blog/")
(setq org-static-blog-posts-directory "~/projects/org-static-blog/example.com/blog/posts/")
(setq org-static-blog-drafts-directory "~/projects/org-static-blog/example.com/blog/drafts/")
(setq org-static-blog-enable-tags t)
(setq org-export-with-toc nil)
(setq org-export-with-section-numbers nil)

(setq org-static-blog-page-header
      "<meta name=\"author\" content=\"my name\">
<meta name=\"referrer\" content=\"no-referrer\">
<link href= \"static/style.css\" rel=\"stylesheet\" type=\"text/css\" />")
(setq org-static-blog-page-preamble
      "<div class=\"header\">
<a href=\"https://www.example.com\">My blog site</a>
<div class=\"sitelinks\">
<a href=\"https://www.example.com/archive.html\">Archive</a> | <a href=\"https://www.example.com/about.html\">About</a>
</div>
</div>")
(setq org-static-blog-page-postamble
      "<div id=\"archive\">
<a href=\"https://www.example.com/archive.html\">Other posts</a>
</div>
<center>Generated with <a href=\"https://www.gnu.org/software/emacs\">emacs</a> (<a href=\"https://orgmode.org\">Org mode</a>)<br />Copyright &copy; 2025 - present - <a href=\"https://www.example.com/about.html\">Website</a><br />Powered by <a href=\"https://github.com/bastibe/org-static-blog\">org-static-blog</a> </center>")

How do you create the about.html?

I tried as a draft (about.org) but whenever I org-static-blog-publish, about.html gets generated in "~/projects/org-static-blog/example.com/drafts/about.html" with this href

<div class="post-date">02 Mar 2025</div><h1 class="post-title"><a href="https://example.com/../drafts/about.html">about</a></h1>

I expect about.html to be in "~/projects/org-static-blog/example.com/blog" where other html files are generated.

I didn't configure "~/projects/org-static-blog/example.com/drafts/"

Am I missing something?

Happy GNU.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions