Version 1
[yaffs-website] / web / core / themes / stable / templates / misc / feed-icon.html.twig
diff --git a/web/core/themes/stable/templates/misc/feed-icon.html.twig b/web/core/themes/stable/templates/misc/feed-icon.html.twig
new file mode 100644 (file)
index 0000000..c7cb9a3
--- /dev/null
@@ -0,0 +1,15 @@
+{#
+/**
+ * @file
+ * Theme override for a feed icon.
+ *
+ * Available variables:
+ * - url: An internal system path or a fully qualified external URL of the feed.
+ * - attributes: Remaining HTML attributes for the feed link.
+ *   - title: A descriptive title of the feed link.
+ *   - class: HTML classes to be applied to the feed link.
+ */
+#}
+<a href="{{ url }}"{{ attributes.addClass('feed-icon') }}>
+  {{ 'Subscribe to @title'|t({'@title': title}) }}
+</a>