diff --git a/entries/jinja2/entries/h-entry.html b/entries/jinja2/entries/h-entry.html index 6d55eb2..b9a05f6 100644 --- a/entries/jinja2/entries/h-entry.html +++ b/entries/jinja2/entries/h-entry.html @@ -1,54 +1,64 @@ {% macro hEntry(entry, indent_width) -%} {%- set i = ' ' * indent_width -%} -
- {{i}} - - {{i}}
- {% if entry.photo %} - {{i}} - - {% endif %} - {{i}}
- {% if entry.name %} - {{i}}

{{ entry.name }}

- {% endif %} - {{i}}
- {{i}}{{ entry.content | markdown }} - {{i}}
- {{i}}
{{i}}
+ {% endif %} {{i}} {{i}}
{%- endmacro %} diff --git a/entries/static/entries/css/h-entry.styl b/entries/static/entries/css/h-entry.styl index 1177403..2fb7701 100644 --- a/entries/static/entries/css/h-entry.styl +++ b/entries/static/entries/css/h-entry.styl @@ -10,23 +10,7 @@ ol.entries, div.entry &:last-child margin-bottom 0 -.h-entry.media - > aside.info - display flex - flex-direction column - align-items center - font-size 0.8rem - margin-right 1rem - - a.p-author - text-align center - img.u-photo - border-radius .25rem - height 3em - > * - margin-bottom .25rem - > .card - flex 1 +.card.h-entry .e-content ul list-style-type disc @@ -42,3 +26,14 @@ ol.entries, div.entry max-width 100% > :last-child margin-bottom 0 + + .card-footer + text-align center + > * + display inline-block + margin-right 1rem + &:last-child + margin-right 0 + .h-card > img + height 1em + vertical-align baseline diff --git a/lemoncurry/jinja2/__init__.py b/lemoncurry/jinja2/__init__.py index e463d47..cf944df 100644 --- a/lemoncurry/jinja2/__init__.py +++ b/lemoncurry/jinja2/__init__.py @@ -9,7 +9,6 @@ from django_activeurl.ext.django_jinja import ActiveUrl from entries.kinds import all as entry_kinds from .markdown import markdown -from ..theme import color as theme_color from ..utils import friendly_url, load_package_json @@ -30,7 +29,6 @@ def environment(**options): 'package': load_package_json(), 'settings': settings, 'static': staticfiles_storage.url, - 'theme_color': theme_color, 'url': reverse, }) return env diff --git a/lemoncurry/jinja2/lemoncurry/layout.html b/lemoncurry/jinja2/lemoncurry/layout.html index e2328e4..09800e4 100644 --- a/lemoncurry/jinja2/lemoncurry/layout.html +++ b/lemoncurry/jinja2/lemoncurry/layout.html @@ -5,24 +5,21 @@ {% if title %}{{ title }} ~ {% endif %}{{ request.site.name }} + {% block head %}{% endblock %} {% if atom is defined %} {% endif %} {% if rss is defined %} {% endif %} - {% block head %}{% endblock %} - - - + - diff --git a/wellknowns/views/manifest.py b/wellknowns/views/manifest.py index 45f108b..d50cf16 100644 --- a/wellknowns/views/manifest.py +++ b/wellknowns/views/manifest.py @@ -24,7 +24,17 @@ def manifest(request): 'start_url': urljoin(base, start_url), 'background_color': color(0), - 'theme_color': color(10), + 'theme_color': color(2), } + # icons = FaviconImg.objects.filter( + # faviconFK__isFavicon=True, + # rel__in=rels, + # ).order_by('size') + # app['icons'] = [{ + # 'type': 'image/png', + # 'sizes': '{0}x{0}'.format(icon.size), + # 'src': urljoin(base, icon.faviconImage.url), + # } for icon in icons] + return JsonResponse(app, content_type='application/manifest+json')