Giter Site home page Giter Site logo

bhugo's People

Contributors

rv-ssheffield avatar zach-johnson 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

Watchers

 avatar  avatar  avatar

bhugo's Issues

Support for front matter tags

Optionally treat Bear hash tags as Hugo front matter tags instead of categories, or possibly allow both with a #prefix/tag prefix for tags

Insert images from anywhere

Instead of having to save images in the Hugo images folder, it would be great to save them anywhere to insert into Bear and then have Bhugo copy the image into the Hugo directory.

Probably will require an additional query to determine image location.

Preserve custom front matter

Instead of totally blowing away the target file, intelligently replace it, preserving any custom front matter that has been added to the file.

Custom date in front matter?

Currently, bhugo updates the date in the front matter with a timestamp from the last edit in bear. I'd like to override this. If I am updating a blog, for example, I don't want the post date to change with every edit.

Exclude tag for ignoring notes

Add a special case for a tag like #blog/exclude or whatever to exclude a note from being parsed by Bear. Could be useful if the file has been updated in Hugo or Bear is out of date for whatever reason and wouldn't want to accidentally overwrite the Hugo version.

Support for summary in front matter

Parse a summary out of the Bear note, perhaps based off a Summary header, treating text up until the next header or until the end of the file as the summary.

Module path should be "github.com/Zach-Johnson/bhugo", not "bhugo"

Background

Module path is inconsistent with go import path.
GO111MODULE=on, run go get github.com/Zach-Johnson/bhugo:

go: downloading github.com/Zach-Johnson/bhugo v0.0.0-20190522182227-e6bde14eaa98
go: github.com/Zach-Johnson/bhugo upgrade => v0.0.0-20190522182227-e6bde14eaa98
go get: github.com/Zach-Johnson/[email protected]: parsing go.mod:
        module declares its path as: bhugo
                but was required as: github.com/Zach-Johnson/bhugo 

Solution

Fix the module path:

  1. Rename the module path to "github.com/Zach-Johnson/bhugo": https://github.com/Zach-Johnson/bhugo/blob/master/go.mod#L1:
module github.com/Zach-Johnson/bhugo
go 1.12
require (
	…
) 
  1. Warning the users not to use the module, get "github.com/Zach-Johnson/bhugo" in GOPATH mode.

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.