Comments (4)
I have solved this for now by adding a blog.description to aside.hbs
<div class="blog-header">
<a title="Link to homepage for {{@blog.title}}" href="{{@blog.url}}/#open">
<h1 class="profile-title hvr-float">{{@blog.title}}</h1>
<h2 class="profile-description">{{@blog.description}}</h2>
</a>
{{navigation}}
</div>
β¦and changing caffeine-theme.css to add an blog-header h2 style and modify h1
h1{color:#F6F4E9;margin:75px 0 10px;font-size:2.75rem}.blog-header h2{color:#F6F4E9;margin:0px 0 25px;font-size:2.00rem}.blog-header
However, I'm not closing this issue because:
- The style should be added through SCSS build (but I don't have this toolchain set up).
- I don't understand why this theme completely ignores the ghost native
@blog.description
and instead uses a header insert ofprofile_resume
. I presume it is some interaction with the cover. But I think a feature supported by the general control panel should function in the theme.
from ghost-caffeine-theme.
HI @ChristopherA,
Thanks for reaching out and for checking out the theme, I hope you're enjoying it so far!
The omittance of the blog.description
from the header was an intentional design choice. This theme was designed with "mobile first" in mind. By adding the description to the header, when you open the blog from a mobile device, you'll see that you have less real estate to work with and wind up with the issue below:
You can adjust by editing the text, making it smaller, moving the cards lower in the fold, and you may wind up with something like below.
Sure this can work, but this is assuming that everyone's description is only several words long. The variability in this makes it hard to design and style.
In addition, if you look at the UX side of things, wIth this change, your first card starts around the middle of your screen, and your first post title is already at the bottom of the screen (and potentially even cut off). The intention of a blog is to draw your audience into your first post, and the description at the top potentially distracts them. The header only contains the blog title & links to guide the user with navigation around the blog if needed.
The best thing about open sourced code is that if you truly felt strongly about adding the description, you fork pull the code and you're more than welcome to make the changes yourself! Bonus points if you can also make it an "opt-in" feature that can be easily turned on/off through configuration, I would be more than happy to add it into the project. However, this is not something I will add by default.
from ghost-caffeine-theme.
Thanks for your advice. I recognize the challenge with mobile layout. What were the style changes that you made for the second screenshot? I'd like to incorporate them.
If it is useful, I've added you as a contributor to my fork in case you want to test anything (I still have to manually import the theme to my blog for testing).
from ghost-caffeine-theme.
I made the style changes by playing around in the Chrome developer tools for fast prototyping.
You'll need to add a margin-top to the entire blog post container. So you can add a media query definition to _media-queries.scss
with a class selector for .page-index
and just add a margin-top
. For the description, in _media-queries.scss
, add a style for .blog-header
and add a different font size for that description.
from ghost-caffeine-theme.
Related Issues (20)
- Search field not working HOT 4
- Theme not showing up after git clone? HOT 3
- Printing is broken in Firefox and Edge
- Is it compatible with Ghost v1.0.0? HOT 3
- Pages with Videos are Broken in Mobile View HOT 5
- Back Arrow on Static Pages HOT 5
- bourbon files are missing HOT 11
- Add social_links and no icon shown HOT 2
- Upgrade to Font Awesome 5 HOT 2
- Refactor code to modern standards HOT 4
- Please use "reading_time" helper
- Fix issue with toast notifications
- Update close icon for subscribe button
- Remove custom features that are now provided by Ghost 2.0 HOT 1
- Remove our hacky implementation of "Tags" HOT 2
- Cards disappear in safari on first load HOT 3
- Blinking occurs when the mouse cursor is placed over the code text HOT 5
- Post Card is too big on the screen HOT 1
- easy disable Disqus
- Update theme to run without error on Ghost v4.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghost-caffeine-theme.