File tree 7 files changed +47
-2
lines changed
7 files changed +47
-2
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,20 @@ Just use the liquid tags `{% highlight python %}` and `{% endhighlight %}` to de
98
98
</a >
99
99
</p >
100
100
101
+ #### Social media previews
102
+ The al-folio theme optionally supports preview images on social media.
103
+ To enable this functionality you will need to set ` serve_og_meta ` to ` true ` in
104
+ your ` _config.yml ` . Once you have done so, all your site's pages will include
105
+ Open Graph data in the HTML head element.
106
+
107
+ You will then need to configure what image to display in your site's social
108
+ media previews. This can be configured on a per-page basis, by setting the
109
+ ` og_image ` page variable. If for an individual page this variable is not set,
110
+ then the theme will fall back to a site-wide ` og_image ` variable, configurable
111
+ in your ` _config.yml ` . In both the page-specific and site-wide cases, the
112
+ ` og_image ` variable needs to hold the URL for the image you wish to display in
113
+ social media previews.
114
+
101
115
## Contributing
102
116
103
117
Feel free to contribute new features and theme improvements by sending a pull request.
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ @article{PhysRev.47.777
34
34
month ={ May} ,
35
35
publisher =aps,
36
36
doi ={ 10.1103/PhysRev.47.777} ,
37
- url ={ http://link.aps.org/doi/10.1103/PhysRev.47.777}
37
+ url ={ http://link.aps.org/doi/10.1103/PhysRev.47.777} ,
38
+ html ={ https://journals.aps.org/pr/abstract/10.1103/PhysRev.47.777} ,
39
+ pdf ={ example_pdf.pdf}
38
40
}
39
41
40
42
@article {einstein1905molekularkinetischen ,
Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ navbar_fixed: true
23
23
footer_fixed : true
24
24
# TODO: add layout settings (single page vs. multi-page)
25
25
26
+ # -----------------------------------------------------------------------------
27
+ # Open Graph
28
+ # -----------------------------------------------------------------------------
29
+ # Display links to the page with a preview object on social media.
30
+ # To achieve this, change serve_og_meta to true and then provide the URL of the
31
+ # preview image as the value of og_image.
32
+ serve_og_meta : false # Include Open Graph meta tags in the HTML head
33
+ og_image : # The site-wide (default for all links) Open Graph preview image
26
34
# -----------------------------------------------------------------------------
27
35
# Social integration
28
36
# -----------------------------------------------------------------------------
@@ -32,6 +40,12 @@ twitter_username: # your Twitter handle
32
40
linkedin_username : # your LinkedIn user name
33
41
scholar_userid : # your Google Scholar ID
34
42
orcid_id : # your ORCID ID
43
+ medium_username : # your Medium username
44
+ quora_username : # your Quora username
45
+ publons_id : # your ID on Publons
46
+ research_gate_profile : # your profile on ResearchGate
47
+ blogger_url : # your blogger URL
48
+
35
49
contact_note : >
36
50
You can even add a little note about which of these is the best way to reach you.
37
51
Original file line number Diff line number Diff line change 19
19
< link rel ="stylesheet " href ="{{ '/assets/css/main.css' | relative_url }} ">
20
20
21
21
< link rel ="canonical " href ="{{ page.url | replace:'index.html','' | relative_url }} ">
22
+
23
+ <!-- Open Graph -->
24
+ {% if site.serve_og_meta %}
25
+ < meta property ="og:site_name " content ="{{ site.description }} " />
26
+ < meta property ="og:type " content ="object " />
27
+ < meta property ="og:title " content ="{{ site.name }} " />
28
+ < meta property ="og:url " content ="{{ page.url | prepend: site.baseurl | prepend: site.url }} " />
29
+ < meta property ="og:description " content ="{{ page.title }} " />
30
+ < meta property ="og:image " content ="{%- if page.og_image -%}{{ page.og_image }}{%- else -%}{{ site.og_image }}{%- endif -%} " />
31
+ {% endif %}
Original file line number Diff line number Diff line change 2
2
< a href ="mailto:{{ site.email | encode_email }} "> < i class ="fas fa-envelope "> </ i > </ a >
3
3
{% if site.orcid_id %}< a href ="https://orcid.org/{{ site.orcid_id }} " target ="_blank " title ="ORCID "> < i class ="ai ai-orcid "> </ i > </ a > {% endif %}
4
4
{% if site.scholar_userid %}< a href ="https://scholar.google.com/citations?user={{ site.scholar_userid }} " target ="_blank " title ="Google Scholar "> < i class ="ai ai-google-scholar "> </ i > </ a > {% endif %}
5
+ {% if site.publons_id %}< a href ="https://publons.com/a/{{ site.publons_id }}/ " target ="_blank " title ="Publons "> < i class ="ai ai-publons "> </ i > </ a > {% endif %}
6
+ {% if site.research_gate_profile %}< a href ="https://www.researchgate.net/profile/{{site.research_gate_profile}}/ " target ="_blank " title ="ResearchGate "> < i class ="ai ai-researchgate "> </ i > </ a > {% endif %}
5
7
{% if site.github_username %}< a href ="https://github.com/{{ site.github_username }} " target ="_blank " title ="GitHub "> < i class ="fab fa-github "> </ i > </ a > {% endif %}
6
8
{% if site.linkedin_username %}< a href ="https://www.linkedin.com/in/{{ site.linkedin_username }} " target ="_blank " title ="LinkedIn "> < i class ="fab fa-linkedin "> </ i > </ a > {% endif %}
7
9
{% if site.twitter_username %}< a href ="https://twitter.com/{{ site.twitter_username }} " target ="_blank " title ="Twitter "> < i class ="fab fa-twitter "> </ i > </ a > {% endif %}
10
+ {% if site.medium_username %}< a href ="https://medium.com/@{{ site.medium_username }} " target ="_blank " title ="Medium "> < i class ="fab fa-medium "> </ i > </ a > {% endif %}
11
+ {% if site.quora_username %}< a href ="https://www.quora.com/profile/{{ site.quora_username }} " target ="_blank " title ="Quora "> < i class ="fab fa-quora "> </ i > </ a > {% endif %}
12
+ {% if site.blogger_url %}< a href ="{{ site.blogger_url }} " target ="_blank " title ="Blogger "> < i class ="fab fa-blogger-b "> </ i > </ a > {% endif %}
8
13
{% if site.strava_userid %}< a href ="https://www.strava.com/athletes/{{ site.strava_userid }} " target ="_blank " title ="Strava "> < i class ="fab fa-strava "> </ i > </ a > {% endif %}
9
14
</ span >
Original file line number Diff line number Diff line change 2
2
* Styles for the base elements of the theme.
3
3
******************************************************************************/
4
4
5
- // Typography
5
+ // Typography
6
6
7
7
a , table .table a {
8
8
color : $theme-color ;
You can’t perform that action at this time.
0 commit comments