Skip to content

Commit

Permalink
Merge pull request #20 from Lednerb/development
Browse files Browse the repository at this point in the history
Implemented changes from @aerohub and #19
  • Loading branch information
Lednerb authored Nov 8, 2017
2 parents b28aca6 + 5a6b114 commit c6e206c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
6 changes: 4 additions & 2 deletions archetypes/audio.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tags: []
author: ""

# Set your audio url for
spotify: "" # (Spotify URI) spotify:track:43mGIUqxFoDQI4YiqbGmqd
soundcloud: "" # https://soundcloud.com/lightbooks/alchemist-08-new-world-order-snip
spotify: "" # (Spotify URI) spotify:track:43mGIUqxFoDQI4YiqbGmqd
soundcloud: "" # https://soundcloud.com/lightbooks/alchemist-08-new-world-order-snip
tunein: "" # t117894382
mixcloud: "" # scienceforthepeople/445-ai-ant-intelligence
---
6 changes: 4 additions & 2 deletions exampleSite/content/audio/kilez-more-new-wolrd-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ categories: ['Music']
tags: ['Kilez More', 'Truth Rap']

# Set your audio url for
spotify: spotify:track:0qDZPJGUALZC7vSahlekhu
spotify: "spotify:track:0qDZPJGUALZC7vSahlekhu"
soundcloud: "" # https://soundcloud.com/lightbooks/alchemist-08-new-world-order-snip
tunein: "" # t117894382
mixcloud: "" # scienceforthepeople/445-ai-ant-intelligence
---
With the `audio` post type you can easily integrate a Spotify or SoundCloud player to your post.
With the `audio` post type you can easily integrate a Spotify, SoundCloud, TuneIn or Mixcloud player to your post.

If you don't want to embed sound but use a header image you can set it with the `featuredImage` option in your markdown file.
16 changes: 8 additions & 8 deletions i18n/ru.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
- id: categories
translation: "категории"
translation: "Темы"
- id: socialMedia
translation: "социальные медиа"
translation: "Я в соцсетях"
- id: latestPosts
translation: "Новые сообщения"
translation: "Свежие записи"
- id: search
translation: "искать ..."
translation: "Поиск..."
- id: noSearchResults
translation: "Ничего не найдено."
- id: olderPosts
translation: "старшие должности"
translation: "Старые записи"
- id: newerPosts
translation: "Новые сообщения"
translation: "Новые записи"
- id: footnoteReturnText
translation: "[вернуть]"
translation: "[Назад]"
- id: continueReading
translation: "продолжить чтение"
translation: "Читать далее..."
10 changes: 10 additions & 0 deletions layouts/partials/content-type/audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url={{ . }}&amp;color=%23ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true"></iframe>
</div>
{{ end }}
{{ with .Params.tunein }}
<div class="responsive-audio tunein">
<iframe src="https://tunein.com/embed/player/{{ . }}/" style="width:100%; height:100px;" scrolling="no" frameborder="no"></iframe>
</div>
{{ end }}
{{ with .Params.mixcloud }}
<div class="responsive-audio mixcloud">
<iframe width="100%" height="120" src="https://www.mixcloud.com/widget/iframe/?hide_cover=1&feed=/{{ . }}/" frameborder="0" ></iframe>
</div>
{{ end }}

{{ partial "default-content" . }}
{{ partial "tag-footer" . }}
Expand Down

0 comments on commit c6e206c

Please sign in to comment.