mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
Rejig highlights page
This commit is contained in:
parent
1090f40418
commit
90e4ba94c3
@ -23,8 +23,10 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<section class="title-date-container">
|
||||||
<h2 class="p-name blogroll-title"><a class="u-uid u-url" href="{{ post.url }}">{{ post.title }}</a></h2>
|
<h2 class="p-name blogroll-title"><a class="u-uid u-url" href="{{ post.url }}">{{ post.title }}</a></h2>
|
||||||
<time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
|
<time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%b %Y' }}</time>
|
||||||
|
</section>
|
||||||
<summary class="p-summary">{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}</summary>
|
<summary class="p-summary">{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}</summary>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
|
@ -8,8 +8,10 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<section class="title-date-container">
|
||||||
<h2 class="p-name blogroll-title"><a class="u-uid u-url" href="{{ post.url }}">{{ post.title }}</a></h2>
|
<h2 class="p-name blogroll-title"><a class="u-uid u-url" href="{{ post.url }}">{{ post.title }}</a></h2>
|
||||||
<!-- <time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time> -->
|
<time class="dt-modified" datetime="{{ post.last_modified_at | date_to_xmlschema }}">{{ page.last_modified_at | date: '%b %Y' }}</time>
|
||||||
|
</section>
|
||||||
<summary class="p-summary">{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}</summary>
|
<summary class="p-summary">{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}</summary>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
@ -12,6 +12,7 @@
|
|||||||
@import "model_viewer"; //Styles for the 3D model viewer
|
@import "model_viewer"; //Styles for the 3D model viewer
|
||||||
@import "mastodon_timeline";
|
@import "mastodon_timeline";
|
||||||
@import "night_mode_toggle";
|
@import "night_mode_toggle";
|
||||||
|
@import "highlights";
|
||||||
|
|
||||||
// The syntax highlighting css
|
// The syntax highlighting css
|
||||||
// generated with rougify style bw > code_style_bw.scss
|
// generated with rougify style bw > code_style_bw.scss
|
||||||
@ -34,6 +35,7 @@
|
|||||||
--theme-subtle-outline: oklch(90% 0 50);
|
--theme-subtle-outline: oklch(90% 0 50);
|
||||||
--theme-highlight-color: hsl(338, 75%, 60%);
|
--theme-highlight-color: hsl(338, 75%, 60%);
|
||||||
--theme-highlight-color-transparent: hsla(338, 75%, 60%, 33%);
|
--theme-highlight-color-transparent: hsla(338, 75%, 60%, 33%);
|
||||||
|
--theme-subtle-text-color: #606984;
|
||||||
|
|
||||||
// constrain width and center
|
// constrain width and center
|
||||||
--body-max-width: 900px;
|
--body-max-width: 900px;
|
||||||
@ -114,6 +116,19 @@ main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Used for both blog and project summaries
|
||||||
|
section.title-date-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: baseline;
|
||||||
|
// flex-wrap: wrap;
|
||||||
|
time {
|
||||||
|
font-size: 0.75em;
|
||||||
|
text-align: right;
|
||||||
|
color: var(--theme-subtle-text-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:is(h1, h2, h3, h4, .text-balance) {
|
:is(h1, h2, h3, h4, .text-balance) {
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
@ -263,9 +278,9 @@ body:not(.has-wc) .has-wc {
|
|||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
// h1 {
|
||||||
font-size: 1.5em !important;
|
// font-size: 1.5em !important;
|
||||||
}
|
// }
|
||||||
.MathJax {
|
.MathJax {
|
||||||
font-size: 0.8em !important;
|
font-size: 0.8em !important;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
@ -2,7 +2,6 @@ h2.blogroll-title {
|
|||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hr.blogroll {
|
hr.blogroll {
|
||||||
@ -16,24 +15,6 @@ article.draft {
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
section.highlights {
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a.highlights-more {
|
|
||||||
margin-left: $left_pad;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1.highlights {
|
|
||||||
font-size: 1.75rem;
|
|
||||||
margin-left: $left_pad;
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
article.blogroll {
|
article.blogroll {
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -42,11 +23,6 @@ article.blogroll {
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
time {
|
|
||||||
display: block;
|
|
||||||
margin-bottom: 0.2em;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
@ -64,11 +40,11 @@ article.blogroll {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media
|
@media only screen and (max-width: $horizontal_breakpoint),
|
||||||
only screen and (max-width: $horizontal_breakpoint),
|
only screen and (max-height: $vertical_breakpoint) {
|
||||||
only screen and (max-height: $vertical_breakpoint)
|
hr.blogroll {
|
||||||
{
|
border-width: 1px;
|
||||||
hr.blogroll {border-width: 1px}
|
}
|
||||||
article.blogroll {
|
article.blogroll {
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
@ -77,5 +53,4 @@ article.blogroll {
|
|||||||
a.highlights-more {
|
a.highlights-more {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
43
_sass/highlights.scss
Normal file
43
_sass/highlights.scss
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
section.highlights {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.highlights-more {
|
||||||
|
margin-left: $left_pad;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1.highlights {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
// margin-left: $left_pad;
|
||||||
|
margin-bottom: 0.75em;
|
||||||
|
}
|
||||||
|
a.heading {
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hr.heading {
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr.blogroll {
|
||||||
|
border-width: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: $horizontal_breakpoint),
|
||||||
|
only screen and (max-height: $vertical_breakpoint) {
|
||||||
|
a.highlights-more {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
1
blog.md
1
blog.md
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Blog
|
title: Blog
|
||||||
layout: default
|
layout: default
|
||||||
|
permalink: /blog/
|
||||||
excerpt: |
|
excerpt: |
|
||||||
I'm Tom Hodson. Welcome to my little home on the web! There's a blog, a cv and some projects to look at.
|
I'm Tom Hodson. Welcome to my little home on the web! There's a blog, a cv and some projects to look at.
|
||||||
mathjax: false
|
mathjax: false
|
||||||
|
@ -3,12 +3,11 @@ title: Home
|
|||||||
layout: default
|
layout: default
|
||||||
excerpt: |
|
excerpt: |
|
||||||
Hi, I'm Tom Hodson. Welcome to my little home on the web.
|
Hi, I'm Tom Hodson. Welcome to my little home on the web.
|
||||||
permalink: /highlights
|
permalink: /
|
||||||
mathjax: false
|
mathjax: false
|
||||||
img:
|
img:
|
||||||
src: /assets/images/avatar.jpeg
|
src: /assets/images/avatar.jpeg
|
||||||
alt: A picture of me.
|
alt: A picture of me.
|
||||||
permalink: /
|
|
||||||
head: |
|
head: |
|
||||||
<link rel="stylesheet" href="/node_modules/@idotj/mastodon-embed-timeline/dist/mastodon-timeline.min.css">
|
<link rel="stylesheet" href="/node_modules/@idotj/mastodon-embed-timeline/dist/mastodon-timeline.min.css">
|
||||||
<script src="/node_modules/@idotj/mastodon-embed-timeline/dist/mastodon-timeline.umd.js"></script>
|
<script src="/node_modules/@idotj/mastodon-embed-timeline/dist/mastodon-timeline.umd.js"></script>
|
||||||
@ -18,7 +17,8 @@ head: |
|
|||||||
Welcome to my little home on the web! Below you'll find recent blog posts, projects and mastodon toots. You'll also find links to the web version of my thesis <a href = "/thesis/4_Amorphous_Kitaev_Model/4.2_AMK_Methods.html#:~:text=Figure 1:,on the torus.">(with animations!)</a> and my <a href="/cv/">CV</a>.
|
Welcome to my little home on the web! Below you'll find recent blog posts, projects and mastodon toots. You'll also find links to the web version of my thesis <a href = "/thesis/4_Amorphous_Kitaev_Model/4.2_AMK_Methods.html#:~:text=Figure 1:,on the torus.">(with animations!)</a> and my <a href="/cv/">CV</a>.
|
||||||
|
|
||||||
<section class = "highlights">
|
<section class = "highlights">
|
||||||
<h1 class = "highlights">Posts</h1>
|
<a href = "/blog/" class="heading"><h1 class = "highlights">Posts</h1></a>
|
||||||
|
<hr class="heading">
|
||||||
{% for post in site.posts limit:5 %}
|
{% for post in site.posts limit:5 %}
|
||||||
{% include post_summary.html %}
|
{% include post_summary.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -27,7 +27,8 @@ Welcome to my little home on the web! Below you'll find recent blog posts, proje
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class = "highlights">
|
<section class = "highlights">
|
||||||
<h1 class = "highlights">Projects</h1>
|
<a href = "/projects/" class = "heading"><h1 class = "highlights">Projects</h1></a>
|
||||||
|
<hr class="heading">
|
||||||
{% for post in site.projects limit:5 %}
|
{% for post in site.projects limit:5 %}
|
||||||
{% include project_summary.html %}
|
{% include project_summary.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -35,7 +36,8 @@ Welcome to my little home on the web! Below you'll find recent blog posts, proje
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class = "highlights">
|
<section class = "highlights">
|
||||||
<h1 class = "highlights">Toots</h1>
|
<a href = "https://tech.lgbt/@Tomhodson" class = "heading"><h1 class = "highlights">Toots</h1></a>
|
||||||
|
<hr class="heading">
|
||||||
<div id="mt-container" class="mt-container">
|
<div id="mt-container" class="mt-container">
|
||||||
<div class="mt-body" role="feed">
|
<div class="mt-body" role="feed">
|
||||||
<div class="mt-loading-spinner"></div>
|
<div class="mt-loading-spinner"></div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user