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

67 lines
2.1 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, prasie, filmach i serialach
2020-07-22 13:19:23 -07:00
</h1>
<LiteratureMenu all/>
2020-07-24 07:15:28 -07:00
<section>
<ul>
<li v-for="template in templates" v-if="template.sources.length">
<a :href="'#' + (template.name ? template.name().replace(/\//g, '-') : 'inne')">
{{ template.description }}
<small v-if="template.name">({{ template.name() }})</small>
</a>
</li>
</ul>
</section>
2020-07-24 05:14:37 -07:00
<section>
<Share title="Niebinarna polszczyzna w literaturze, prasie, filmach i serialach"/>
</section>
2020-07-24 07:15:28 -07:00
<div v-for="template in templates" v-if="template.sources.length">
<h2 v-if="template.name" class="h4" :id="template.name().replace(/\//g, '-')">
<nuxt-link :to="'/' + template.pronoun()">
2020-07-22 13:19:23 -07:00
{{ template.description }}
2020-07-24 07:15:28 -07:00
<small>({{ template.name() }})</small>
</nuxt-link>
</h2>
<h2 v-else class="h4" id="inne">
{{ template.description }}
</h2>
2020-07-22 13:19:23 -07:00
2020-07-24 07:15:28 -07:00
<ul class="list-unstyled">
<li v-for="source in template.sources">
<Source :source="source"/>
</li>
</ul>
2020-07-22 13:19:23 -07:00
</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>