Coder Social home page Coder Social logo

Comments (5)

AmazingRise avatar AmazingRise commented on June 15, 2024

Go #46

from hugo-theme-diary.

wych42 avatar wych42 commented on June 15, 2024

It may not be duplicate. In my issue, if source code line is not that long, pages render properly.
e.g:

  {{< highlight plaintext "hl_lines=3 " >}}
  highlight
  {{< /highlight >}}

image

I tested with command hugo serve --disableFastRender -D -t ../.. inside exampleSite dir.

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on June 15, 2024

After the lastest commit, the webpage is rendered correctly here.
图片

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on June 15, 2024

It may not be duplicate. In my issue, if source code line is not that long, pages render properly.
e.g:

  {{< highlight plaintext "hl_lines=3 " >}}
  highlight
  {{< /highlight >}}

image

I tested with command hugo serve --disableFastRender -D -t ../.. inside exampleSite dir.

This source code contains {{ }}, which will be processed by Vue.js

 {{< highlight plaintext "hl_lines=3 " >}}
 elasticsearch_1  | {"type": "server", "timestamp": "2020-05-26T02:27:46,322Z", "level": "INFO", "component": "o.e.c.s.ClusterApplierService", "cluster.name": "docker-cluster", "node.name": "es02.host.fqdn", "message": "master node changed {previous [], current [{es01.host.fqdn}{ofLOlsGZT_OgBfJVyr1I0Q}{2vdYT2RGT92uqH4v8S3duQ}{ip.ad.dr.es}{ip.ad.dr.es:9320}{dilm}{ml.machine_memory=201400594432, ml.max_open_jobs=20, xpack.installed=true}]}, added {{es01.host.fqdn}{ofLOlsGZT_OgBfJVyr1I0Q}{2vdYT2RGT92uqH4v8S3duQ}{ip.ad.dr.es}{ip.ad.dr.es:9320}{dilm}{ml.machine_memory=201400594432, ml.max_open_jobs=20, xpack.installed=true}}, term: 4, version: 80, reason: ApplyCommitRequest{term=4, version=80, sourceNode={es01.host.fqdn}{ofLOlsGZT_OgBfJVyr1I0Q}{2vdYT2RGT92uqH4v8S3duQ}{ip.ad.dr.es}{ip.ad.dr.es:9320}{dilm}{ml.machine_memory=201400594432, ml.max_open_jobs=20, xpack.installed=true}}" }
 {{< /highlight >}}

And in the latest commit, I added a v-pre outside the post content, and the {{}} will be escaped as expected.

So I think it's may be duplicated.
But anyway, thanks for your feedback.

If there is any further problems, please feedback here, or close this issue.

from hugo-theme-diary.

wych42 avatar wych42 commented on June 15, 2024

Thanks. Confirm fixed.

from hugo-theme-diary.

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.