Skip to content

Commit

Permalink
Merge pull request #62 from giantmade/anchor_id
Browse files Browse the repository at this point in the history
feat: add new anchor id field to the plugin templates
  • Loading branch information
tombannister-94 authored Jun 22, 2023
2 parents 1649547 + 7b62e49 commit fec4d46
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.18
- Added anchor_id field to the templates.

## 1.0.17
- Added anchor_id field to the Content Width Video, Donate, Page Card Block, and Rich Text plugins.

Expand Down
2 changes: 1 addition & 1 deletion giant_plugins/templates/plugins/content_width_video.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% thumbnail instance.image 150x150 crop upscale quality=50 as thumb %}

<section class="image-block image-block--quote">
<section class="image-block image-block--quote"{% if instance.anchor_id %} id="{{ instance.anchor_id }}"{% endif %}>
<div class="wrapper wrapper--mid">
<a href="{{ instance.youtube_url }}" class="image-block__image video-popup" title="{% if instance.alt_title %}{{ instance.alt_title }}{% else %}Play video{% endif %}">
<div class="play-video"></div>
Expand Down
2 changes: 1 addition & 1 deletion giant_plugins/templates/plugins/donate.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load cms_tags %}
<section class="donate-block">
<section class="donate-block"{% if instance.anchor_id %} id="{{ instance.anchor_id }}"{% endif %}>
<div class="wrapper wrapper--thin">
{% if instance.title or instance.text %}
<div class="donate-block__text">
Expand Down
2 changes: 1 addition & 1 deletion giant_plugins/templates/plugins/page_card/container.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load cms_tags %}

<section class="card-block card-block--{{ instance.theme }} card-block--{{ instance.background_colour }}">
<section class="card-block card-block--{{ instance.theme }} card-block--{{ instance.background_colour }}"{% if instance.anchor_id %} id="{{ instance.anchor_id }}"{% endif %}>
<div class="wrapper">
{% if instance.title %}
{{ instance.title|safe }}
Expand Down
2 changes: 1 addition & 1 deletion giant_plugins/templates/plugins/rich_text.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load cms_tags %}
<section class="text-block">
<section class="text-block"{% if instance.anchor_id %} id="{{ instance.anchor_id }}"{% endif %}>
<div class="wrapper{% if not instance.left_aligned %} wrapper--mid{% endif %}">
{% if instance.left_aligned %}<div class="text-block__thin">{% endif %}
{{ instance.text|safe }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "giant-plugins"
version = "1.0.17"
version = "1.0.18"
description = "Adds a generic list of plugins for use within projects"
authors = ["Will-Hoey <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit fec4d46

Please sign in to comment.