Deploy NorbiPeti/HiddenSounds to github.com/NorbiPeti/HiddenSounds.git:gh-pages
This commit is contained in:
parent
32310e5d84
commit
1b3416fb3d
618 changed files with 254548 additions and 6783 deletions
|
@ -1,22 +0,0 @@
|
|||
# For more information about the properties used in
|
||||
# this file, please see the EditorConfig documentation:
|
||||
# https://editorconfig.org/
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[{.travis.yml,package.json}]
|
||||
# The indent size used in the `package.json` file cannot be changed
|
||||
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
|
||||
indent_size = 2
|
||||
indent_style = space
|
28
.gitattributes
vendored
28
.gitattributes
vendored
|
@ -1,28 +0,0 @@
|
|||
# Automatically normalize line endings for all text-based files
|
||||
# https://git-scm.com/docs/gitattributes#_end_of_line_conversion
|
||||
|
||||
* text=auto
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# For the following file types, normalize line endings to LF on
|
||||
# checkin and prevent conversion to CRLF when they are checked out
|
||||
# (this is required in order to prevent newline related issues like,
|
||||
# for example, after the build script is run)
|
||||
|
||||
.* text eol=lf
|
||||
*.css text eol=lf
|
||||
*.html text eol=lf
|
||||
*.js text eol=lf
|
||||
*.json text eol=lf
|
||||
*.md text eol=lf
|
||||
*.sh text eol=lf
|
||||
*.txt text eol=lf
|
||||
*.xml text eol=lf
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Exclude the `.htaccess` file from GitHub's language statistics
|
||||
# https://github.com/github/linguist#using-gitattributes
|
||||
|
||||
dist/.htaccess linguist-vendored
|
0
.gitignore
vendored
0
.gitignore
vendored
14
.idea/HS.iml
14
.idea/HS.iml
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/_site" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="jquery-3.3.1" level="application" />
|
||||
</component>
|
||||
</module>
|
|
@ -1,15 +0,0 @@
|
|||
<component name="ProjectCodeStyleConfiguration">
|
||||
<code_scheme name="Project" version="173">
|
||||
<JSCodeStyleSettings version="0">
|
||||
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
||||
<option name="USE_DOUBLE_QUOTES" value="false" />
|
||||
<option name="FORCE_QUOTE_STYlE" value="true" />
|
||||
</JSCodeStyleSettings>
|
||||
<codeStyleSettings language="JavaScript">
|
||||
<indentOptions>
|
||||
<option name="INDENT_SIZE" value="2" />
|
||||
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
||||
</indentOptions>
|
||||
</codeStyleSettings>
|
||||
</code_scheme>
|
||||
</component>
|
|
@ -1,5 +0,0 @@
|
|||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
|
||||
</state>
|
||||
</component>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
|
||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptLibraryMappings">
|
||||
<file url="PROJECT" libraries="{jquery-3.3.1}" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/HS.iml" filepath="$PROJECT_DIR$/.idea/HS.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
37
.travis.yml
37
.travis.yml
|
@ -1,37 +0,0 @@
|
|||
language: ruby
|
||||
rvm:
|
||||
- 2.4.1
|
||||
|
||||
before_script:
|
||||
- chmod +x ./script/cibuild # or do this locally and commit
|
||||
|
||||
# Assume bundler is being used, therefore
|
||||
# the `install` step will run `bundle install` by default.
|
||||
script: ./script/cibuild
|
||||
|
||||
# branch whitelist, only for GitHub Pages
|
||||
branches:
|
||||
only:
|
||||
- master # test the master branch
|
||||
|
||||
env:
|
||||
global:
|
||||
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libcurl4-openssl-dev
|
||||
|
||||
sudo: false # route your build to the container-based infrastructure for a faster build
|
||||
|
||||
cache: bundler # caching bundler gem packages will speed up build
|
||||
|
||||
deploy:
|
||||
provider: pages
|
||||
skip_cleanup: true
|
||||
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
|
||||
keep_history: true
|
||||
on:
|
||||
branch: gh-pages
|
||||
local_dir: _site
|
53
404.html
53
404.html
|
@ -1,4 +1,53 @@
|
|||
---
|
||||
---
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title> - HS Fanpage</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="apple-touch-icon" href="/HiddenSounds/icon.png">
|
||||
<!-- Place favicon.ico in the root directory -->
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/HiddenSounds/favicon.ico"/>
|
||||
|
||||
<link rel="stylesheet" href="/HiddenSounds/css/main.css">
|
||||
|
||||
<meta name="theme-color" content="#fafafa">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="bg-image"></div>
|
||||
<h1></h1>
|
||||
<nav>
|
||||
<ul>
|
||||
|
||||
<li><a href="/HiddenSounds/" >
|
||||
Home
|
||||
</a></li>
|
||||
|
||||
<li><a href="/HiddenSounds/artists.html" >
|
||||
Artists
|
||||
</a></li>
|
||||
|
||||
<li><a href="/HiddenSounds/faq.html" >
|
||||
FAQ
|
||||
</a></li>
|
||||
|
||||
<li><a href="/HiddenSounds/streams.html" >
|
||||
Streams
|
||||
</a></li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<!--[if IE]>
|
||||
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade
|
||||
your browser</a> to improve your experience and security.</p>
|
||||
<![endif]-->
|
||||
|
||||
<h1 style="text-align: center">Page Not Found</h1>
|
||||
<p style="text-align: center">Sorry, but the page you were trying to view does not exist.</p>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
92
Gemfile.lock
Normal file
92
Gemfile.lock
Normal file
|
@ -0,0 +1,92 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
activesupport (5.2.3)
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
i18n (>= 0.7, < 2)
|
||||
minitest (~> 5.1)
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.6.0)
|
||||
public_suffix (>= 2.0.2, < 4.0)
|
||||
colorator (1.1.0)
|
||||
colorize (0.8.1)
|
||||
concurrent-ruby (1.1.5)
|
||||
em-websocket (0.5.1)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0.6.0)
|
||||
ethon (0.12.0)
|
||||
ffi (>= 1.3.0)
|
||||
eventmachine (1.2.7)
|
||||
ffi (1.11.1)
|
||||
forwardable-extended (2.6.0)
|
||||
html-proofer (3.10.2)
|
||||
activesupport (>= 4.2, < 6.0)
|
||||
addressable (~> 2.3)
|
||||
colorize (~> 0.8)
|
||||
mercenary (~> 0.3.2)
|
||||
nokogiri (~> 1.9)
|
||||
parallel (~> 1.3)
|
||||
typhoeus (~> 1.3)
|
||||
yell (~> 2.0)
|
||||
http_parser.rb (0.6.0)
|
||||
i18n (0.9.5)
|
||||
concurrent-ruby (~> 1.0)
|
||||
jekyll (3.8.5)
|
||||
addressable (~> 2.4)
|
||||
colorator (~> 1.0)
|
||||
em-websocket (~> 0.5)
|
||||
i18n (~> 0.7)
|
||||
jekyll-sass-converter (~> 1.0)
|
||||
jekyll-watch (~> 2.0)
|
||||
kramdown (~> 1.14)
|
||||
liquid (~> 4.0)
|
||||
mercenary (~> 0.3.3)
|
||||
pathutil (~> 0.9)
|
||||
rouge (>= 1.7, < 4)
|
||||
safe_yaml (~> 1.0)
|
||||
jekyll-sass-converter (1.5.2)
|
||||
sass (~> 3.4)
|
||||
jekyll-watch (2.2.1)
|
||||
listen (~> 3.0)
|
||||
kramdown (1.17.0)
|
||||
liquid (4.0.3)
|
||||
listen (3.1.5)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
ruby_dep (~> 1.2)
|
||||
mercenary (0.3.6)
|
||||
mini_portile2 (2.4.0)
|
||||
minitest (5.11.3)
|
||||
nokogiri (1.10.3)
|
||||
mini_portile2 (~> 2.4.0)
|
||||
parallel (1.17.0)
|
||||
pathutil (0.16.2)
|
||||
forwardable-extended (~> 2.6)
|
||||
public_suffix (3.1.0)
|
||||
rb-fsevent (0.10.3)
|
||||
rb-inotify (0.10.0)
|
||||
ffi (~> 1.0)
|
||||
rouge (3.4.1)
|
||||
ruby_dep (1.5.0)
|
||||
safe_yaml (1.0.5)
|
||||
sass (3.7.4)
|
||||
sass-listen (~> 4.0.0)
|
||||
sass-listen (4.0.0)
|
||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||
rb-inotify (~> 0.9, >= 0.9.7)
|
||||
thread_safe (0.3.6)
|
||||
typhoeus (1.3.1)
|
||||
ethon (>= 0.9.0)
|
||||
tzinfo (1.2.5)
|
||||
thread_safe (~> 0.1)
|
||||
yell (2.2.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
html-proofer
|
||||
jekyll
|
||||
|
||||
BUNDLED WITH
|
||||
1.17.3
|
24
_config.yml
24
_config.yml
|
@ -1,24 +0,0 @@
|
|||
collections:
|
||||
artists:
|
||||
output: true
|
||||
|
||||
defaults:
|
||||
- scope:
|
||||
path: ""
|
||||
type: "artists"
|
||||
values:
|
||||
layout: "artist"
|
||||
- scope:
|
||||
path: ""
|
||||
values:
|
||||
layout: "default"
|
||||
|
||||
baseurl: /HiddenSounds
|
||||
page_gen:
|
||||
- data: songs
|
||||
template: song
|
||||
name: sname
|
||||
- data: artists
|
||||
template: artist
|
||||
name: sname
|
||||
exclude: [vendor]
|
1633
_data/artists.json
1633
_data/artists.json
File diff suppressed because it is too large
Load diff
|
@ -1,8 +0,0 @@
|
|||
- name: Home
|
||||
link:
|
||||
- name: Artists
|
||||
link: artists.html
|
||||
- name: FAQ
|
||||
link: faq.html
|
||||
- name: Streams
|
||||
link: streams.html
|
4578
_data/songs.json
4578
_data/songs.json
File diff suppressed because it is too large
Load diff
|
@ -1,117 +0,0 @@
|
|||
- date: '2019-01-24'
|
||||
host: 'Voicians'
|
||||
streamer: 'Anna Yvette'
|
||||
live: true
|
||||
- date: '2019-01-31'
|
||||
host: '!Roundup'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-02-07'
|
||||
host: '!Throwback'
|
||||
streamer: 'Anna Yvette'
|
||||
throwbackHost: 'Sublab'
|
||||
- date: '2019-02-14'
|
||||
host: 'Rameses B'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-02-21'
|
||||
host: '!Throwback'
|
||||
streamer: 'Approaching Nirvana'
|
||||
throwbackHost: 'Laura Brehm, Arc North, Rival'
|
||||
- date: '2019-02-28'
|
||||
host: '!Roundup'
|
||||
streamer: 'Approaching Nirvana'
|
||||
- date: '2019-03-05'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-03-07'
|
||||
host: 'Approaching Nirvana'
|
||||
streamer: 'Approaching Nirvana'
|
||||
- date: '2019-03-12'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-03-14'
|
||||
host: '!Throwback'
|
||||
streamer: 'Anna Yvette'
|
||||
throwbackHost: 'floatinurboat'
|
||||
- date: '2019-03-19'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-03-21'
|
||||
host: '!Throwback'
|
||||
streamer: 'Anna Yvette'
|
||||
throwbackHost: 'CASHFORGOLD'
|
||||
- date: '2019-03-26'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-03-28'
|
||||
host: 'Varien'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-04-02'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-04-04'
|
||||
host: 'Au5'
|
||||
streamer: 'Approaching Nirvana'
|
||||
- date: '2019-04-09'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-04-11'
|
||||
host: 'Veela'
|
||||
streamer: 'Approaching Nirvana'
|
||||
- date: '2019-04-16'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-04-18'
|
||||
host: 'AK'
|
||||
streamer: 'Approaching Nirvana'
|
||||
- date: '2019-04-23'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-04-25'
|
||||
host: '!Throwback'
|
||||
streamer: 'Approaching Nirvana'
|
||||
throwbackHost: 'Arc North'
|
||||
- date: '2019-04-30'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-05-02'
|
||||
host: 'Lucy Daydream'
|
||||
streamer: 'Lucy Daydream'
|
||||
- date: '2019-05-07'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-05-09'
|
||||
host: '!Roundup'
|
||||
streamer: 'Cara Leigh'
|
||||
- date: '2019-05-14'
|
||||
host: '!Chill'
|
||||
streamer: 'Cara Leigh'
|
||||
- date: '2019-05-16'
|
||||
host: 'Covex'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-05-21'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-05-23'
|
||||
host: 'Laura Brehm'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-05-28'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-05-30'
|
||||
host: 'Zoe Moon'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-06-04'
|
||||
host: '!Chill'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-06-06'
|
||||
host: '!Roundup'
|
||||
streamer: 'Anna Yvette'
|
||||
- date: '2019-06-11'
|
||||
host: '!Chill'
|
||||
streamer: 'Cara Leigh'
|
||||
- date: '2019-06-13'
|
||||
host: 'Au5'
|
||||
- date: '2019-06-20'
|
||||
host: 'Sublab'
|
||||
- date: '2019.06.27'
|
||||
host: 'Miyoki'
|
|
@ -1,19 +0,0 @@
|
|||
<div class="song">
|
||||
<p>
|
||||
{%- assign isFirst = true -%}
|
||||
{%- for artistName in song.artists -%}
|
||||
{%- if isFirst == true -%}
|
||||
{%- assign isFirst = false -%}
|
||||
{%- else -%}
|
||||
, {% comment %} Comma and space to separate artists {% endcomment %}
|
||||
{%- endif -%}
|
||||
{%- assign artist = site.data.artists | where: 'sname', artistName | first -%}
|
||||
{%- if artist -%}
|
||||
<a href="{{ artist.sname | datapage_url: 'artists' }}">{{ artist.sname }}</a>
|
||||
{%- else -%}
|
||||
{{ artistName }}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{% comment %} Space needed {% endcomment %} - <a href="{{ site.baseurl }}/{{ song.sname | datapage_url: 'songs' }}">{{ song.sname }}</a>
|
||||
</p>
|
||||
</div>
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
title: page.name
|
||||
ptitle: '{{ page.sname }}'
|
||||
---
|
||||
<h2>{{ page.position }}</h2>
|
||||
|
||||
<h2>Songs</h2>
|
||||
<ul>
|
||||
{% assign filtered_songs = site.data.songs %}
|
||||
{% for song in filtered_songs %}
|
||||
{% assign found = false %}
|
||||
{% for artist in song.artists %}
|
||||
{% if artist == page.sname %}
|
||||
{% assign found = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if found == false %} {% continue %} {% endif %}
|
||||
<li><a href="{{ site.baseurl }}/songs{{ song.sname | datapage_url: songs }}">{{ song.artists | join: ", " }} - {{ song.sname }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
title: asd
|
||||
ptitle: '{{ page.artists | join: ", " }} - {{ page.sname }}'
|
||||
---
|
|
@ -1,135 +0,0 @@
|
|||
# coding: utf-8
|
||||
# Generate pages from individual records in yml files
|
||||
# (c) 2014-2016 Adolfo Villafiorita
|
||||
# Distributed under the conditions of the MIT License
|
||||
|
||||
module Jekyll
|
||||
|
||||
module Sanitizer
|
||||
# strip characters and whitespace to create valid filenames, also lowercase
|
||||
def sanitize_filename(name)
|
||||
if(name.is_a? Integer)
|
||||
return name.to_s
|
||||
end
|
||||
return name.tr(
|
||||
"ÀÁÂÃÄÅàáâãäåĀāĂ㥹ÇçĆćĈĉĊċČčÐðĎďĐđÈÉÊËèéêëĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħÌÍÎÏìíîïĨĩĪīĬĭĮįİıĴĵĶķĸĹĺĻļĽľĿŀŁłÑñŃńŅņŇňʼnŊŋÑñÒÓÔÕÖØòóôõöøŌōŎŏŐőŔŕŖŗŘřŚśŜŝŞşŠšſŢţŤťŦŧÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųŴŵÝýÿŶŷŸŹźŻżŽž",
|
||||
"AAAAAAaaaaaaAaAaAaCcCcCcCcCcDdDdDdEEEEeeeeEeEeEeEeEeGgGgGgGgHhHhIIIIiiiiIiIiIiIiIiJjKkkLlLlLlLlLlNnNnNnNnnNnNnOOOOOOooooooOoOoOoRrRrRrSsSsSsSssTtTtTtUUUUuuuuUuUuUuUuUuUuWwYyyYyYZzZzZz"
|
||||
).downcase.strip.gsub(' ', '-').gsub(/[^\w.-]/, '')
|
||||
end
|
||||
end
|
||||
|
||||
# this class is used to tell Jekyll to generate a page
|
||||
class DataPage < Page
|
||||
include Sanitizer
|
||||
|
||||
# - site and base are copied from other plugins: to be honest, I am not sure what they do
|
||||
#
|
||||
# - `index_files` specifies if we want to generate named folders (true) or not (false)
|
||||
# - `dir` is the default output directory
|
||||
# - `data` is the data defined in `_data.yml` of the record for which we are generating a page
|
||||
# - `name` is the key in `data` which determines the output filename
|
||||
# - `template` is the name of the template for generating the page
|
||||
# - `extension` is the extension for the generated file
|
||||
def initialize(site, base, index_files, dir, data, name, template, extension)
|
||||
@site = site
|
||||
@base = base
|
||||
|
||||
# @dir is the directory where we want to output the page
|
||||
# @name is the name of the page to generate
|
||||
#
|
||||
# the value of these variables changes according to whether we
|
||||
# want to generate named folders or not
|
||||
if data[name] == nil
|
||||
puts "error (datapage_gen). empty value for field '#{name}' in record #{data}"
|
||||
else
|
||||
filename = sanitize_filename(data[name]).to_s
|
||||
|
||||
@dir = dir + (index_files ? "/" + filename + "/" : "")
|
||||
@name = (index_files ? "index" : filename) + "." + extension.to_s
|
||||
|
||||
self.process(@name)
|
||||
self.read_yaml(File.join(base, '_layouts'), template + ".html")
|
||||
self.data['title'] = data[name]
|
||||
# add all the information defined in _data for the current record to the
|
||||
# current page (so that we can access it with liquid tags)
|
||||
self.data.merge!(data)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class DataPagesGenerator < Generator
|
||||
safe true
|
||||
|
||||
# generate loops over _config.yml/page_gen invoking the DataPage
|
||||
# constructor for each record for which we want to generate a page
|
||||
|
||||
def generate(site)
|
||||
# page_gen_dirs determines whether we want to generate index pages
|
||||
# (name/index.html) or standard files (name.html). This information
|
||||
# is passed to the DataPage constructor, which sets the @dir variable
|
||||
# as required by this directive
|
||||
index_files = site.config['page_gen-dirs'] == true
|
||||
|
||||
# data contains the specification of the data for which we want to generate
|
||||
# the pages (look at the README file for its specification)
|
||||
data = site.config['page_gen']
|
||||
if data
|
||||
data.each do |data_spec|
|
||||
index_files_for_this_data = data_spec['index_files'] != nil ? data_spec['index_files'] : index_files
|
||||
template = data_spec['template'] || data_spec['data']
|
||||
name = data_spec['name']
|
||||
dir = data_spec['dir'] || data_spec['data']
|
||||
extension = data_spec['extension'] || "html"
|
||||
|
||||
if site.layouts.key? template
|
||||
# records is the list of records defined in _data.yml
|
||||
# for which we want to generate different pages
|
||||
records = nil
|
||||
data_spec['data'].split('.').each do |level|
|
||||
if records.nil?
|
||||
records = site.data[level]
|
||||
else
|
||||
records = records[level]
|
||||
end
|
||||
end
|
||||
|
||||
# apply filtering conditions:
|
||||
# - filter requires the name of a boolean field
|
||||
# - filter_condition evals a ruby expression
|
||||
records = records.select { |r| r[data_spec['filter']] } if data_spec['filter']
|
||||
records = records.select { |record| eval(data_spec['filter_condition']) } if data_spec['filter_condition']
|
||||
|
||||
records.each do |record|
|
||||
site.pages << DataPage.new(site, site.source, index_files_for_this_data, dir, record, name, template, extension)
|
||||
end
|
||||
else
|
||||
puts "error (datapage_gen). could not find template #{template}" if not site.layouts.key? template
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
module DataPageLinkGenerator
|
||||
include Sanitizer
|
||||
|
||||
# use it like this: {{input | datapage_url: dir}}
|
||||
# to generate a link to a data_page.
|
||||
#
|
||||
# the filter is smart enough to generate different link styles
|
||||
# according to the data_page-dirs directive ...
|
||||
#
|
||||
# ... however, the filter is not smart enough to support different
|
||||
# extensions for filenames.
|
||||
#
|
||||
# Thus, if you use the `extension` feature of this plugin, you
|
||||
# need to generate the links by hand
|
||||
def datapage_url(input, dir)
|
||||
extension = Jekyll.configuration({})['page_gen-dirs'] ? '/' : '.html'
|
||||
"#{dir}/#{sanitize_filename(input)}#{extension}"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Liquid::Template.register_filter(Jekyll::DataPageLinkGenerator)
|
|
@ -1,11 +0,0 @@
|
|||
# http://acegik.net/blog/ruby/jekyll/plugins/howto-nest-liquid-template-variables-inside-yaml-front-matter-block.html
|
||||
|
||||
module Jekyll
|
||||
module ExpandNestedVariableFilter
|
||||
def flatify(input)
|
||||
Liquid::Template.parse(input).render(@context)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Liquid::Template.register_filter(Jekyll::ExpandNestedVariableFilter)
|
1240
artists.html
1240
artists.html
File diff suppressed because it is too large
Load diff
1370
artists/adri.html
Normal file
1370
artists/adri.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/afk.html
Normal file
1370
artists/afk.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/agiya.html
Normal file
1370
artists/agiya.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/agno3.html
Normal file
1370
artists/agno3.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/airthrive.html
Normal file
1370
artists/airthrive.html
Normal file
File diff suppressed because it is too large
Load diff
1444
artists/ak.html
Normal file
1444
artists/ak.html
Normal file
File diff suppressed because it is too large
Load diff
1384
artists/alden-groves.html
Normal file
1384
artists/alden-groves.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/alex-marie-brinkley.html
Normal file
1370
artists/alex-marie-brinkley.html
Normal file
File diff suppressed because it is too large
Load diff
1406
artists/andrew-applepie.html
Normal file
1406
artists/andrew-applepie.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/andrew-zink.html
Normal file
1370
artists/andrew-zink.html
Normal file
File diff suppressed because it is too large
Load diff
1384
artists/anna-yvette.html
Normal file
1384
artists/anna-yvette.html
Normal file
File diff suppressed because it is too large
Load diff
1422
artists/approaching-nirvana.html
Normal file
1422
artists/approaching-nirvana.html
Normal file
File diff suppressed because it is too large
Load diff
1382
artists/arc-north.html
Normal file
1382
artists/arc-north.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/arina.html
Normal file
1370
artists/arina.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/arkane-skye.html
Normal file
1370
artists/arkane-skye.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/ashley-apollodor.html
Normal file
1372
artists/ashley-apollodor.html
Normal file
File diff suppressed because it is too large
Load diff
1374
artists/atlas-in-motion.html
Normal file
1374
artists/atlas-in-motion.html
Normal file
File diff suppressed because it is too large
Load diff
1410
artists/au5.html
Normal file
1410
artists/au5.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/avo.html
Normal file
1370
artists/avo.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/axel-boy.html
Normal file
1372
artists/axel-boy.html
Normal file
File diff suppressed because it is too large
Load diff
1374
artists/azaleh.html
Normal file
1374
artists/azaleh.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/bare-noize.html
Normal file
1370
artists/bare-noize.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/bearier.html
Normal file
1370
artists/bearier.html
Normal file
File diff suppressed because it is too large
Load diff
1374
artists/bella-musser.html
Normal file
1374
artists/bella-musser.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/bijou.html
Normal file
1370
artists/bijou.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/brenton-mattheus.html
Normal file
1370
artists/brenton-mattheus.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/cadmium.html
Normal file
1372
artists/cadmium.html
Normal file
File diff suppressed because it is too large
Load diff
1376
artists/cara-leigh.html
Normal file
1376
artists/cara-leigh.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/carson-freeman.html
Normal file
1370
artists/carson-freeman.html
Normal file
File diff suppressed because it is too large
Load diff
1398
artists/cashforgold.html
Normal file
1398
artists/cashforgold.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/cashforgoldtim-schaufert.html
Normal file
1370
artists/cashforgoldtim-schaufert.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/chloe-tang.html
Normal file
1372
artists/chloe-tang.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/chris-linton.html
Normal file
1370
artists/chris-linton.html
Normal file
File diff suppressed because it is too large
Load diff
1376
artists/chris-pop.html
Normal file
1376
artists/chris-pop.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/chuck-new.html
Normal file
1370
artists/chuck-new.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/chymes.html
Normal file
1370
artists/chymes.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/cluda.html
Normal file
1370
artists/cluda.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/codrey.html
Normal file
1370
artists/codrey.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/conor-byrne.html
Normal file
1370
artists/conor-byrne.html
Normal file
File diff suppressed because it is too large
Load diff
1384
artists/covex.html
Normal file
1384
artists/covex.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/cozmoe.html
Normal file
1370
artists/cozmoe.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/crystal-skies.html
Normal file
1372
artists/crystal-skies.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/cxssidy.html
Normal file
1370
artists/cxssidy.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/dani-rosenoer.html
Normal file
1370
artists/dani-rosenoer.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/daniel-hanson.html
Normal file
1370
artists/daniel-hanson.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/danyka-nadeau.html
Normal file
1372
artists/danyka-nadeau.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/david-shane.html
Normal file
1370
artists/david-shane.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/dawncall.html
Normal file
1372
artists/dawncall.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/diamic.html
Normal file
1370
artists/diamic.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/direct.html
Normal file
1372
artists/direct.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/dj-rival.html
Normal file
1370
artists/dj-rival.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/dntst.html
Normal file
1370
artists/dntst.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/domastic.html
Normal file
1372
artists/domastic.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/draper.html
Normal file
1370
artists/draper.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/ed-prosek.html
Normal file
1370
artists/ed-prosek.html
Normal file
File diff suppressed because it is too large
Load diff
1374
artists/egzod.html
Normal file
1374
artists/egzod.html
Normal file
File diff suppressed because it is too large
Load diff
1382
artists/electro-light.html
Normal file
1382
artists/electro-light.html
Normal file
File diff suppressed because it is too large
Load diff
1380
artists/elliot-berger.html
Normal file
1380
artists/elliot-berger.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/encanti.html
Normal file
1370
artists/encanti.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/ephixa.html
Normal file
1370
artists/ephixa.html
Normal file
File diff suppressed because it is too large
Load diff
1386
artists/evoke.html
Normal file
1386
artists/evoke.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/faith-in-may.html
Normal file
1370
artists/faith-in-may.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/false-noise.html
Normal file
1370
artists/false-noise.html
Normal file
File diff suppressed because it is too large
Load diff
1386
artists/faodail.html
Normal file
1386
artists/faodail.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/fatherdude.html
Normal file
1370
artists/fatherdude.html
Normal file
File diff suppressed because it is too large
Load diff
1386
artists/floatinurboat.html
Normal file
1386
artists/floatinurboat.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/fluidd.html
Normal file
1370
artists/fluidd.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/focus-fire.html
Normal file
1370
artists/focus-fire.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/frequent.html
Normal file
1370
artists/frequent.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/funi.html
Normal file
1370
artists/funi.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/ghost-wars.html
Normal file
1370
artists/ghost-wars.html
Normal file
File diff suppressed because it is too large
Load diff
1370
artists/gioto.html
Normal file
1370
artists/gioto.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/grabbitz.html
Normal file
1372
artists/grabbitz.html
Normal file
File diff suppressed because it is too large
Load diff
1372
artists/harley-bird.html
Normal file
1372
artists/harley-bird.html
Normal file
File diff suppressed because it is too large
Load diff
1380
artists/haywyre.html
Normal file
1380
artists/haywyre.html
Normal file
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue