mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
Fixed microblog
This commit is contained in:
parent
f8c1659cdb
commit
aeaf88f343
3 changed files with 10 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
|
|
1
layouts/partials/microblog_iframe.html
Normal file
1
layouts/partials/microblog_iframe.html
Normal file
|
@ -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>
|
Loading…
Reference in a new issue