Compare commits
19 commits
Author | SHA1 | Date | |
---|---|---|---|
|
037d107ed2 | ||
|
745f4a7b31 | ||
|
5e20af0ddf | ||
|
c225098532 | ||
|
8613c12294 | ||
|
38d118e560 | ||
|
f9839e4af3 | ||
|
43a30128c5 | ||
|
355234453a | ||
|
043f43d8f3 | ||
|
888f0c88db | ||
|
8158e7bc6d | ||
|
4994aac91f | ||
|
8a15492200 | ||
|
eef973fbaa | ||
|
974ede9dda | ||
|
2d59f85f14 | ||
|
e689845f44 | ||
|
1b3416fb3d |
813 changed files with 415883 additions and 6824 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
|
57
404.html
57
404.html
|
@ -1,4 +1,57 @@
|
|||
---
|
||||
---
|
||||
<!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>
|
||||
|
||||
<li><a href="/HiddenSounds/songs.html" >
|
||||
Songs
|
||||
</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>
|
||||
|
|
4
Gemfile
4
Gemfile
|
@ -1,4 +0,0 @@
|
|||
source "https://rubygems.org"
|
||||
|
||||
gem "jekyll"
|
||||
gem "html-proofer"
|
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,39 +0,0 @@
|
|||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ page.title }} - HS Fanpage</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="apple-touch-icon" href="{{ site.baseurl }}/icon.png">
|
||||
<!-- Place favicon.ico in the root directory -->
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ site.baseurl }}/favicon.ico"/>
|
||||
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
|
||||
|
||||
<meta name="theme-color" content="#fafafa">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="bg-image"></div>
|
||||
<h1>{{ page.ptitle | flatify }}</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
{% for item in site.data.navigation %}
|
||||
<li><a href="{{ site.baseurl }}/{{ item.link }}" {% if page.url== item.link %} style="color: red;" {% endif %}>
|
||||
{{ item.name }}
|
||||
</a></li>
|
||||
{% endfor %}
|
||||
</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]-->
|
||||
|
||||
{{ content }}
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -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)
|
1543
artists.html
1543
artists.html
File diff suppressed because it is too large
Load diff
1773
artists/2tonedisco.html
Normal file
1773
artists/2tonedisco.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/adri.html
Normal file
1773
artists/adri.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/aether.html
Normal file
1773
artists/aether.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/afk.html
Normal file
1773
artists/afk.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/agiya.html
Normal file
1773
artists/agiya.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/agno3.html
Normal file
1773
artists/agno3.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/airthrive.html
Normal file
1773
artists/airthrive.html
Normal file
File diff suppressed because it is too large
Load diff
1861
artists/ak.html
Normal file
1861
artists/ak.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/akacia.html
Normal file
1773
artists/akacia.html
Normal file
File diff suppressed because it is too large
Load diff
1791
artists/alden-groves.html
Normal file
1791
artists/alden-groves.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/alex-holmes.html
Normal file
1773
artists/alex-holmes.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/alex-marie-brinkley.html
Normal file
1773
artists/alex-marie-brinkley.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/ana-b.html
Normal file
1775
artists/ana-b.html
Normal file
File diff suppressed because it is too large
Load diff
1813
artists/andrew-applepie.html
Normal file
1813
artists/andrew-applepie.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/andrew-zink.html
Normal file
1773
artists/andrew-zink.html
Normal file
File diff suppressed because it is too large
Load diff
1789
artists/anna-yvette.html
Normal file
1789
artists/anna-yvette.html
Normal file
File diff suppressed because it is too large
Load diff
1839
artists/approaching-nirvana.html
Normal file
1839
artists/approaching-nirvana.html
Normal file
File diff suppressed because it is too large
Load diff
1785
artists/arc-north.html
Normal file
1785
artists/arc-north.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/arina.html
Normal file
1773
artists/arina.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/arkane-skye.html
Normal file
1773
artists/arkane-skye.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/ashley-apollodor.html
Normal file
1775
artists/ashley-apollodor.html
Normal file
File diff suppressed because it is too large
Load diff
1777
artists/atlas-in-motion.html
Normal file
1777
artists/atlas-in-motion.html
Normal file
File diff suppressed because it is too large
Load diff
1813
artists/au5.html
Normal file
1813
artists/au5.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/avo.html
Normal file
1773
artists/avo.html
Normal file
File diff suppressed because it is too large
Load diff
1777
artists/awr.html
Normal file
1777
artists/awr.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/axel-boy.html
Normal file
1775
artists/axel-boy.html
Normal file
File diff suppressed because it is too large
Load diff
1777
artists/azaleh.html
Normal file
1777
artists/azaleh.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/bare-noize.html
Normal file
1773
artists/bare-noize.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/bearier.html
Normal file
1773
artists/bearier.html
Normal file
File diff suppressed because it is too large
Load diff
1777
artists/bella-musser.html
Normal file
1777
artists/bella-musser.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/bijou.html
Normal file
1773
artists/bijou.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/bituke.html
Normal file
1773
artists/bituke.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/blair.html
Normal file
1773
artists/blair.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/blood-code.html
Normal file
1773
artists/blood-code.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/brenton-mattheus.html
Normal file
1773
artists/brenton-mattheus.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/cadmium.html
Normal file
1775
artists/cadmium.html
Normal file
File diff suppressed because it is too large
Load diff
1789
artists/cara-leigh.html
Normal file
1789
artists/cara-leigh.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/carson-freeman.html
Normal file
1773
artists/carson-freeman.html
Normal file
File diff suppressed because it is too large
Load diff
1779
artists/cashae.html
Normal file
1779
artists/cashae.html
Normal file
File diff suppressed because it is too large
Load diff
1811
artists/cashforgold.html
Normal file
1811
artists/cashforgold.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/cashforgoldtim-schaufert.html
Normal file
1773
artists/cashforgoldtim-schaufert.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/chloe-tang.html
Normal file
1775
artists/chloe-tang.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/chris-linton.html
Normal file
1775
artists/chris-linton.html
Normal file
File diff suppressed because it is too large
Load diff
1779
artists/chris-pop.html
Normal file
1779
artists/chris-pop.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/christopher-pop.html
Normal file
1775
artists/christopher-pop.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/chuck-new.html
Normal file
1773
artists/chuck-new.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/chymes.html
Normal file
1773
artists/chymes.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/cluda.html
Normal file
1773
artists/cluda.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/codrey.html
Normal file
1773
artists/codrey.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/conor-byrne.html
Normal file
1773
artists/conor-byrne.html
Normal file
File diff suppressed because it is too large
Load diff
1789
artists/covex.html
Normal file
1789
artists/covex.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/cozmoe.html
Normal file
1773
artists/cozmoe.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/crystal-skies.html
Normal file
1775
artists/crystal-skies.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/cxssidy.html
Normal file
1773
artists/cxssidy.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/dani-rosenoer.html
Normal file
1773
artists/dani-rosenoer.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/daniel-hanson.html
Normal file
1773
artists/daniel-hanson.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/danyka-nadeau.html
Normal file
1775
artists/danyka-nadeau.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/danyka.html
Normal file
1773
artists/danyka.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/dario-lessing.html
Normal file
1773
artists/dario-lessing.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/david-shane.html
Normal file
1773
artists/david-shane.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/dawncall.html
Normal file
1775
artists/dawncall.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/diamic.html
Normal file
1773
artists/diamic.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/dicebox.html
Normal file
1773
artists/dicebox.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/direct.html
Normal file
1775
artists/direct.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/dj-rival.html
Normal file
1773
artists/dj-rival.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/dntst.html
Normal file
1773
artists/dntst.html
Normal file
File diff suppressed because it is too large
Load diff
1775
artists/domastic.html
Normal file
1775
artists/domastic.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/draper.html
Normal file
1773
artists/draper.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/ed-prosek.html
Normal file
1773
artists/ed-prosek.html
Normal file
File diff suppressed because it is too large
Load diff
1779
artists/egzod.html
Normal file
1779
artists/egzod.html
Normal file
File diff suppressed because it is too large
Load diff
1791
artists/electro-light.html
Normal file
1791
artists/electro-light.html
Normal file
File diff suppressed because it is too large
Load diff
1785
artists/elliot-berger.html
Normal file
1785
artists/elliot-berger.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/encanti.html
Normal file
1773
artists/encanti.html
Normal file
File diff suppressed because it is too large
Load diff
1773
artists/ennja.html
Normal file
1773
artists/ennja.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