diff --git a/.gitignore b/.gitignore index e43f899..0abe55e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ key_*.pem data/* config/* static/media/* +static/twemoji/* +static/*.css +env/* .mypy_cache/ __pycache__/ diff --git a/Makefile b/Makefile index b42421d..4b26e11 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,8 @@ microblogpub: css: # Download pure.css if needed if [[ ! -f static/pure.css ]]; then curl https://unpkg.com/purecss@1.0.1/build/pure-min.css > static/pure.css; fi + # Download bulma.css if needed + if [[ ! -f static/bulma.css ]]; then curl https://unpkg.com/bulma@0.8.0/css/bulma.css > static/bulma.css; fi # Download the emojis from twemoji if needded if [[ ! -d static/twemoji ]]; then wget https://github.com/twitter/twemoji/archive/v12.1.2.tar.gz && tar xvzf v12.1.2.tar.gz && mv twemoji-12.1.2/assets/svg static/twemoji && rm -rf twemoji-12.1.2 && rm -f v12.1.2.tar.gz; fi diff --git a/templates/layout.html b/templates/layout.html index 7f386c6..36383a2 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -5,7 +5,7 @@ {% block title %}{{ config.NAME }}'s microblog{% endblock %} - + @@ -30,6 +30,58 @@ dt, dd { font-size: 0.9em; } {% if logged_in %} + + + + {% endif %} @@ -58,5 +111,32 @@ dt, dd { font-size: 0.9em; } Powered by microblog.pub {{ microblogpub_version }} (source code) and the ActivityPub protocol +