Using This Website Template
This website is based on the Mininal Mistakes theme. Look here for a set of sample posts.
The exact template for this website can be found here in the gh-pages
branch of the repository.
Configuration
- Change personal details (including the SEO and google analytics details) in
_config.yml
. - Change (or remove) the google analytics code in
_includes/head.html
.
Layouts
Single
For documentation on using the single layout, refer to the documentation of the original theme.
I have added an additional paramater, title_in_header
for any file which uses the single layout, the default value for which is false
and can be set to
true
as per requirement. This variable is supposed to be used if an overlay image in the header is used.
If it is set to true
, the title of the page will be displayed in the overlay image, otherwise, it will be displayed below the overlay image in style <h1>
.
Since pages do not use an overlay image by default, its default value is set to false
.
Pubpage
For each publication, add a markdown file under the /publications
directory and use the pubpage
layout. Front matter variables for this layout have been listed below in the code snippet.
After the front matter, add the abstract under after giving a heading ## Abstract
using markdown or <h2 id="abstract"> Abstract </h2>
using html, and the citation below it, using code highlighting, with the heading ## Citation
using markdown or <h2 id="citation"> Citation </h2>
using html.
The displayed output, on the Publications page, (for conf
and journal
) will be
For preprint
the fields not used will not be displayed. The citation and abstract hyperlink will lead to a project page which contains the citation and abstract for
conf
and journal
, and only the abstract for preprint
.
Using hyperlinks
- For external links, use either the
<a href>
command in html or[Link text](link)
syntax in markdown. - For an internal link to a different page with permalink
/permalink/
, use<a href="{{ '/permalink/' | relative_url }}">
or<a href="{{ '/permalink/#section' | relative_url }}">
to reference a section on that page, and<a href="#section">
for same linking to a section on the same page. For more on referencing see this answer on stackoverflow. For details on using permalinks look here.
Colours and Fonts
- For hyperlink styling and decoration, make changes in
website/_sass/minimal-mistakes/_base.scss
. - For changing colours and font size, make changes in
website/_sass/minimal-mistakes/_variables.scss
. - To use mathmode, (
mathjs
has been enabled in the head file,_includes/head.html
), encase text in$$ ... $$
.
Grouping of Posts
- For the more technically or scholastically oriented posts, use the tag
technical-writing
in the page front matter. For posts which are narratives, use the tagnarrative
. - For printing a list of posts using liquid filters, use the following code snippets as guidelines: