Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move two column layout into fences using markdown-it-container. #685

Open
muffinresearch opened this issue Jul 28, 2020 · 0 comments
Open
Labels
11ty-migration blocks-l10n These issues block localizing the site

Comments

@muffinresearch
Copy link
Contributor

Today there is code like this:

<!-- END: Single Column Body Module -->

<!-- Two Column Body Module -->

{% capture col_1_content %}

Help users separate their browser activities with [Contextual Identities](https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/contextualIdentities) a.k.a. Containers. Give groups of tabs their own local browser storage: cookie store and local data in localStorage and indexedDB. This keeps details such as site preferences, signed in sessions, and ad tracking data private to the tabs.

{% endcapture %}

{% capture col_2_content %}

![Containers-screenshot](/assets/img/documentation/develop/containers.png "A screenshot of a container dropdown menu, which includes Personal, Work, Banking, and Shopping containers, and the option to Manage Containers")

{% endcapture %}
{% include modules/two-column.liquid
	col_1: col_1_content
	col_2: col_2_content
%}

<!-- END: Two Column Body Module -->

This could be simplified into some markdown extensions instead. This could look something like this:

::: 2-column-layout
:::: column-1
Help users separate their browser activities with [Contextual Identities](https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/contextualIdentities) a.k.a. Containers. Give groups of tabs their own local browser storage: cookie store and local data in localStorage and indexedDB. This keeps details such as site preferences, signed in sessions, and ad tracking data private to the tabs.
::::

:::: column-2
![Containers-screenshot](/assets/img/documentation/develop/containers.png "A screenshot of a container dropdown menu, which includes Personal, Work, Banking, and Shopping containers, and the option to Manage Containers")
::::
:::
@muffinresearch muffinresearch added 11ty-migration blocks-l10n These issues block localizing the site labels Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11ty-migration blocks-l10n These issues block localizing the site
Projects
None yet
Development

No branches or pull requests

1 participant