aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander_Kabui2023-09-13 19:10:34 +0300
committerAlexander_Kabui2023-09-13 19:10:34 +0300
commitfedc27ea606c49383e565c9018a224fa42a614a6 (patch)
tree4b2d04288fddf4d99e80368a9b768eba3ab70422 /wqflask
parent3662069bb6390d7a386d280aeeed540b8b24746d (diff)
downloadgenenetwork2-fedc27ea606c49383e565c9018a224fa42a614a6.tar.gz
add mastadon feed to homepage
Diffstat (limited to 'wqflask')
-rwxr-xr-xwqflask/wqflask/templates/index_page.html37
1 files changed, 30 insertions, 7 deletions
diff --git a/wqflask/wqflask/templates/index_page.html b/wqflask/wqflask/templates/index_page.html
index 6ed66c68..a218cf9c 100755
--- a/wqflask/wqflask/templates/index_page.html
+++ b/wqflask/wqflask/templates/index_page.html
@@ -9,13 +9,13 @@
<!-- UIkit JS -->
<script src="https://cdn.jsdelivr.net/npm/uikit@3.7.4/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/uikit@3.7.4/dist/js/uikit-icons.min.js"></script>
+<script type="module" src="https://esm.sh/emfed"></script>
+<link rel="stylesheet" type="text/css"
+ href="https://cdn.jsdelivr.net/gh/sampsyo/emfed@1/toots.css">
+
<style TYPE="text/css">
p.interact { display: none; }
- .tweet {
- padding:5px;
- color:#000;
- }
.media {
padding-bottom:10px;
@@ -31,14 +31,14 @@
border:1px solid #c8ccc9;
}
- div#tweets {
+ .toots {
margin:0 auto;
- width: 590px;
+ max-width: 500px;
height: 160px;
- background: white;
position: relative;
border-radius:10px;
background-color: #F9F9F9;
+
}
h2 {
@@ -48,6 +48,13 @@
ul {
margin-top: 0px;
}
+
+ .toot {
+ padding-top:8px;
+ background:#f9f9f9;
+ color:#000;
+
+ }
</style>
{% endblock %}
{% block content %}
@@ -276,6 +283,22 @@
</div>
</div>
</section>
+ <section id="news-section">
+ <div class="page-header">
+ <h2>News</h2>
+ </div>
+ <div id="mastadon" style="height: 405px; overflow: scroll; overflow-x: hidden;">
+ <a class="mastodon-feed" target="_blank"
+ href="https://genomic.social/@genenetwork"
+ data-toot-limit="5"
+ >Genenetwork mastadon</a>
+
+ </div>
+ <div align="right">
+
+ <a href="https://genomic.social/@genenetwork">more news items...</a>
+ </div>
+ </section>
<section id="websites">
<div class="page-header">
<h2>Links</h2>