Skip to content

Commit

Permalink
fix: fixed responsiveness for language selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj Nandan Sharma authored and Raj Nandan Sharma committed Nov 16, 2024
1 parent 38c4439 commit 052e38a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 0 additions & 8 deletions docs/customize-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,3 @@ analytics:
- id: "FKOdsKener"
type: "MIXPANEL"
```

## siteURL

This is required for sitemap generation

```yaml
siteURL: https://kener.ing
```
6 changes: 6 additions & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ ghcr.io/rajnandan1/kener:latest

You should mount two host directories to persist your configuration and database. [Environmental variables](https://rajnandan1.github.io/kener-docs/docs/environment-vars) can be passed with `-e` An example `docker run` command:

Make sure `./database` and `./config` directories are present in the root directory

```shell
mkdir database
mkdir config
curl -o config/site.yaml https://raw.githubusercontent.com/rajnandan1/kener/refs/heads/main/config/site.example.yaml
curl -o config/monitors.yaml https://raw.githubusercontent.com/rajnandan1/kener/refs/heads/main/config/monitors.example.yaml
docker run \
-v $(pwd)/database:/app/database \
-v $(pwd)/config:/app/config \
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import * as DropdownMenu from "$lib/components/ui/dropdown-menu";
import { Languages, Menu } from "lucide-svelte";
import { base } from "$app/paths";
import { analyticsEvent } from "$lib/analytics";
export let data;
let defaultPattern = data.site?.pattern || "squares";
</script>
Expand Down Expand Up @@ -35,6 +36,7 @@
<a
href={navItem.url.startsWith("/") ? base + navItem.url : navItem.url}
class="flex"
on:click={() => analyticsEvent("nav", navItem.name)}
>
{#if navItem.iconURL}
<img
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(kener)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
</footer>
{/if}
{#if !!!data.embed}
<div class="fixed bottom-4 right-4">
<div class="blurry-bg fixed bottom-4 right-4 z-20">
{#if data.site.i18n && data.site.i18n.locales && Object.keys(data.site.i18n.locales).length > 1}
<DropdownMenu.Root>
<DropdownMenu.Trigger>
Expand Down

0 comments on commit 052e38a

Please sign in to comment.