This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/pages/literatura.vue

54 lines
1.6 KiB
Vue
Raw Normal View History

2020-07-22 13:19:23 -07:00
<template>
<div class="container">
<Homepage/>
<h1>
<Icon v="books"/>
Niebinarna polszczyzna w literaturze i prasie
</h1>
<LiteratureMenu all/>
<div v-for="template in templates">
<template v-if="template.sources.length">
<h2 v-if="template.name" class="h4">
<nuxt-link :to="'/' + template.pronoun()">
{{ template.description }}
<small>({{ template.name() }})</small>
</nuxt-link>
</h2>
<h2 v-else class="h4">
{{ template.description }}
</h2>
<ul class="list-unstyled">
<li v-for="source in template.sources">
<Source :source="source"/>
</li>
</ul>
</template>
</div>
</div>
</template>
<script>
import { templates, otherSources } from '../src/data'
export default {
data() {
return {
templates: [...Object.values(templates), {description: 'Inne formy', sources: otherSources}],
};
},
head() {
const title = 'Niebinarna polszczyzna w literaturze';
return {
title: title,
meta: [
{ hid: 'og:title', property: 'og:title', content: title },
{ hid: 'twitter:title', property: 'twitter:title', content: title },
],
}
},
}
</script>