Skip to content
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

0.6.0 beta #192

Merged
merged 3 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("src/debug/");

// global vars
eleventyConfig.addNunjucksGlobal("saga11version", "0.5.5 beta");
eleventyConfig.addNunjucksGlobal("saga11version", "0.6 beta");
// get the theme folder name
eleventyConfig.addNunjucksGlobal("theme", theme);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "saga11",
"version": "0.5.5beta",
"version": "0.6beta",
"description": "Website builder based on 11ty & netlifycms",
"main": "eleventy.config.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/content/_datapagination/rick-morty-index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: data/rick-morty-index.njk
permalink: '/rickandmorty/index.html'
---
2 changes: 1 addition & 1 deletion src/content/_datapagination/rick-morty.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pagination:
alias: character
size: 1
layout: data/rick-morty.njk
permalink: '/rick-morty/{{character.name|slug}}/'
permalink: '/rickandmorty/{{character.name|slugify}}/'
---
25 changes: 25 additions & 0 deletions src/themes/grunn/layouts/data/rick-morty-index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
layout: default.njk
title: "Rick & Morty Characters {{ name }}"
---

<section class="flex flex-row space-x-4 flex-wrap">

{% for item in rickandmorty %}
<article class="bg-slate-900 m-2">
<a href="/rick-morty/{{ item.name |slugify }}">

{% picture
img=item.image,
width=[100],
sizes="(max-width: 640px) 50vw, 100vw",
css= item.name,
loading = "lazy"
%}
{{ item.name }}
</a>
</article>
{% endfor %}

</section>

4 changes: 1 addition & 3 deletions src/themes/grunn/layouts/data/rick-morty.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
title: "Rick & Morty Characters {{ name }}"
---

This is an example page of using external apis
<h1 class="text-5xl">{{ character.name }}</h1>

<div class="aspect-video overflow-hidden shadow-lg ">
Expand All @@ -24,7 +24,6 @@ Location:
</a>
</div>


<div>
{{ character.episode | length }} Episodes:
</div>
Expand All @@ -33,7 +32,6 @@ Location:
{% endfor %}



<section class="flex flex-row space-x-4 flex-wrap">

{% for item in rickandmorty %}
Expand Down