Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyff committed May 26, 2024
1 parent f777de2 commit 92b8d03
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 6 deletions.
4 changes: 4 additions & 0 deletions sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ hr {
height: 1px;
margin: 2rem 0;
background: var(--light-grey);

&.subtle {
background: var(--black);
}
}

pre,
Expand Down
2 changes: 2 additions & 0 deletions sass/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ pre,
code {
font-family: var(--font-monospace);
text-rendering: optimizeLegibility;
white-space: pre;
font-size: 14px;
}

@media (max-width: 700px) {
Expand Down
2 changes: 2 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
{% import "macros/hooks.html" as hooks -%}
{% import "macros/images.html" as images -%}



<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
Expand Down
18 changes: 16 additions & 2 deletions templates/macros/opengraph.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% macro og_preview() %}
<title>{{config.title}} | {{social::og_title() }}</title>
<title>
{{social::og_title() }} // {{ config.title }}{% if config.extra.title_suffix %} // {{ config.extra.title_suffix }}{% endif -%}</title>
<meta
property="og:title"
content="{{config.title}} | {{social::og_title() }}"
Expand All @@ -25,6 +26,8 @@
}} {%- endif -%} {%- endif -%}
{% endmacro og_description %}



{% macro og_title() %}
{%- if section -%}
{%- if section.title -%}
Expand All @@ -36,14 +39,25 @@
{%- else -%}
{{ config.description }}
{%- endif -%}

{%- elif taxonomy -%}
{%- if taxonomy.name -%}
{{ taxonomy.name | striptags }}
{%- else -%}
{{ config.description }}
{%- endif -%}

{%- elif term -%}
{%- if term.name -%}
{{ term.name | striptags }}
{%- else -%}
{{ config.description }}
{%- endif -%}
{%- elif taxonomy -%}
{%- if taxonomy.name -%} {{ taxonomy.name | striptags }} {%- else -%} {{ config.description }} {%- endif -%} {%- endif -%}
{%- if taxonomy.name -%}
{{ taxonomy.name | striptags }}
{%- else -%}{{ config.description }}{%- endif -%}
{%- endif -%}
{% endmacro og_title %}

{% macro og_image() %}
Expand Down
4 changes: 1 addition & 3 deletions templates/page.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{% extends "base.html" -%}
{% block title -%}
{{ config.title }} | {{page.title}}
{% endblock title -%}

{% block content -%}
<h1 class="title">
{{ page.title }}
Expand Down
4 changes: 3 additions & 1 deletion templates/posts.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% extends "base.html" %} {% block content %}
{% extends "base.html" %}

{% block content %}
<h1 class="title">{{ section.title }}</h1>

<article>{{ section.content | safe }}</article>
Expand Down

0 comments on commit 92b8d03

Please sign in to comment.