revrt defaults for layout to work
This commit is contained in:
parent
73e150feca
commit
9a2768ae7f
2 changed files with 135 additions and 48 deletions
20
_config.yml
20
_config.yml
|
|
@ -96,7 +96,6 @@ defaults:
|
||||||
- scope:
|
- scope:
|
||||||
path: ""
|
path: ""
|
||||||
type: "posts"
|
type: "posts"
|
||||||
category: "release"
|
|
||||||
values:
|
values:
|
||||||
layout: "post"
|
layout: "post"
|
||||||
lang: en
|
lang: en
|
||||||
|
|
@ -112,25 +111,6 @@ defaults:
|
||||||
height: 720
|
height: 720
|
||||||
resize_style: cover
|
resize_style: cover
|
||||||
uploads_dir: "/images"
|
uploads_dir: "/images"
|
||||||
- scope:
|
|
||||||
path: ""
|
|
||||||
type: "posts"
|
|
||||||
category: "ramblings"
|
|
||||||
values:
|
|
||||||
layout: "page"
|
|
||||||
lang: en
|
|
||||||
permalink: /:title/
|
|
||||||
_options:
|
|
||||||
image:
|
|
||||||
width: 1024
|
|
||||||
height: 720
|
|
||||||
resize_style: cover
|
|
||||||
uploads_dir: "/images"
|
|
||||||
content:
|
|
||||||
width: 720
|
|
||||||
height: 720
|
|
||||||
resize_style: cover
|
|
||||||
uploads_dir: "/images"
|
|
||||||
|
|
||||||
# ---------
|
# ---------
|
||||||
# Translate
|
# Translate
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
lang: en
|
|
||||||
---
|
---
|
||||||
|
{% if page.category == 'release' %}
|
||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
<!--
|
<!--
|
||||||
Based on _Story_ by html5up.net | @ajlkn
|
Based on _Story_ by html5up.net | @ajlkn
|
||||||
|
|
@ -51,7 +51,7 @@ lang: en
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
{% if page.category == 'release' %}
|
|
||||||
<!-- HERE BEGINS MADNESS -->
|
<!-- HERE BEGINS MADNESS -->
|
||||||
{% for album in site.albums %}
|
{% for album in site.albums %}
|
||||||
{% if page.album == album.slug %}
|
{% if page.album == album.slug %}
|
||||||
|
|
@ -94,7 +94,7 @@ lang: en
|
||||||
|
|
||||||
<div class="plItem">
|
<div class="plItem">
|
||||||
<div class="plNum">{{ track.common.track.no }}.</div>
|
<div class="plNum">{{ track.common.track.no }}.</div>
|
||||||
<div class="plTitle"><a href="{{ relBase }}/assets/albums/{{ track.albumSlug }}/{{ track.trackSlug }}.mp3">{{ track.common.title }} </a></div>
|
<div class="plTitle"><a href="https://media.basspistol.com/panix/{{ track.albumSlug }}/{{ track.trackSlug }}.mp3">{{ track.common.title }} </a></div>
|
||||||
<div class="plLength">{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}</div>
|
<div class="plLength">{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -112,36 +112,36 @@ lang: en
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<!-- Tracks -->
|
<!-- Tracks -->
|
||||||
<section id="albumdata" class="wrapper style1 align-center">
|
{% for track in album.tracks %}
|
||||||
<div class="gallery style1 medium onscroll-fade-in">
|
|
||||||
{% for track in album.tracks %}
|
|
||||||
<article>
|
|
||||||
<a href="{{ relBase }}/{{ track.slug }}/" class="image">
|
|
||||||
<img src="{{ relBase }}{{ track.cover}}" alt="{{ track.common.title }}" />
|
|
||||||
</a>
|
|
||||||
<div class="caption">
|
|
||||||
<h3>{{ track.common.title }}</h3>
|
|
||||||
<p>
|
|
||||||
<strong>{{ track.common.genre }}</strong>
|
|
||||||
<br />{{ track.common.year }}</p>
|
|
||||||
<ul class="actions fixed">
|
|
||||||
<li><span class="editable button small icon fa-play-circle">Play</span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
|
<section
|
||||||
|
class="spotlight style4 orient-{% cycle 'left', 'right' %} content-align-left image-position-center onscroll-image-fade-in"
|
||||||
|
{% if forloop.index == 1 %}style="box-shadow: none;" {% endif %}>
|
||||||
|
<div class="content">
|
||||||
|
<h3>{{ track.common.title }}</h3>
|
||||||
|
<p>
|
||||||
|
{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}
|
||||||
|
<br /><strong>{{ track.common.genre }}</strong>
|
||||||
|
<br />{{ track.common.year }}</p>
|
||||||
|
|
||||||
{% include streamer.html %}
|
<ul class="actions stacked">
|
||||||
|
<li><a href="{{ relBase }}/albums/{{ track.slug }}/" class="button">Track</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="image">
|
||||||
|
<img src="https://media.basspistol.com/panix/{{ track.albumSlug }}/{{ track.trackSlug }}.jpeg" alt="{{ track.common.title }}" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% include streamer.html %}
|
||||||
<!-- END Tracks -->
|
<!-- END Tracks -->
|
||||||
|
|
||||||
{% break %} {% endif %} {% endfor %}
|
{% break %} {% endif %} {% endfor %}
|
||||||
<!-- HERE ENDS MADNESS -->
|
<!-- HERE ENDS MADNESS -->
|
||||||
{% endif %}
|
|
||||||
{% if page.collection == 'posts' %}
|
|
||||||
<section class="wrapper style1 align-center">
|
<section class="wrapper style1 align-center">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<div class="index align-left">
|
<div class="index align-left">
|
||||||
|
|
@ -178,7 +178,7 @@ lang: en
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% include footer.html %}
|
{% include footer.html %}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -212,7 +212,7 @@ lang: en
|
||||||
"track": {{ track.common.track.no }},
|
"track": {{ track.common.track.no }},
|
||||||
"name": "{{ track.common.title }}",
|
"name": "{{ track.common.title }}",
|
||||||
"length": "{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}",
|
"length": "{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}",
|
||||||
"file": "/assets/albums/{{ track.albumSlug }}/{{ track.trackSlug }}"
|
"file": "https://media.basspistol.com/panix/{{ track.albumSlug }}/{{ track.trackSlug }}"
|
||||||
}{% unless forloop.last %},{% endunless %}{% endfor %}{% break %} {% endif %}{% endfor %}],
|
}{% unless forloop.last %},{% endunless %}{% endfor %}{% break %} {% endif %}{% endfor %}],
|
||||||
trackCount = tracks.length,
|
trackCount = tracks.length,
|
||||||
npAction = $('#npAction'),
|
npAction = $('#npAction'),
|
||||||
|
|
@ -288,4 +288,111 @@ lang: en
|
||||||
|
|
||||||
{% include cookie-consent.html %}
|
{% include cookie-consent.html %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
<!DOCTYPE HTML>
|
||||||
|
<!--
|
||||||
|
Based on _Story_ by html5up.net | @ajlkn
|
||||||
|
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||||
|
Remixed and Jekyllified by Setto
|
||||||
|
-->
|
||||||
|
<html lang="{% if page.lang != site.lang %}{{ page.lang }}{% else %}{{ site.lang }}{% endif %}">
|
||||||
|
<head>
|
||||||
|
{% seo title=false %}
|
||||||
|
<link type="application/atom+xml" rel="alternate" href="{{ site.url }}/feed.xml" title="{{ site.name }}" />
|
||||||
|
{% include seo.html %}
|
||||||
|
{% include relBase.html %}
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" />
|
||||||
|
<link rel="stylesheet" href="{{ relBase }}/assets/css/main20200519.css" />
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" href="{{ site.url }}/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" href="{{ site.url }}/touch-icon.png" sizes="192x192">
|
||||||
|
<link rel="shortcut icon" href="{{ site.url }}{{ site.icon }}" type="image/png" />
|
||||||
|
<noscript><link rel="stylesheet" href="{{ relBase }}/assets/css/noscript20200518-rev1.css" /></noscript>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="is-preload" id="body">
|
||||||
|
<span id="top" style="display: none;"></span>
|
||||||
|
<!-- Wrapper -->
|
||||||
|
<div id="wrapper" class="divided">
|
||||||
|
|
||||||
|
<!-- Banner -->
|
||||||
|
<section class="banner onload-image-fade-in onload-content-fade-right style2 fullscreen content-align-center image-position-center" style="height:100vh;background-color: rgba(13,13,13,0.85);">
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
<p>{{ page.description }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="image">
|
||||||
|
<img src="{{ page.image }}" alt="unfound page" />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- Content -->
|
||||||
|
<section class="wrapper style1 align-center">
|
||||||
|
<div class="inner">
|
||||||
|
|
||||||
|
<div class="index align-left">
|
||||||
|
<!-- Author -->
|
||||||
|
<section>
|
||||||
|
{% if page.url != '/cookies/' %}
|
||||||
|
{% if page.url != '/webcreds/' %}
|
||||||
|
{% include author.html %}
|
||||||
|
{% endif %}{% endif %}
|
||||||
|
<!-- Content -->
|
||||||
|
<div class="content">
|
||||||
|
{{ content }}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="wrapper style1 align-center">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="index align-left">
|
||||||
|
<!-- Author -->
|
||||||
|
|
||||||
|
<section>
|
||||||
|
|
||||||
|
<!-- Content -->
|
||||||
|
<div class="content">
|
||||||
|
<!-- post Naviation -->
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<h3>{{ site.data.translations[page.lang].post-nav}}</h3>
|
||||||
|
</div>
|
||||||
|
<div class="post-nav">
|
||||||
|
<div>
|
||||||
|
{% if page.previous.url and page.lang == page.previous.lang %}
|
||||||
|
<h4><a href="{{page.previous.url}}" alt="Read {{page.previous.title}}" title="Read {{page.previous.title}}"><i class="fas fa-arrow-left"></i></a> <a
|
||||||
|
href="{{page.previous.url}}"> {{page.previous.title}}</a></h4>
|
||||||
|
<p style="margin-right: 20px">{{ page.previous.description }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div class="post-nav-next">
|
||||||
|
{% if page.next.url and page.lang == page.next.lang %}
|
||||||
|
<h4><a href="{{page.next.url}}"> {{page.next.title}}</a> <a href="{{page.next.url}}" alt="Read {{page.next.title}}" title="Read {{page.next.title}}"><i
|
||||||
|
class="fas fa-arrow-right"></i></a></h4>
|
||||||
|
<p style="margin-left: 20px">{{ page.next.description }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End Post Navigation -->
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{% include footer.html %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{% include navigation.html %}
|
||||||
|
{% include scripts.html %}
|
||||||
|
{% include cookie-consent.html %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
{% endif %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue