-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Pagination and dark theme by default #114
Comments
Another question is if it's possible to have drop down menu items? The following does not work:
|
to make the default theme dark
<!DOCTYPE html>
<html class="dark" lang="{{ .Lang }}" itemscope itemtype="http://schema.org/WebPage">
{{- partial "head.html" . -}}
<body class="dark:bg-gray-800 dark:text-white relative flex flex-col min-h-screen">
{{- partial "header.html" . -}}
<main class="flex-1">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html> |
Thanks for the advice. |
i can add a config option to make the default theme dark, but i don't think it's a use full feature |
I think config option would be useful. |
to implement this feature:
NOTE: Create the directory
{{ if .Site.Params.defaultThemeDark }}class="dark"{{ end }} the new file should look something like this: <html {{ if .Site.Params.defaultThemeDark }}class="dark"{{ end }} lang="{{ .Lang }}" itemscope itemtype="http://schema.org/WebPage">
{{- partial "head.html" . -}}
<body class="dark:bg-gray-800 dark:text-white relative flex flex-col min-h-screen">
{{- partial "header.html" . -}}
<main class="flex-1">
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}
</body>
</html>
[params]
defaultThemeDark = true |
Thanks for the solution. Adding links to the posts with the same tags are of huge importance for user experience. The user should not go back to the front page but can follow the post of the same theme from the page she's on. |
Hi all, the modifications above are not really a dark default where the end user can change to light. He can, but next time he opens the site, it will start in dark mode again.
|
Hello, thanks for bautiful theme i've fallen in love at the first glance!
I'm looking for an advice how can I do the following:
Sorry for newbi questions. I tried config.toml
pagination
parameter, it did not work.The text was updated successfully, but these errors were encountered: