Shortcodes and content

Added some shortcodes with a download link, I'll refine the shortcodes later so that they can be optional amounts rather than having all four links to different types of downloads.
main
Hailey Clark 4 years ago
parent 26c3790e47
commit 83565abb42
  1. 5
      config.toml
  2. 2
      content/band/fueled-by-pornography.md
  3. 25
      content/band/furta-sacra.md
  4. 24
      content/music/ddea.md
  5. 11
      content/music/flic-your-bic-bitch.md
  6. 9
      content/music/something-in-my-nose.md
  7. 9
      content/music/tweaking-with-grandma.md
  8. 30
      layouts/index.html
  9. 72
      layouts/shortcodes/blockquote.html
  10. 4
      layouts/shortcodes/music-download.html
  11. 7
      layouts/shortcodes/music-download2.html

@ -3,14 +3,13 @@ baseURL = "https://poor-choice.com"
languageCode = "en-us"
title = "Poor Choice Records - A PIMP Inc Company"
theme = "cactus"
copyright = "2020-2021 PIMP Inc"
copyright = "Poor-Choice Records a subisdary of PIMP Inc"
[params]
colortheme = "dark"
# css = ["css/custom.css"]
description = "Poor Choice Records is a world reconized brand known for the publishing of poor quality music (Is you could even call it that)."
description = "Poor Choice Records is a world reconized brand known for the publishing of poor quality music (If you could even call it that)."
mainSection = "post"
postsOnHomePage = 15
rss = true
logo = "poorchoicerecord-sitelogo-speakeronly.svg"

@ -19,4 +19,4 @@ Take a listen if you dare to some pre releases for Fueled by Pornography.
* [Something in my Nose]({{< relref "/music/something-in-my-nose.md" >}})
* [Tweaking with Grandma]({{< relref "/music/tweaking-with-grandma.md" >}})
* [Flic your bic Bitch]({{< relref "/music/flic-your-bic-bitch.md" >}})
* [Flic My bic Bitch]({{< relref "/music/flic-your-bic-bitch.md" >}})

@ -0,0 +1,25 @@
---
title: "Furta Sacra"
date: 2020-11-23T20:59:53-07:00
draft: false
type: "band"
band: "Furta Sacra"
author: "The Management"
tags: ["music","band","furta sacra"]
categories: ["band","band info"]
---
= FURTA SACRA
**Furta Sacra** is a group of misfits from Atascadero State Hospital. They're new up and comers
in the horror music scene. They have more horror experience than anyone I've met,
being confined to four walls has really brought out the brutalness of their tracks.*
== Members
* **Flash Bannister** - Vocals and Guitar, Fashion Icon
* **Frater Sus** - Percussion and the *TORTURED SOULS*
* **Stonewall Jackson** - Keyboards and SFX (Foley work)
== Songs
* [DDEA]({{<ref "/music/ddea.md">}})
\*Due to the brutality of performances live shows ***ARE NOT*** recommended.

@ -1,9 +1,15 @@
---
title: "DDea"
date: 2020-11-12T17:14:14-08:00
type: "music"
author: "The Management"
draft: false
---
New song! DDEA! Listen here! A poor choice exclusive until they make a full album,
which they will because of our rock solid contracts.
---
title: "DDea by Furta Sacra"
date: 2020-11-12T17:14:14-08:00
type: "music"
author: "The Management"
band: "Furta Sacra"
tags: ["free","furta sacra"]
categories: ["singles","free", "furta sacra", "ddea"]
author: "The Management"
draft: false
---
New song! **DDEA**! Listen here! A poor choice exclusive until they make a full album,
which they will because of our rock solid contracts.
{{<music-download src="downloads/fueled-by-pornography/flic-my-bic-bitch.mp3" title="FLICK SHIT">}}

@ -1,5 +1,5 @@
---
title: "Flic Your Bic Bitch"
title: "Flic My Bic Bitch"
date: 2018-02-17T04:08:41-08:00
draft: false
type: "music"
@ -8,4 +8,11 @@ band: "Fueled by Pornography"
tags: ["fbp","gloryhole gape","free"]
categories: ["fpb","gloryhole gape","preview"]
---
Flick Your Bic Bitch can be downloaded....
This hip new nowave noise song is called Flick My Bic Bitch and it can be downloaded below.
{{<music-download2
mp3src="/downloads/fueled-by-pornography/flic-my-bic-bitch.mp3"
flacsrc="/downloads/fueled-by-pornography/flic-my-bic-bitch.flac"
aifsrc="/downloads/fueled-by-pornography/flic-my-bic-bitch.aif"
wavsrc="/downloads/fueled-by-pornography/flic-my-bic-bitch.wav"
title="Flick My Bic Bitch">}}

@ -10,3 +10,12 @@ categories: ["fpb","gloryhole gape","preview"]
---
**Something in my nose** is a brisk 1 minute rage. This is part of the upcoming album [Gloryhole Gape]({{< relref "/album/gloryhole-gape.md" >}}) which
should be ready sometime in the spring. Stay tuned, and keep posted for tour dates.
# Download below!
{{<music-download2
mp3src="/downloads/fueled-by-pornography/something-in-my-nose.mp3"
flacsrc="/downloads/fueled-by-pornography/something-in-my-nose.flac"
aifsrc="/downloads/fueled-by-pornography/something-in-my-nose.aif"
wavsrc="/downloads/fueled-by-pornography/something-in-my-nose.wav"
title="Something In My Nose">}}

@ -8,7 +8,14 @@ band: "Fueled by Pornography"
tags: ["fbp","gloryhole gape","free"]
categories: ["fpb","gloryhole gape","preview"]
---
Downloads below.
![Tweaking with Grandma Album Cover](/images/TwG-SingleConcept-Web.jpg)
{{<music-download2
mp3src="/downloads/fueled-by-pornography/tweaking-with-grandma.mp3"
flacsrc="/downloads/fueled-by-pornography/tweaking-with-grandma.flac"
aifsrc="/downloads/fueled-by-pornography/tweaking-with-grandma.aif"
wavsrc="/downloads/fueled-by-pornography/tweaking-with-grandma.wav"
title="Tweaking With Grandma">}}
Stay tuned for more songs by [Fueled by Pornography](/band/fueled-by-pornography/) on their
upcoming album [Gloryhole Gape]({{< relref "/album/gloryhole-gape.md" >}}) by

@ -4,7 +4,7 @@
{{ .Site.Params.description }}
{{ end }}
{{ if isset .Site.Params "social" }}
<p>Find me on
<p>Find us on
{{ $length := (len .Site.Params.social) }}
{{ range $index, $elem := .Site.Params.social}}
{{ if eq $elem.name "email" }}
@ -84,27 +84,11 @@
</ul>
{{ end }}
</section>
{{ $showProjectsList := false }}
{{ if .Site.Data.projects }}
{{ $showProjectsList = true }}
{{ else if (isset .Site.Params "showProjectsList") }}
{{ $showProjectsList = .Site.Params.ShowProjectsList }}
{{ end }}
{{ if $showProjectsList }}
{{ $projectsUrl := "#" }}
{{ if isset .Site.Params "projectsUrl" }}
{{ $projectsUrl = .Site.Params.projectsUrl }}
{{ end }}
<section id="projects">
<span class="h1"><a href="{{ $projectsUrl }}">Projects</a></span>
<ul class="project-list">
{{ range .Site.Data.projects.list }}
<li class="project-item">
<a href="{{ .url }}">{{ .name }}</a>: {{ .desc | markdownify }}
</li>
{{ end }}
</ul>
<section id="submissions">
<span class="h1">Submissions</span>
<p>We accept submissions from new and untalented artists. If you have talent don't bother.</p>
<a class="icon" target="_blank" rel="noopener" href="mailto:submissions@pimp-inc.com">
<i class="fas fa-envelope"></i> Submissions Email
</a>
</section>
{{ end }}
{{ end }}

@ -0,0 +1,72 @@
<!-- Author: Parsia Hakimian https://github.com/parsiya/Hugo-Shortcodes -->
<!-- port of Octopress blockquote plugin http://octopress.org/docs/plugins/blockquote/ to Hugo
see readme for usage -->
<!-- reset scratch variables at the start -->
{{ $.Scratch.Set "bl_author" false }}
{{ $.Scratch.Set "bl_source" false }}
{{ $.Scratch.Set "bl_link" false }}
{{ $.Scratch.Set "bl_title" false }}
{{ if .IsNamedParams }}
{{ $.Scratch.Set "bl_author" (.Get "author") }}
{{ $.Scratch.Set "bl_source" (.Get "source") }}
{{ $.Scratch.Set "bl_link" (.Get "link") }}
{{ $.Scratch.Set "bl_title" (.Get "title") }}
{{ else }}
<!-- for the positional version if any -->
{{ end }}
<!-- if title is not set explicitly then we need to beautify the link
if length of link is more than 32 chars, we will cut it off by 32 and
then drop everything after the last / if any and put it in into title -->
{{ with $.Scratch.Get "bl_title" }}
<!-- do nothing -->
{{ else }}
{{ with $.Scratch.Get "bl_link" }} <!-- if link is given -->
{{ range last 1 (split ($.Scratch.Get "bl_link" ) "://") }} <!-- split by :// and then only take the items after it to remove protocol:// -->
{{ $.Scratch.Set "title_without_protocol" . }}
{{ end }}
{{ range last 1 (split ($.Scratch.Get "title_without_protocol" ) "www.") }} <!-- also remove the www. at the start if any. we are using a second split because all URLS may not start with it -->
{{ $.Scratch.Set "title_without_protocol" . }}
{{ end }}
{{ $.Scratch.Set "bl_title" ($.Scratch.Get "title_without_protocol") }}
<!-- if link is longer than 32 bytes we should trim it -->
{{ if (gt (len ($.Scratch.Get "title_without_protocol") ) 32) }}
{{ $title := (slicestr ($.Scratch.Get "title_without_protocol") 0 32) }} <!-- get the first 32 characters of title_without_protocol -->
{{ $split_by_fw_slash := split $title "/" }} <!-- now split on / because we want to stop after the last forward slash -->
{{ $count := (sub (len $split_by_fw_slash) 1) }} <!-- we want everything but the last part so we adjust the count accordingly -->
{{ $.Scratch.Set "tempstring" "" }} <!-- temp variable to hold the concatinated string -->
{{ range first $count $split_by_fw_slash }} <!-- loop through all parts except last and concat them (add / between halves) -->
{{ $.Scratch.Set "tempstring" ( . | printf "%s%s/" ($.Scratch.Get "tempstring") | printf "%s" ) }}
{{ end }}
{{ $.Scratch.Set "bl_title" ( printf "%s..." ($.Scratch.Get "tempstring") | printf "%s" ) }}
{{ end }}
{{ end }}
{{ end }}
<blockquote>
<p>{{ .Inner | markdownify }}</p>
<footer>
<strong>{{ with $.Scratch.Get "bl_author" }}{{ . }}{{ end }}</strong>
{{ with $.Scratch.Get "bl_source" }}
<cite>{{ . }}</cite>
{{ else }}
{{ with $.Scratch.Get "bl_link" }}
<cite>
<a href="{{ . }}" title="{{ . }}" rel="noopener noreferrer">{{ $.Scratch.Get "bl_title" }}</a> <!-- can't have new lines here -->
</cite>
{{ else }}
{{ with $.Scratch.Get "bl_title" }}
<cite>
{{ $.Scratch.Get "bl_title" }}</a>
</cite>
{{ end }}
{{ end }}
{{ end }}
</footer>
</blockquote>

@ -0,0 +1,4 @@
<div class="song-download">
<a href="{{ .Get "src" }}"> {{ .Get "title" }}</a>
</div>

@ -0,0 +1,7 @@
<div class="song-download">
{{ .Get "title" }} - <a href="{{ .Get "mp3src" }}">MP3</a>
<a href="{{ .Get "flacsrc" }}">FLAC</a>
<a href="{{ .Get "aifsrc" }}">AIF</a>
<a href="{{ .Get "wavsrc" }}">WAV</a>
</div>
Loading…
Cancel
Save