Giter VIP home page Giter VIP logo

ghost-caffeine-theme's Introduction

πŸ€™πŸ½ Suh duh

Welcome to my GitHub page! Check out some of the stuff I'm currently working on.

Products I've launched

  • HipHerd | Plan your next group trip in minutes

What I'm working on

  • Unhavok | Creating products to eliminate the chaos of everyday problems.
  • Propellant Software | Hire our agency for your next project

Check me out on

ghost-caffeine-theme's People

Contributors

0t2 avatar andrewlock avatar antranthien avatar baankeybihari avatar dependabot[bot] avatar geertjanvdb avatar hmobius avatar kelyvin avatar lehmamic avatar nickjamesio avatar npmcdn-to-unpkg-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ghost-caffeine-theme's Issues

Social Links

Hey,
could there be a way of setting the social links in a script block like this

<script>
var xyz = 'http://facebook.com/user';
</script>

Another thought would be to set additional info like the title and the service in an js object

<script>
var xyz = {
   service: fb,
   link:'http://face...',
   title: '',
   fa_icon: ''
};
</script>

Navigation buttons spacing

Hello,

Another quick issue & possible improvement: navigation buttons in the call to action container get squished when the screen width forces them on two lines.

It's mostly an issue with mobile browsers, could be an issue in a normal browser if someone had a ton of navigation links.


Fixed it on my end by adding a 5px vertical padding:
francoisgervais@c1441d9

I have found the solution to the block rendering problem

The layout action would be executed after all resources finished, like this

$(window).load(function() {
  window.sr = window.ScrollReveal().reveal(cardName, {
      afterReveal: function () {
          if ($postsGrid) {
              $postsGrid.masonry("layout");
          }
      }
  });
});

So if there were any external resources can't be downloaded, the downloading would block the rendering.

My solution is s.setAttribute('external_src', url)

var s = document.createElement('script'); s.async = true;
        s.type = 'text/javascript';
        s.setAttribute('external_src', '//' + window.disqus_shortname + '.disqus.com/count.js');

So that the count.js would not block the load() function.

After layout being executed, we can append a function like this

$(window).load(function() {
    $('[external_src]').each(function() {
        var external_src = $(this).attr("external_src");
        $(this).attr("src", $(this).attr("external_src")).removeAttr("external_src");
    });
});

Posts page broken in Safari Private browsing

Hi Kelvin,

First off nice theme - I plan on adapting it for my new blog soon.

I noticed you've switched to using localStorage in place of js-cookie. I was wondering what the bug you refer to is in the update?

Unfortunately the switch to store.js means the theme is currently broken when store is not available, which happens for example in Safari Private browsing mode. As someone that uses private browsing quite a lot that seems like a big limitation. Especially as there is no warning, the posts just don't load (see screenshot).

image

Invalid sass in _mixins.scss

When trying to build the project using gulp build, I get the following error:

'Error: ".call-to-action-container .navigation .links li" failed to @extend "btn-cover".
The selector "btn-cover" was not found.
Use "@extend btn-cover !optional" if the extend should be able to fail.
on line 47 of assets/scss/modules/_mixins.scss

This is caused by the mixin btn-cover-with-border:

@mixin btn-cover-with-border {
    border: 1px solid $slate-white;

    &:hover {
        border: 1px solid $primary-color;
    }
    @extend btn-cover;
}

The final @extend btn-cover; should probably be changed to @include btn-cover;.

I can create a quick PR if you like though presumably the build is working for you, so maybe there is a separate issue?

Word Wrap didn't work in <code> area

Hi there,

I had to add the following CSS to make "code" areas looking well in Chrome.

pre>code {
     white-space: pre-line !important;
}

Maybe it would be good to make a change in CSS for this.

Kind Regards,

Christian

bourbon files are missing

/assets/scss/bourbon-custom.scss the following files are missing:
@import '../vendor/bourbon/app/assets/stylesheets/settings/prefixer.scss';
@import '../vendor/bourbon/app/assets/stylesheets/css3/transition.scss';
@import "../vendor/bourbon/app/assets/stylesheets/addons/prefixer.scss";

They are not present also in a fresh bourbon install. May be it`s time for some refactoring ;)

MailChimp subscribe not working

I try to add MailChimp subscribe to my website.

This is what I add, exactly the same format as the example:

<script>
var mailchimpOptions = {
    url: "//janvdkolk.us14.list-manage1.com/subscribe?u=18abd455664ef9cbac66fd316&id=ac22da35f1"
};
</script>

The subscribe button appears, but after I fill in name and email and click send, nothing happens. The link works, you can check it.

When I try the code from the example it does work and I receive a confirmation email.

Refactor code to modern standards

It's been a long time since the code has been cleaned up. It originally started as a fork of another project but has since deviated drastically. As a result, it's appropriate to make updates to the internals. The refactor the code to leverage the following:

  1. Update gulp builds
  2. Remove bower and switch to npm/yarn full-time
  3. Update code to ES6 standards
  4. Font awesome 5 upgrade
  5. Improve JS code with better architecture and ghost v2 compliance
  6. Replace gulp to webpack for modern client-side bundling

It's difficult trying to find the time to do this myself, so if anyone would like to volunteer, you'd be the real mvp.

MailChimp Content Modification

I am trying to modify the mailchimp content by editing the cover.js files as the README instructs. Here is my code:

if (window.mailchimp_url) {
    $("body").subbscribe({
        title: "Never miss a post!",
        text: "Stay up to the date with the latest posts!",
        name: "<a href='https://twitter.com/fbgrecojr' target='_blank'>@fbgrecojr</a>",
        color: "#56817A",
        thumbnail: "http://i.imgur.com/39erIwp.png",
        list: "MailChimp",
        url : window.mailchimp_url
    });
}

However, after zipping up the updated package and uploading it to Ghost, it still shows the original CaffeineCoding content

Some texts are out of bounds

Hello,
Some of the texts including news and tables are sometimes out of boundaries.
Here is an example of what I get on the desktop rendering (chrome):
tuatini_s_blog1

and for the <table> here is what I get on Chrome for Android:
screenshot_20161211-162329

Some tables are not known to be scrollable on mobile

Hi @kelyvin ,
I'm reopening the previous issue #26, the tables on mobiles does not reveal to the user that they are scrollable.
For example with this table:
screenshot_20161212-151219

You can't really know that there is a third column except if you magically scroll horizontally:
screenshot_20161212-151236

Moreover the tables seems to be completely shrank on desktop:
activity_as_context__you_re_doing_it_wrong_

Thank you for your consideration πŸ™

Cards disappear in safari on first load

Loving the theme. Starting to build and modify it a bit for my site (https://mattwelch.io). One thing I've noticed, on my site and on yours, is that on first load in Safari, all the cards on the posts home page disappear after flashing visible for a split second.

If I go to another Safari tab and then back, they reappear. It sounds kind of like this issue but not only in private browsing mode.

Add social_links and no icon shown

For example I add a commet link like this

    <!-- Comments-->
    <li class="social item hvr-grow-rotate">
        <a rel="me" target="_blank" href="http://blablabla" title="chat with us">
            <i class="fas fa-comments"></i>
            <span class="label">comments</span>
        </a>
    </li>

And I don't get any icon shown. Any way to solve that ?
Thank you for coding and watching this issue.

Html <sup> are not rendered properly

The <sup> html directive used to make an exponent is weird. Here is an example of what we get with the caffeine theme below:
exponent1

and with the casper theme:
exponent2

with the code: NO<sup>1</sup>
The one with the caffeine theme looks more like a "minus 1" instead of an exponent.

How to remove the splash screen?

Hey there,
Thanks a lot for the theme. Just wanted to know, how can I remove the splash screen and move directly to the home?

How to support Scala/Java syntax highlight

I would like to add Scala/Java syntax highlight, but I don't know how to do it.

I tried to modify assets/vendor/prism/gulpfile.js and execute gulp build, but it doesn't work...

Please give me some hints, thanks

Search field not working

Hello,

I downloaded the caffeine-theme, installed it, added jQuery and other libraries.
Everything works fine except that the search field and popular tag are not working!
I get one error in the console: "Failed to load resource: the server responded with a status of 404 (Not Found)" for the file /rss.

Can you help me please ?

GhostHunter search limited to 15 posts

It is a limitation of the current implementation of the ghosthunter plugin, but currently only the latest 15 posts will be searched.

The version of ghosthunter we're using uses the RSS feed as it's source, which according to this post is hard coded to 15 posts.

It looks like the latest version uses the public ghost API, but that does require you enable it, and looks like it may have some performance issues at present.

I suggest we keep an eye on the project for now till it looks like a good option πŸ˜„

Adding Blog Description to Blog Header

I have switched to caffiene-theme because the theme I was using before didn't have an active community. I appreciate that there seem to be more contributors here and more responsive to issues and pull requests.

In my old blog, the blog description (from settings general) were displayed below the blog title in the header. However, with cover set to be off in my blog, it doesn't show β€”Β only the title. Poking around (I'm not a web expert, more a coder) I can't seem to find the right place. Which file and what html should I add to my fork of the template to turn this on?

My blog is at http://www.livelywork.com/

Contact page - disqus

Hi,
Loving the theme! Nice work.
I noticed that static pages 'About' and "Home' have disqus disabled. This is great. How do I go about disabling on 'Contact' page? Is a custom template required? page-contact.hbs for example?
Thanks

About Page

Hello,
Loving the theme! Nice work.

I want to create an about page like your. Do i have to make a new post and make it static page? When i tried that i saw the circle image in the centre but it also changed the top banner image. In your web site the banner image shows the cover photo. Thank you

Printing is broken in Firefox and Edge

A niche issue I know, but someone just flagged it to me on my blog. It prints fine on Chrome.

If you view the theme in Edge and press ctrl+p, the resulting print preview is mostly white, only shows the header of the blog, and is only 1 page long.

I've checked on both our blogs, so it's definitely a theme issue - we probably just need to add some print media query css

Browser compatibility page is broken

The browser compatibility page uses the title of the page instead of the blog's title.

Also, the conditional directive in default.hbs only redirects IE 9 to the browser compatibility page, not IE7, IE 8 etc

Tables in html are not well rendered

I just noticed that tables in html (and maybe other html objects?) are not well rendered.
For example take this table:

<table border="1">
  <tr>
    <td></td>
    <td>Application context</td>
    <td>Activity context</td>
    <td>Service context</td>
  </tr>
  <tr>
    <td>Show an ui component</td>
    <td>NO<sup>1</sup></td>
    <td>YES</td>
    <td>NO<sup>1</sup></td>
  </tr>
</table>

Here is how it looks like with the casper theme:
table1

And how it looks like with caffeine theme:

table2

Any advise for a possible workaround? Creating a table in ascii with a markdown code snippet is not visually great :(

Theme not showing up after git clone?

I did a git clone to get the theme and I see it in my themes directory alongside the default Casper. But when I go to settings, only Casper shows up in the list.

Author Bio and Author Page

It's a feature request, but it'd be nice to have an Author bio at the bottom of every post and a separate Author Page, just like the default theme.
Thanks :-)

About code highlight

I want to change code highlight color,how should I do?if you can provide some options to fast change code block color,It is very friendly to people who can't use sass.
And I want to modify markdown style or use ghost default style,which files should I modify?
Thanks!

Back Arrow on Static Pages

Found an interesting error when creating static pages. Other than the "About" page, if you make a story with the title About and make it static, it appears that all other static pages have a back arrow that redirects to the URL domain.com/pagename/#open.

Anyone have any ideas on how to correct the URL or remove the arrow all together. I'll be searching around and see if I can fix it myself.

Allow easier customising of AMP styles

I finally got round to taking a look at #18 (had to upgrade ghost) and all looks great.

The only thing I think we could improve would be to make it easier to update the custom styles in line with the scss variables

I've had a play with this locally, by using the following process

  1. Create an amp-theme.scss file
  2. Add a gulp task to process and minify the file, output it to partials/amp-theme.hbs
  3. Update the amp.hbs to render the partial inside the custom styles tag

This seems to work pretty well - you can then replace the colours etc with the theme variables, so when people customise the theme, they don't have to worry about doing the AMP styles manually. It's a bit hacky to be converting a scss file to a partial, but it does the job seeing as you can't link to a stylesheet separately..

If you're happy with that approach, I'll send a PR :)

How to remove disqus?

Hi, I'm a Ghost newbie and I come from China.
In China, people can't use Disqus normally, so I want to remove the Disqus. However when I deleted partials/disqus-comment-count.hbs & comments.hbs. The Ghost page showed 404.
I have tried to modify the code in such .hbs, but it didn't work.
Please tell me how to work it out. Thank you!

Update close icon for subscribe button

The original close icon for the subscribe button was being pulled from some CDN source that no longer exists, so we'll need to provide a replacement or fix for this.

Fix issue with toast notifications

Toast notifications are not properly being displayed due to an issue with toastr. This probably related to our build and the built bundle.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.