Code Monkey home page Code Monkey logo

Comments (5)

WingLim avatar WingLim commented on August 10, 2024 1

This issue is because hugo only add .highlight class to codeblock container after rendering to html.
Which is means something like this in markdown:

```bash
$ hugo new site blogg
$ git init
```

The bash or any other language is required.

And I appreciate if you have any idea to impove theme function or style, please create a new issue about them.

from hugo-tania.

Friedrich42 avatar Friedrich42 commented on August 10, 2024

@WingLim Thank you for such a quick response!
But this button appears only on first code block entry and its doesn't copy anything

from hugo-tania.

WingLim avatar WingLim commented on August 10, 2024

@WingLim Thank you for such a quick response!
But this button appears only on first code block entry and its doesn't copy anything

Can you show me the page of the bug you mention?

from hugo-tania.

Friedrich42 avatar Friedrich42 commented on August 10, 2024

image

markdown

Open your terminal and run:

$ hugo new site blogg
$ git init

This will create a new hugo site and initialize git repository in it.

Then you have to choose a theme to use in your blog. There you can find list of themes.

Pick one, click on it and you'll see a button Download, click on it.

Click on green Code button, choose HTTPS and click copy button

Go to your project's folder

$ cd blogg

Add your theme as git submodule and to config.toml

$ git submodule add [email protected]:WingLim/hugo-tania.git themes/hugo-tania
$ echo theme = \"hugo-tania\" >> config.toml

Now you should be able to preview you site.

$ hugo serve

You will see output like

Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)

Open the address in your browser and you should see your landing web page.

from hugo-tania.

Friedrich42 avatar Friedrich42 commented on August 10, 2024

I am using this theme in my blog, you can try to compile the file and see the problem
https://github.com/Friedrich42/murrr.space/blob/post/how-to-create-tech-blog/content/posts/how-to-create-a-tech-blog.md

from hugo-tania.

Related Issues (20)

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.