From aeaf88f3438c71b40f6b4a0e13721dc2800918fc Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Wed, 11 Oct 2023 03:03:41 -0400 Subject: [PATCH] Fixed microblog --- README.md | 8 ++++++++ layouts/partials/microblog.html | 2 +- layouts/partials/microblog_iframe.html | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/microblog_iframe.html diff --git a/README.md b/README.md index c735274e7..32753016b 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,14 @@ Go to your GitLab project and find the settings on CI/CD and under there you wil * Change the /content/_index.md to suite your needs * Modify /layouts/partials/top_list_* to represent the section titles you want to use. +### Microblog Side Menu + +We also need to configure the sidebar's microblog to point to your alias account. If you dont have one you may want to disable this entierly. + +It is pretty simpler first just go here and fill out the form: https://www.mastofeed.com/ . Feel free to set the UI scale to whatever you want but I find 80 works best. Also select the light theme to it matches. Make sure you uncheck show header as well. + +Just copy and paste the iframe result into the /layouts/partials/microblog_iframe.html + ## Final steps All that is left now is to push your code to your GitLab repo. At that point the .gitlab-ci.yaml file should automatically do the rest. After a few minutes you should have a running static site with full ActivityPub support. Enjoy. diff --git a/layouts/partials/microblog.html b/layouts/partials/microblog.html index 3ece7ebaf..7930b5353 100644 --- a/layouts/partials/microblog.html +++ b/layouts/partials/microblog.html @@ -1,6 +1,6 @@ <div class='menu microblog'> <span class='menu-heading'> Microblog </span> - <iframe allowfullscreen sandbox="allow-top-navigation allow-scripts allow-popups allow-popups-to-escape-sandbox" style='border-width: 0' width='100%' height="800" src="https://www.mastofeed.com/apiv2/feed?userurl=https%3A%2F%2F{{ (urls.Parse site.Params.secondaryApHost).Hostname }}%2Fusers%2F{{ site.Params.secondaryApUser }}&theme=light&size=80&header=false&replies=false&boosts=false"></iframe> + {{ partial "microblog_iframe.html" . }} <div class="fill-vert"></div> <div class="more"> <a class='btn btn-default btn-m pull-right' href='{{ site.Params.secondaryApHost }}/@{{ site.Params.secondaryApUser }}/' style='align:right;text-align: right;align-content: right;'>More ... </a> diff --git a/layouts/partials/microblog_iframe.html b/layouts/partials/microblog_iframe.html new file mode 100644 index 000000000..897f87b78 --- /dev/null +++ b/layouts/partials/microblog_iframe.html @@ -0,0 +1 @@ +<iframe allowfullscreen sandbox="allow-top-navigation allow-scripts allow-popups allow-popups-to-escape-sandbox" width="400" height="800" src="https://www.mastofeed.com/apiv2/feed?userurl=https%3A%2F%2Fhttps%3A%2F%2Ffedipage.com%2Fusers%2Ffedipage&theme=light&size=80&header=false&replies=true&boosts=true"></iframe> -- GitLab