Giter Site home page Giter Site logo

Comments (9)

dkisselev avatar dkisselev commented on September 24, 2024

In the current revision of daux.io, adding the content title to the page title will not be possible without being messy and inefficient, so I don't think it would be worth the effort. (Because the title that shows up on the browser tab is currently hard-coded into the index.php while the content title is generated by load_page which is executed later on in the file.

Take a look at issue #50, when I go through and set up templating, putting the page title will be easy to place into the header as you suggest.

Your website looks pretty good in Chinese with Daux. What would you be looking to have added? I don't know if PHP can handle reading Chinese file names, which is the only thing that I can see on your site that is in English right now.

from daux.io.

htynkn avatar htynkn commented on September 24, 2024

Thanks for your reply.

I mean the support of Chinese file names.
If my file in the docs folder has some chinese word,It can't work well.
Just like the picture:
shoeds

from daux.io.

dkisselev avatar dkisselev commented on September 24, 2024

I just took a quick look, and it looks like many of the current implementations of UTF-8 (which, I assume, contains the Chinese characters that you would need) use an external database for handling files. So people read the filename, save it to a database, then rename the file itself to something that contains ASCII so that PHP can properly handle it.

So Chinese support is possible, but complicates things (since currently, daux does not save any databases or other data to disk, it just reads and processes files). perhaps someone else might want to take the project on.

from daux.io.

dkisselev avatar dkisselev commented on September 24, 2024

@htynkn Can you send me a .zip file with a few docs that have Chinese characters in the name? I might take a shot at making this work.

from daux.io.

htynkn avatar htynkn commented on September 24, 2024

@Kisselev Oh,thanks,I have sent it to your mailbox.

from daux.io.

dkisselev avatar dkisselev commented on September 24, 2024

Thanks, I'll take a look at titles when I get a chance (It's not a very high priority for me though)

The original issue (page titles) will soon be resolved though, in one of my other PR's, I pulled the page title into a separate variable so we can use it to generate the title that appears in the tab.

from daux.io.

dkisselev avatar dkisselev commented on September 24, 2024

I believe that some of the Chinese character support has been fixed up since this issue was opened, and the title does not reflect the current issue. SO closing, but if someone else has issues with unicode/chinese support, open a new issue and we'll work it out then.

from daux.io.

makailol avatar makailol commented on September 24, 2024

Hello,

Sorry to write here on this closed task. I just would like to know whether daux.io has support to use different title for each page?

It would be nice to have support for meta description and meta keyword for each of the separate page.

Would you just confirm if this feature is already implemented in daux.io?

Thanks

from daux.io.

onigoetz avatar onigoetz commented on September 24, 2024

Hello,
We intend to support metadata for the markdown format, this is discussed in #210

Some of the meta informations could be used to generate the page

from daux.io.

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.