Skip to content

Commit

Permalink
docs: update content on the home page (RU, EN)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Jul 11, 2024
1 parent 8b2218c commit 1d8d7ab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
12 changes: 5 additions & 7 deletions .vitepress/theme/components/AMWHomeSponsors.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useData } from 'vitepress'
import { VPHomeSponsors } from 'vitepress/theme'
const { frontmatter } = useData()
const message = frontmatter.value.sponsors.introtext ?? null
const data = frontmatter.value.sponsors.collections ?? {}
const props = computed(() => frontmatter.value.sponsors ?? {})
</script>

<template>
<VPHomeSponsors
v-if="data"
:message="message"
:data="data"
/>
<VPHomeSponsors v-if="props.collections" :actionText="props.donationtext" :actionLink="props.donationlink"
:message="props.introtext" :data="props.collections" />
</template>
19 changes: 15 additions & 4 deletions docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# https://vitepress.dev/reference/default-theme-home-page
layout: home
title: Main
gitChangelog: false
hero:
name: "ALT Mobile Wiki"
tagline: the official knowledge library of the ALT Mobile operating system
tagline: the knowledge library of the ALT Mobile operating system
image:
src: /hero.png
alt: GNOME
Expand All @@ -15,13 +16,23 @@ hero:
- theme: alt
text: Documentation
link: /en/wiki/

features:
- title: Feature A
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature B
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature C
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
---

sponsors:
introtext: This service is a Free Software project and its support and development depends only on our joint activity.
collections:
- tier: Organizational structure
size: big
items:
- name: ALT Linux Team
img: ./alt-linux-team.png
url: https://packages.altlinux.org/ru/sisyphus
- name: BaseALT
img: ./basealt.png
url: https://www.basealt.ru
---

0 comments on commit 1d8d7ab

Please sign in to comment.