Announce new Twitter account

This commit is contained in:
Rico Sta. Cruz 2017-10-26 15:51:38 +08:00
parent 5667ae5ebc
commit 4cb57e84d6
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
3 changed files with 16 additions and 4 deletions

View File

@ -41,7 +41,10 @@ not_found:
home: Back to home home: Back to home
announcement: announcement:
id: 2017-09-25-devhints-io id: 2017-10-26-twitter
title: New URL 🎉 title: |
New: We're on Twitter ♥️
body: | body: |
Hey, ricostacruz.com/cheatsheets has moved to devhints.io! Same content with a shorter and easier to remember URL. Follow [@devhints](https://twitter.com/devhints) on Twitter for daily "today I learned" snippets!
[![](https://img.shields.io/twitter/follow/devhints.svg?style=social&label=@devhints)](https://twitter.com/devhints)

View File

@ -2,7 +2,7 @@
<div class='announcements-list'> <div class='announcements-list'>
<div class='announcements-item item -hide' data-js-dismissable='{"id":"{{ site.data.content.announcement.id }}"}'> <div class='announcements-item item -hide' data-js-dismissable='{"id":"{{ site.data.content.announcement.id }}"}'>
<h3 class='title'>{{ site.data.content.announcement.title }}</h3> <h3 class='title'>{{ site.data.content.announcement.title }}</h3>
<div class='body'>{{ site.data.content.announcement.body }}</div> <div class='body'>{{ site.data.content.announcement.body | markdownify }}</div>
<button data-js-dismiss class='close'></button> <button data-js-dismiss class='close'></button>
</div> </div>
</div> </div>

View File

@ -22,6 +22,15 @@
padding: 0; padding: 0;
} }
& > .body > p {
margin: 0;
padding: 0;
& + p {
margin-top: 1em;
}
}
& > .close { & > .close {
position: absolute; position: absolute;
right: 0; right: 0;