remove aulas collection in favor of using plugin

This commit is contained in:
Carneiro 2024-08-05 21:27:49 -03:00
parent b4b9aa1816
commit e05c833784
11 changed files with 94 additions and 131 deletions

18
Gemfile
View File

@ -7,7 +7,7 @@ source "https://rubygems.org"
# #
# This will help ensure the proper Jekyll version is running. # This will help ensure the proper Jekyll version is running.
# Happy Jekylling! # Happy Jekylling!
gem "jekyll", "~> 4.3.2" gem "jekyll"
# This is the default theme for new Jekyll sites. You may change this to anything you like. # This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.5" # gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
@ -15,21 +15,11 @@ gem "jekyll", "~> 4.3.2"
# gem "github-pages", group: :jekyll_plugins # gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here! # If you have any plugins, put them here!
group :jekyll_plugins do group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12" gem "jekyll-feed"
gem "jekyll-datapage-generator"
gem "jekyll-archives" gem "jekyll-archives"
end end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem # Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart. # do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] # gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

View File

@ -21,22 +21,23 @@
title: ALICE CAST title: ALICE CAST
description: >- # this means to ignore newlines until "baseurl:" description: >- # this means to ignore newlines until "baseurl:"
Bem vindo ao sensacional site de cursos do Alice. Bem vindo ao sensacional site de cursos do Alice.
#baseurl: / # the subpath of your site, e.g. /blog # baseurl: /~carneiro/aliceclass # the subpath of your site, e.g. /blog
url: "https://cast.alice.ufsj.edu.br" # the base hostname & protocol for your site, e.g. http://example.com url: "https://cast.alice.ufsj.edu.br" # the base hostname & protocol for your site, e.g. http://example.com
# Build settings # Build settings
#theme: minima #theme: minima
plugins: plugins:
- jekyll-feed - jekyll-feed
- jekyll-datapage-generator
collections_dir: collections collections_dir: collections
# collections # collections
collections: collections:
aulas: # aulas:
output: true # output: true
permalink: /:collection/:path # permalink: /:collection/:path
software: software:
output: true output: true
permalink: /:collection/:path permalink: /:collection/:path
@ -50,15 +51,25 @@ collections:
output: true output: true
permalink: /:collection/:name permalink: /:collection/:name
page_gen-dirs: true
page_gen:
- data: aulas
template: aulas
dir: aulas
index_files: false
name: title
debug: true
# collection default setup # collection default setup
defaults: defaults:
- # -
scope: # scope:
path: "_aulas" # path: "_aulas"
type: aulas # type: aulas
values: # values:
layout: "aula" # layout: "aula"
author: "ALICE" # author: "ALICE"
- -
scope: scope:
path: "_autores" path: "_autores"

21
_data/aulas.json Normal file
View File

@ -0,0 +1,21 @@
[
{
"title": "Introdução ao LMMS",
"user": "fls",
"nome": "Flávio Luiz Schiavoni",
"description": "Bem-vindo ao curso de LMMS, uma ferramenta poderosa e gratuita para produção de música digital! Aqui, você aprenderá desde os conceitos básicos até técnicas avançadas para criar suas próprias músicas e beats.",
"date": "9/07/2024",
"software": ["lmms"],
"level": "Basico"
},
{
"title": "Introdução ao MIxxx",
"user": "fls",
"author": "Flávio Luiz Schiavoni",
"description": "Bem-vindos ao curso de Mixxx, um software de DJ gratuito e de código aberto que permite que você crie sets incríveis e faça mixagens profissionais. Este curso é ideal para quem deseja começar na arte da discotecagem ou para DJs experientes que querem explorar uma nova ferramenta.",
"date": "09/07/2024",
"software": ["mixxx"],
"level": "Basico",
"layout": "aulas"
}
]

View File

@ -3,15 +3,14 @@
<h1>Aulas</h1> <h1>Aulas</h1>
</div> </div>
<div class="content"> <div class="content">
{% assign aulas = site.aulas | sort: 'date' | reverse %} {% assign aulas = site.data.aulas | sort: 'date' | reverse %}
{% assign max_aulas = 3 %} {% assign max_aulas = 3 %}
{% for aula in aulas %} {% for aula in aulas %}
{% assign nome = aula.name | replace: ".md","" %}
<div class="box"> <div class="box">
<div class="box-top"> <div class="box-top">
<figure> <figure>
<img src="{{ site.baseurl }}/assets/thumbs/{{ nome }}.jpg"> <img src="{{ site.baseurl }}/assets/thumbs/{{ aula.title }}.jpg">
</figure> </figure>
</div> </div>
@ -23,4 +22,4 @@
{% endfor %} {% endfor %}
</div> </div>
</div> </div>

View File

@ -10,7 +10,7 @@
</div> </div>
<div class="content-box"> <div class="content-box">
{% assign aulas = site.aulas | sort: 'date' | reverse %} {% assign aulas = site.data.aulas | sort: 'date' | reverse %}
{% assign max_aulas = 3 %} {% assign max_aulas = 3 %}
{% assign count = 0 %} {% assign count = 0 %}

View File

@ -1,69 +1,43 @@
<!DOCTYPE html> ---
<html lang="pt-BR"> layout: default
<head> lang: pt
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> ---
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/stylesheet.css">
{% if page.styles %}{{ page.styles }}{% endif %}
<title>
{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}
</title>
<div class="is-flex">
</head> <div class="is-flex-grow-5 is-flex is-flex-direction-column" >
<body> <main>
<div class="is-flex is-flex-direction-row is-full-width">
<div class="is-flex">
{% include SideBar.html %}
</div>
<div class="is-flex">
<div class="is-flex-grow-5 is-flex is-flex-direction-column" >
{% include TopBar.html %}
<main>
<div class="aula-title pt-6 pb-6"> <div class="aula-title pt-6 pb-6">
<div class="detals-aula is is-flex is-flex-direction-row"> <div class="detals-aula is is-flex is-flex-direction-row">
<div class="detals-aula is is-flex is-flex-direction-column is-flex-grow-1"> <div class="detals-aula is is-flex is-flex-direction-column is-flex-grow-1">
<h1 class="aula-title">{{ page.title }}</h1> <h1 class="aula-title">{{ page.title }}</h1>
<h2 class="aula-name">{{ page.software }} - {{ page.level }}</h2> <h2 class="aula-name">{{ page.software }} - {{ page.level }}</h2>
<h3 class="aula-name">{{ page.author }}</h2> <h3 class="aula-name">{{ page.author }}</h3>
<h3 class="aula-name">{{ page.date | date: "%d/%m/%Y" }}</h2> <h3 class="aula-name">{{ page.date | date: "%d/%m/%Y" }}</h3>
</div> </div>
<div class="download aula is-flex is-flex-grow-1 is-justify-content-flex-end mr-6"> <div class="download aula is-flex is-flex-grow-1 is-justify-content-flex-end mr-6">
{% assign aula_name = page.name | replace: '.md', '' %} {% assign aula_name = page.name | replace: '.md', '' %}
{% assign zip_file = 'aulas/' | append: aula_name | append: '.zip' %} {% assign zip_file = 'aulas/' | append: aula_name | append: '.zip' %}
<a class="button is-success is-large" href="{{ site.baseurl }}{{ zip_file }}" download> <a class="button is-success is-large" href="{{ site.baseurl }}{{ zip_file }}" download>
Download Download
</a> </a>
</div> </div>
</div>
</div>
<div class=" is-flex is-justify-content-center is-align-content-center mt-3">
{% assign aula_slug = page.name | replace: '.md', '' %}
{% assign video_aula = '' | append: aula_slug | append: '.mp4' %}
<video controls class="aula-video">
<source src="{{ site.baseurl }}/videos/{{ page.user }}/dest/{{ video_aula }}" type="video/mp4">
Seu navegador não suporta o elemento de vídeo.
</video>
</div>
<div class="content-aula mt-3 pt-2 pb-2">
<p>{{ page.content }}</p>
</div>
</main>
</div> </div>
</div> </div>
</div>
<footer> <div class=" is-flex is-justify-content-center is-align-content-center mt-3">
<!-- Conteúdo do rodapé --> {% assign aula_slug = page.name %}
</footer> {% assign video_aula = '' | append: aula_slug | append: '.mp4' %}
</body> <video controls class="aula-video">
</html> <source src="{{ site.baseurl }}/videos/{{ page.user }}/dest/{{ video_aula }}" type="video/mp4">
Seu navegador não suporta o elemento de vídeo.
</video>
</div>
<div class="content-aula mt-3 pt-2 pb-2">
</div>
</main>
</div>
</div>

View File

@ -15,7 +15,7 @@
</title> </title>
{% assign aulas = site.aulas | sort: 'date' | reverse %} {% assign aulas = site.data.aulas | sort: 'date' | reverse %}
<script> <script>
const switchGrind = () =>{ const switchGrind = () =>{
@ -66,7 +66,7 @@
</div> </div>
<div id="grad" class=" is-flex is-justify-content-center is-align-content-center"> <div id="grad" class=" is-flex is-justify-content-center is-align-content-center">
{% assign aulas = site.aulas | sort: 'date' | reverse %} {% assign aulas = site.data.aulas | sort: 'date' | reverse %}
<div class="columns is-multiline"> <div class="columns is-multiline">
{% for aula in aulas %} {% for aula in aulas %}
{% assign nome = aula.name | replace: ".md","" %} {% assign nome = aula.name | replace: ".md","" %}
@ -125,4 +125,4 @@
<!-- Conteúdo do rodapé --> <!-- Conteúdo do rodapé -->
</footer> </footer>
</body> </body>
</html> </html>

0
_layouts/dashboard.php Normal file → Executable file
View File

View File

@ -1,19 +0,0 @@
---
author: Flávio Luiz Schiavoni
user: fls
description: Bem-vindo ao curso de LMMS, uma ferramenta poderosa e gratuita para produção de música digital! Aqui, você aprenderá desde os conceitos básicos até técnicas avançadas para criar suas próprias músicas e beats.
date: 9/07/2024
software: [lmms]
level: Basico
layout: aulas
---
Descrição do Curso
Bem-vindo ao curso de LMMS, uma ferramenta poderosa e gratuita para produção de música digital! Aqui, você aprenderá desde os conceitos básicos até técnicas avançadas para criar suas próprias músicas e beats. Este curso é perfeito para iniciantes que desejam explorar o mundo da produção musical, assim como para músicos experientes que querem expandir suas habilidades utilizando uma DAW (Digital Audio Workstation) open-source.
Site do LMMS
Para mais informações, downloads e atualizações, acesse o site oficial do LMMS.
Visão Geral da Ferramenta
LMMS é uma DAW gratuita que permite criar, editar e mixar música com facilidade. Ele oferece uma interface amigável e uma ampla gama de ferramentas para produção musical, incluindo sintetizadores, samplers, efeitos e muito mais. O LMMS é compatível com diversos formatos de arquivo e pode ser usado em vários sistemas operacionais, como Windows, macOS e Linux.

View File

@ -1,13 +0,0 @@
---
author: Flávio Luiz Schiavoni
user: fls
description: Bem-vindos ao curso de Mixxx, um software de DJ gratuito e de código aberto que permite que você crie sets incríveis e faça mixagens profissionais. Este curso é ideal para quem deseja começar na arte da discotecagem ou para DJs experientes que querem explorar uma nova ferramenta.
date: 9/07/2024
software: [mixx]
level: Basico
layout: aulas
---
Sobre o Mixxx
Mixxx é um software de DJ que oferece todas as ferramentas necessárias para mixar suas músicas com facilidade e criatividade. Com suporte a diversos formatos de áudio, Mixxx proporciona uma experiência de DJ completa, seja em festas, rádios online ou em casa.

View File

@ -38,9 +38,9 @@
$brute_file = $target_dir . "/src/" . $video_title . $ext; $brute_file = $target_dir . "/src/" . $video_title . $ext;
$target_file = $target_dir . "/dest/" . $video_title . '.mp4'; $target_file = $target_dir . "/dest/" . $video_title . '.mp4';
echo $video_title . $video_desc . $video_date . $video_level; // echo $video_title . $video_desc . $video_date . $video_level;
echo $target_file; // echo $target_file;
return; // return;
// Check if file already exists // Check if file already exists
if (file_exists($brute_file)) { if (file_exists($brute_file)) {