Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementing Basic theme #16

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

implementing Basic theme #16

wants to merge 18 commits into from

Conversation

pietroppeter
Copy link
Member

@pietroppeter pietroppeter commented Feb 25, 2023

implement basic theme, see https://sgoel.dev/posts/

fix #5.

main things happening here:

  • nim files are converted to json before converting them to html
  • index is generated with data from json
  • I will need new "doc blocks" to make sure that new js or similar stuff survives the json -> html trip

Todo:

  • navbar with: nblog and about (remove home emoji and title)
  • pick a first page to work on: city_in_a_bottle
  • change folder structure
    • srcDir: posts
    • homeDir: docs
    • templateDirs: templates
    • requires to have a new useNblog theme
    • add minimal src/nblog.nim
  • custom header.mustache
  • add title and subtitle (how to...) to article
  • add pubDate to article
  • nim(ib) -> json -> html
    • nbSaveJson
    • nbJsonToHtml
  • nblog cli
    • add climate source (currently depends on devel)
    • build (--json)
    • help
    • init
  • convert drafts
    • city in a bottle
    • arraymancer_tutorial
    • ...
  • index collects json and creates the all posts index
  • add about page
  • add redirect for all drafts
  • change GitHub pages to deploy from docs + publish action

nice to have but likely for later:

  • multiauthor
  • comments with giscus
  • add tags and generate static tag stuff
  • add netlify preview

@moigagoo
Copy link

add climate source (currently depends on devel)

No need for that anymore. Add 1.0.2 to your dependencies.

@pietroppeter
Copy link
Member Author

 (I like the very minimal theme shown here: https://manu.zone)

@HugoGranstrom
Copy link
Member

It is quite nice, they manage to get a lot of features (search, tags, posts) in a minimal style. I'm not quite fond of the emoji-only style in the navbar, though, but that's something that one can change quite easily. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basic theme
3 participants