Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 5 additions & 25 deletions components/layout/BlogLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,11 @@ export default function BlogLayout({ post, children }: IBlogLayoutProps) {
</header>
<article className='mb-32'>
<Head title={post.title} description={post.excerpt} image={post.cover} />
<HtmlHead>
<script
type='text/javascript'
src='//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5cb852c7b57ed596'
async
/>
<style>{`
/* AddThis hack */

#at4-share {
left: 50%;
margin-left: -500px !important;
position: absolute;

&amp;.addthis-animated {
animation-duration: 0s !important;
}
}

#at4-scc {
display: none !important;
}
`}</style>
{post.canonical && <link rel='canonical' href={post.canonical} />}
</HtmlHead>
{post.canonical && (
<HtmlHead>
<link rel='canonical' href={post.canonical} />
</HtmlHead>
)}
<img src={post.cover} alt={post.coverCaption} title={post.coverCaption} className='my-6 w-full' />
{children}
</article>
Expand Down
5 changes: 0 additions & 5 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ li>p {
display: inline;
}

.atss {
/* AddThis plugin */
z-index: 10 !important;
}

abbr[title] {
text-decoration: none;
}
Expand Down