You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gr...@apache.org on 2024/07/26 20:14:49 UTC
(logging-site) 01/05: draft & testing for youtube embed for jekyll
This is an automated email from the ASF dual-hosted git repository.
grobmeier pushed a commit to branch youtube_embed
in repository https://gitbox.apache.org/repos/asf/logging-site.git
commit 5ed290b99c10a3ee08a99c5a7032157bef3b3492
Author: Christian Grobmeier <cg...@grobmeier.de>
AuthorDate: Fri Jul 26 00:05:01 2024 +0200
draft & testing for youtube embed for jekyll
---
_plugins/youtube.rb | 38 +++++++++++++++++++++
...2024-07-25-Log4j-At-Community-Over-Code-2024.md | 38 +++++++++++++++++++++
img/placeholder.jpg | Bin 0 -> 109580 bytes
3 files changed, 76 insertions(+)
diff --git a/_plugins/youtube.rb b/_plugins/youtube.rb
new file mode 100644
index 00000000..885c4f42
--- /dev/null
+++ b/_plugins/youtube.rb
@@ -0,0 +1,38 @@
+# _plugins/youtube_embed.rb
+module Jekyll
+ class YouTube < Liquid::Tag
+ def initialize(tag_name, text, tokens)
+ super
+ @text = text.strip
+ end
+
+ def render(context)
+ video_id, image_url = @text.split(' ')
+ <<~HTML
+ <div class="yt-container-#{video_id}" style="cursor: pointer;">
+ <img src="#{image_url}" alt="Video thumbnail" style="width: 100%; height: auto;">
+ </div>
+ <script>
+ document.addEventListener('DOMContentLoaded', function() {
+ var container = document.querySelector('.yt-container-#{video_id}');
+ function addElement() {
+ var iframe = document.createElement('iframe');
+ iframe.setAttribute('width', '560');
+ iframe.setAttribute('height', '315');
+ iframe.setAttribute('src', 'https://www.youtube-nocookie.com/embed/#{video_id}?autoplay=1');
+ iframe.setAttribute('title', 'YouTube video player');
+ iframe.setAttribute('frameborder', '0');
+ iframe.setAttribute('allow', 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share');
+ iframe.setAttribute('allowfullscreen', '');
+ container.innerHTML = '';
+ container.appendChild(iframe);
+ }
+ container.addEventListener('click', addElement);
+ });
+ </script>
+ HTML
+ end
+ end
+end
+
+Liquid::Template.register_tag('youtube', Jekyll::YouTube)
diff --git a/_posts/2024-07-25-Log4j-At-Community-Over-Code-2024.md b/_posts/2024-07-25-Log4j-At-Community-Over-Code-2024.md
new file mode 100644
index 00000000..b12eb619
--- /dev/null
+++ b/_posts/2024-07-25-Log4j-At-Community-Over-Code-2024.md
@@ -0,0 +1,38 @@
+---
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+layout: post
+title: "Apache Log4j - Interview at Community Over Code 2024"
+description: "Piotr Karwasz and Matt Sicker discuss the history and future of Apache Log4j at the Community Over Code conference."
+tags:
+ - Apache Log4j
+ - Anniversary
+ - Open Source
+ - Community
+type: post
+---
+
+# Apache Log4j at Community Over Code 2024 in Bratislava
+
+On July 25, 2024, Apache Log4j was featured at the Community Over Code conference in Bratislava.
+Matt Sicker and Piotr Karwasz, two of the project's key contributors, shared insights into the history and future of Log4j.
+
+If you are interested in what we learned about security and how we want to
+improve Log4j further, please watch the full interview done by Rich Bowen for
+the ASF.
+
+{% youtube Hpe7p24DQo0 /img/placeholder.jpg %}
\ No newline at end of file
diff --git a/img/placeholder.jpg b/img/placeholder.jpg
new file mode 100644
index 00000000..5150f284
Binary files /dev/null and b/img/placeholder.jpg differ