Code Monkey home page Code Monkey logo

blades's Introduction

blades's People

Contributors

chrisfinazzo avatar grego avatar zoosky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blades's Issues

Multiple slugs for a single page

I would like the ability to give multiple links for a single page. I'm happy to implement this, but I see two possible approaches:

  1. Make the slug variable into a collection.
  2. Add a new optional variable for supplemental slugs.

Which of those would be best?

Additionally, I'd be interested in adding an option to automatically generate permalinks from file names, but that's separate and not necessarily within the scope of the main issue. Are there any plans for easy extensibility?

Links aren't relative

When Blades generates links, it seems to generate them relative to the uri root as opposed to relatively. This causes problems because it makes it so that Blades can't be used for a subdirectory without setting the uri field, and setting the uri field makes it impossible to also view locally.

Unable to generate static webpage

I use Termux compiled blades, and running blades build can only generate atom.xml,index.html,rss.xml,sitemap.xml.

The architecture of my device is aarch64.

Below is my Blades.toml file:

title = "blablabla"
description = ""
keywords = ""
image = ""
theme = "BLADE.386"

[author]
name = "Mumulhl"

I confirmed that I have cloned the BLADE.386 theme in the themes folder.

How to make a blog with URLs including the date?

If I wanted to use Blades to write a blog with the date in each post's URL like https://www.maximumethics.dev/blog/2020/07/my-first-post/, is this possible? Could you document how to do this? It's OK if it requires a bit more manual work than it would with Hugo, I understand Blades is intended to be much simpler, but I just can't figure out how to go about it, if it can be done.

The example "blogs" I see in the theme directory do not have dates in the post URLs.

Having dates in the URL would be very helpful if I were moving an existing blog from e.g. Wordpress, since cool URIs don't change.

Table of contents with access to all of the site data

In the readme, you say there is a TOC functionality. How can i use it in a theme?

Example:

In my markdown file, there are multiple headings

# Header 1
## Subheader
# Header 2

Now i want something like the following html snippet to include into my templates.

<ul>
<li>Header 1</li>
<li><ul>
<li>Subheader</li>
</ul></li>
<li>Header 2</li>
</ul>

I cannot find any examples in your provided themes for TOC.

I am playing around with the idea to create a theme, which is highly inspired by mdBook theme.

Applying Markdown to arbitrary extra fields

I've looked at the documentation and the code, and it seems that it is hardcoded which fields are treated as Markdown.

I would like to be able to parse an extra field as Markdown in a template.

<webMaster> missing / in rss.xml

my rss.xml page dont work, in blades/src/templates/rss.xml,line 12, <webMaster>{{email}}<webMaster> should be <webMaster>{{email}}</webMaster>.

Release 1.0

Blades seem stable to me now to mark the next release as 1.0,
It would probably make sense to wait for maciejhirsz/ramhorns#75 to be merged, so that we can use upstream Ramhorns.

Any feedback on current stability and desired features/improvements/breaking changes is the most welcome, to make this release as robust as possible.

use markdown as source post format

I'am sorry if the description is not OK.

use toml to write blog seems a bit more "anti-human", if change to markdown, it will be very wonderful

RSS feed has <p> tags inside <description>

According to https://stackoverflow.com/questions/7203450/what-paragraphs-and-line-breaks-are-valid-rss-formatting#comment8810661_7203450 (and other sources on the internet), <p> tags inside <description> violate the RSS spec.

Blades seems to automatically wrap the summary of a page in these tags, since I get them in my normal template as well. Why? How about making it so {{summary}} doesn't automatically get wrapped and relying on the user to make sure they are marked up correctly, and the feed will be valid as well?

Support Multilingual

Any plan to have content multilingual support?

I know blades want to stay dead simple. But multilingual is one of those things that need to be supported at the core otherwise it become messy.

Issues with passing CRLF to pulldown_cmark

There's an issue when developing on windows with code blocks in a markdown file such as

```
fn foo () {
  "bar";
}
```

Windows seems to send \r\n which pulldown_cmark doesn't handle well (github issue) and ends up inserting an error message into the resultant html. I fixed it for myself here
markbahnman@7a762d5 but there might be a better way to handle it.

Bad `date` value when creating a page

New user here... Simply trying to create a simple site:

$ mkdir new-site
$ cd new-site
$ blades init
Enter the basic site info
Name: Un test
Author: Rien
$ blades new
Enter the basic info of the new page
Title: toto
Slug (short name in the URL): toto
Path (relative to the content directory):
"content/2020-11-25-toto.toml" created
Set the EDITOR environment variable to edit new pages immediately
$ blades build
Error parsing content/2020-11-25-toto.toml: invalid type: string "2020-11-25", expected a TOML datetime for key `date` at line 3 column 8

content/2020-11-25-toto.toml:

title = "toto"
slug = "toto"
date = "2020-11-25"

content = """
Put your *possibly markdowned* content here.
"""

Removing the date altogether or correcting it (removing enclosing ") fixes this error, but still can't get the site to build:

$ blades build
Template file section.html not found.

I think I've read the doc but can't figure out exactly what I'm doing wrong. I can provide some PR for adding documentation if needed, but don't know what to add :D

blades build fails on output of blades init

I would expect building a freshly initialised directory to work, as a sanity check. Instead I got:

blades build
Error parsing config file Blades.toml: invalid type: map, expected a string at line 7 column 1

Blades.toml contains this:

title = "notes"
description = ""
keywords = ""
image = ""
theme = ""

[author]
name = "Glyn Normington"

It's not obvious from the Configuration page that there is anything incorrect.

I'm using blades v0.5.0 on Linux.

(FWIW deleting the last two lines of Blades.toml prevents the above error.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.