blog-hugo | Source of my blog in Hugo | Blog library

 by   orianna-zzo HTML Version: v2.0 License: MIT

kandi X-RAY | blog-hugo Summary

kandi X-RAY | blog-hugo Summary

blog-hugo is a HTML library typically used in Web Site, Blog applications. blog-hugo has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Source of my blog in Hugo
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              blog-hugo has a low active ecosystem.
              It has 8 star(s) with 13 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of blog-hugo is v2.0

            kandi-Quality Quality

              blog-hugo has no bugs reported.

            kandi-Security Security

              blog-hugo has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              blog-hugo is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              blog-hugo releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of blog-hugo
            Get all kandi verified functions for this library.

            blog-hugo Key Features

            No Key Features are available at this moment for blog-hugo.

            blog-hugo Examples and Code Snippets

            Theme
            HTMLdot img1Lines of Code : 2dot img1License : Permissive (MIT)
            copy iconCopy
            $ mkdir themes
            $ git clone https://github.com/orianna-zzo/AllinOne.git themes/AllinOne
              

            Community Discussions

            QUESTION

            Blogdown new post addin creates but not loads new file
            Asked 2020-Nov-05 at 09:17
            Context

            After installed (see previous post) and configured my personal Hugo website for a multilingual setup (by directories), I wanted to start creating content. Ideally, I wanted to use blogdown in RStudio, via the addins. The website uses the Academic theme, rebranded now as Wowchemy.

            The content directory tree is as follows:

            ...

            ANSWER

            Answered 2020-Nov-05 at 09:17

            I am not good at using the debug tools, so just stepped through the code. (Appreciate the suggestion of good tutorials!)

            First things first: When in Doubt, Try to Upgrade Your Software Packages This is the blogdown package creator's advice. Checked.

            1. Launching the addin, blogdown:::new_post_addin is called.
            2. This calls new_post.R. The source code can be find at: https://github.com/rstudio/blogdown/blob/master/inst/scripts/new_post.R
            3. blogdown::new_post() is called at the end, with file parameter from the updated input text field, which is in the case of the question: "post\2020-11-04-how-this-site-was-created\index.en.md"
            4. new_post() function (in hugo.R) calls new_content() with the third argument, open = FALSE, which means it will not open the file, just overwrite the value of the file variable (the path hereafter). At the end of new_post() the file should be opened: this is where the error occurs (by trying to open the file at the wrong place, a wrong path). This means that something bad has to happen in new_content().
            5. new_content() modify the path with content_file(). Also this is the step, where the file is actually created.
            6. content_file() modify the path by adding a prefix to it generated by get_config().
            7. get_config() tries to extract the value of a field in the configuration, in the case of Hugo: try to find contentDir. If this results in NULL (there's no such list item), then see the other possibility and lastly return the default value (which is in the case of Hugo: content). And that's it! RStudio tries to open a file in the content directory, not in a language subdirectory!
            8. That means that the last option is returned in the row of %n% (which is imported from knitr and stands for: if (is.null(x)) y else x). That means that the previous arguments returned NULL, which means contentDir cannot be found in config variable. The default value of config is set by config = load_config(). This uses find_config() to find the config file to parse.
            9. find_config() uses config_files() to set the value in case of Hugo: c('config.toml', 'config.yaml'). But my setting is in a subdirectory: in the /config/default_/languages.toml file! Oh, another Academic theme woe...

            To conclude this: blogdown is currently loads only the config.toml in the root directory to check the contentDir value. The Academic, now Wowchemy Hugo theme however keep config files in the /config/default_/ directory also, where the languages.toml contains the needed value.

            To keep or not to keep Academic theme? Stick with blogdown or not? Maybe the config files should be merged into one config.toml, but couldn't find hint or examples for Academic on the web.

            Edit: OK, the root of the problem has been found, but the actual error which raised the error message is in connection with hugo_convert_one(), as the traceback suggests in the question. This was the first (and last) try to open the file of the wrong path.

            Source https://stackoverflow.com/questions/64688201

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install blog-hugo

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/orianna-zzo/blog-hugo.git

          • CLI

            gh repo clone orianna-zzo/blog-hugo

          • sshUrl

            git@github.com:orianna-zzo/blog-hugo.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Blog Libraries

            hexo

            by hexojs

            mastodon

            by mastodon

            mastodon

            by tootsuite

            halo

            by halo-dev

            vuepress

            by vuejs

            Try Top Libraries by orianna-zzo

            AllinOne

            by orianna-zzoCSS

            orianna-zzo.github.io

            by orianna-zzoHTML

            AllinOne-html

            by orianna-zzoHTML