Giter VIP home page Giter VIP logo

Comments (8)

lupa18 avatar lupa18 commented on September 6, 2024 1

Thanks !! here the result: https://antivirus.tedic.org/ ;)

from hugo-theme-dream.

g1eny0ung avatar g1eny0ung commented on September 6, 2024
  1. This is possible, but I think adding the post image in the individual post page may interfere with the sight, especially when just entering.

  2. Yep, we should handle the date format in different languages. I'm already pushing a commit 5f15a23 to execute it.

    But there have some jobs I need your help.

    You can click the commit link above, copy the zh.toml content, create a new file named es.toml (Spanish), and paste. Then replace the weekday and month with Spanish.

    Last, follow the summary.html's change, add these codes:

    {{ if ... }}
    {{ else if eq .Site.Language.Lang "es" }}
      (Write Spanish date format here)
    {{ else }}
    

    Related doc: https://gohugo.io/content-management/multilingual/#customize-dates

from hugo-theme-dream.

lupa18 avatar lupa18 commented on September 6, 2024
  1. Can you help me with some advices to get it working for our case? Maybe we can put an if "show_covers = true" condition?

  2. I created data folder and put es.toml there. Then I put this in summary:

  {{ if eq .Site.Language.Lang "es" }}
    {{ index .Site.Data.es.Weekday (printf "%d" .Date.Weekday) }},{{ .Date.Day }} de {{ index .Site.Data.es.Month (printf "%d" .Date.Month) }} de {{ .Date.Year }}
  {{ else }}
    {{ .Date.Format "Monday, Jan 2, 2006" }}
  {{ end }}

but got this error:

Rebuild failed:

Failed to render pages: render of "home" failed: execute of template failed: template: index.html:14:9: executing "main" at <.Render>: error calling Render: failed to execute template ["summary"] v: "/usr/share/blog/themes/dream/layouts/_default/summary.html:21:7": execute of template failed: template: _default/summary.html:21:7: executing "_default/summary.html" at <index .Site.Data.es.Weekday (printf "%d" .Date.Weekday)>: error calling index: index of untyped nil

thanks !! 💚

from hugo-theme-dream.

g1eny0ung avatar g1eny0ung commented on September 6, 2024
  1. Ok, I can put a config to show the summary image in the single post page.

    image

    Is your idea to put the image here?

  2. Seems that you have weekday missing in the es.toml. You can give this repo a PR that I can help u to finish it,

from hugo-theme-dream.

lupa18 avatar lupa18 commented on September 6, 2024
  1. Yes ! then I also can move it .. but not sure how to link there. Also I'm not sure where to put featured images, now I'm putting at dream/static/img but I think should be outside dream folder.

  2. #131 💚

from hugo-theme-dream.

g1eny0ung avatar g1eny0ung commented on September 6, 2024

You can put your own images in your blog/static/. All static resources' paths will relative to this folder.

from hugo-theme-dream.

g1eny0ung avatar g1eny0ung commented on September 6, 2024

@lupa18 I'm already finished the question 1.

Here is the doc: https://g1eny0ung.site/hugo-theme-dream/#/params-configurations?id=showsummarycoverinpost-true

from hugo-theme-dream.

g1eny0ung avatar g1eny0ung commented on September 6, 2024

Looks great!

from hugo-theme-dream.

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.