Skip to content

Commit

Permalink
fix: add opengraph for landing and simple layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jan 2, 2024
1 parent acde2d7 commit f80646c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
31 changes: 4 additions & 27 deletions src/shibuya/theme/shibuya/layout/landing.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{%- extends "layout.html" -%}

{%- block extrahead %}
{% include "partials/opengraph.html" %}
{%- endblock %}

{% block body %}{{ body }}{% endblock %}

{% block themestyles %}
Expand All @@ -16,33 +20,6 @@
.yue a.headerlink {
display: none;
}
.yue .buttons {
margin: 2rem 0 4.2rem;
}
.yue .buttons > p {
display: flex;
gap: 1rem;
}
.yue .buttons a {
display: inline-block;
padding: 0 2rem;
line-height: 2.6rem;
border-radius: 2.6rem;
border: 2px solid var(--sy-c-border);
font-weight: 600;
background-color: var(--sy-c-surface);
transition: all 0.2s ease;
}
.yue .buttons a:first-child {
color: var(--accent-9-contrast);
background-color: var(--accent-9);
border-color: var(--accent-9);
}
.yue .buttons a:hover {
color: var(--sy-c-bold);
border-color: var(--accent-11);
background-color: var(--sy-c-background);
}
</style>
{% endblock %}

Expand Down
4 changes: 4 additions & 0 deletions src/shibuya/theme/shibuya/layout/simple.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{%- extends "layout.html" -%}

{%- block extrahead %}
{% include "partials/opengraph.html" %}
{%- endblock %}

{% block body %}{{ body }}{% endblock %}

{% block afterarticle %}
Expand Down

0 comments on commit f80646c

Please sign in to comment.