diff --git a/README.md b/README.md index c735274e74a652497ea9cc224e339e809966e4d0..32753016b0f797254c145f35325dde1178e4c425 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 3ece7ebaf26c720267f8594bbf62f606eaa8c6dc..7930b53534140cfc5d075706053ded30dd2b8b94 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 0000000000000000000000000000000000000000..897f87b78c7135df964703ce069048c8b9b4abee --- /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>