conf: Support multiple account usernames
This commit is contained in:
@@ -15,7 +15,10 @@ author:
|
|||||||
bio: >- # tell to the world
|
bio: >- # tell to the world
|
||||||
The minimalist Jekyll theme, light and dark mode support, for running a personal site and blog,
|
The minimalist Jekyll theme, light and dark mode support, for running a personal site and blog,
|
||||||
meet Klisé theme at <a href="https://github.com/piharpi/jekyll-klise" target="_blank" rel="noopener">@github</a>.
|
meet Klisé theme at <a href="https://github.com/piharpi/jekyll-klise" target="_blank" rel="noopener">@github</a>.
|
||||||
username: username # social media username eg. github, twitter
|
username: username # author username
|
||||||
|
github: github_username
|
||||||
|
twitter: twitter_username
|
||||||
|
facebook: facebook_username
|
||||||
email: your-email@email.com # your contact adress
|
email: your-email@email.com # your contact adress
|
||||||
avatar: /assets/img/avatar.jpg # change with your own avatar
|
avatar: /assets/img/avatar.jpg # change with your own avatar
|
||||||
|
|
||||||
|
|||||||
@@ -59,20 +59,20 @@
|
|||||||
<meta
|
<meta
|
||||||
property="og:site_name"
|
property="og:site_name"
|
||||||
content="{% if page.title %}{{ page.title | escape }} | {{
|
content="{% if page.title %}{{ page.title | escape }} | {{
|
||||||
site.author.username
|
site.author.facebook
|
||||||
}}{% else %}{{ site.title | escape }}{% endif %}"
|
}}{% else %}{{ site.title | escape }}{% endif %}"
|
||||||
/>
|
/>
|
||||||
<meta
|
<meta
|
||||||
property="og:title"
|
property="og:title"
|
||||||
content="{% if page.title %}{{ page.title | escape }} | {{
|
content="{% if page.title %}{{ page.title | escape }} | {{
|
||||||
site.author.username
|
site.author.facebook
|
||||||
}}{% else %}{{ site.title | escape }}{% endif %}"
|
}}{% else %}{{ site.title | escape }}{% endif %}"
|
||||||
/>
|
/>
|
||||||
{% if page.location %}
|
{% if page.location %}
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
<meta
|
<meta
|
||||||
property="article:publisher"
|
property="article:publisher"
|
||||||
content="https://web.facebook.com/{{ site.author.username }}"
|
content="https://web.facebook.com/{{ site.author.facebook }}"
|
||||||
/>
|
/>
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
<meta
|
<meta
|
||||||
name="twitter:title"
|
name="twitter:title"
|
||||||
content="{% if page.title %}{{ page.title | escape }} | {{
|
content="{% if page.title %}{{ page.title | escape }} | {{
|
||||||
site.author.username
|
site.author.twitter
|
||||||
}}{% else %}{{ site.title | escape }}{% endif %}"
|
}}{% else %}{{ site.title | escape }}{% endif %}"
|
||||||
/>
|
/>
|
||||||
<meta
|
<meta
|
||||||
@@ -114,8 +114,8 @@
|
|||||||
page.url | remove: 'index.html' | remove: '.html' | absolute_url
|
page.url | remove: 'index.html' | remove: '.html' | absolute_url
|
||||||
}}"
|
}}"
|
||||||
/>
|
/>
|
||||||
<meta name="twitter:site" content="@{{ site.author.username }}" />
|
<meta name="twitter:site" content="@{{ site.author.twitter }}" />
|
||||||
<meta name="twitter:creator" content="@{{ site.author.username }}" />
|
<meta name="twitter:creator" content="@{{ site.author.twitter }}" />
|
||||||
<meta
|
<meta
|
||||||
name="twitter:description"
|
name="twitter:description"
|
||||||
content="{{
|
content="{{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ layout: compress
|
|||||||
{% include anchor_headings.html html=content anchorClass="anchor-head" beforeHeading=true h_min=1 h_max=4 %}
|
{% include anchor_headings.html html=content anchorClass="anchor-head" beforeHeading=true h_min=1 h_max=4 %}
|
||||||
{% if page.tweet %}
|
{% if page.tweet %}
|
||||||
<p>Comments this article on
|
<p>Comments this article on
|
||||||
<a href="https://twitter.com/{{site.username}}/status/{{page.tweet}}">Twitter</a>.
|
<a href="https://twitter.com/{{site.twitter}}/status/{{page.tweet}}">Twitter</a>.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user