--- algolia: apiKey: e3369d62b2366b374c54b2c5a2835a00 indexName: brew_all appId: D9HG3G8GS4 container: '#search-container' --- {% assign t = site.data.locales[page.lang][page.lang] -%} {% if page.title -%} {{ site.title }}: {{ page.title }} {% elsif t.subtitle -%} {% if page.url == "/" or page.direction == "rtl" -%} {{ site.title }}: {{ t.subtitle }} {% else -%} {{ site.title }}: {{ t.subtitle }} {% endif -%} {% else -%} {{ site.title }} {% endif -%} {% comment -%} The `jekyll-seo-tag` plugin uses self-closing tags (for XHTML compatibility) and, while it's still valid for an HTML5 DOCTYPE, this leads to many `info` notices when running the HTML through a validator. There's no way for us to control this behavior in the plugin, so our only option is to capture the plugin output and naively remove the trailing slash at the end of self-closing tags. {% endcomment -%} {% capture plugin_output -%} {% seo title=false -%} {% endcapture -%} {{ plugin_output | replace: " />", ">" | replace: "/>", ">" }} {% if site.url == "http://localhost:4000" -%} {% endif -%} {% if site.data.locales and page.lang -%} {% assign locales = site.data.locales | sort -%} {% for locale in locales -%} {% assign lang = locale[0] -%} {% if lang == "en" -%} {% else -%} {% endif -%} {% endfor -%} {% endif -%} {% if page.url == "/" -%} {% for rel_me_url in site.link_rel_me_urls -%} {% endfor -%} {% endif -%}
{% comment -%} This is primarily intended to remove the trailing slash from the self-closing `img` tags that result from rendered Markdown text. {% endcomment -%} {% capture rendered_content -%} {{ content }} {% endcapture -%} {{ rendered_content | replace: " />", ">" | replace: "/>", ">" -}}
{% if site.forkme_nwo -%} {% assign forkme_url = "https://github.com/" | append: site.forkme_nwo -%} {% elsif site.github.repository_nwo and site.github.source.branch and site.github.source.path -%} {% assign forkme_url = "https://github.com/" | append: site.github.repository_nwo | append: "/edit/" | append: site.github.source.branch | append: site.github.source.path | append: "/" | append: page.path -%} {% else -%} {% assign forkme_url = "https://github.com/Homebrew/brew" -%} {% endif -%}