Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when the the code style include ">" symbol ,the page does not show right #118

Closed
7rack opened this issue Apr 25, 2014 · 5 comments
Closed

Comments

@7rack
Copy link

7rack commented Apr 25, 2014

i love the elegant theme.when i use markdown syntax to highlight the following code

# include "highgui.h"
# include "cv.h"
# include <stdio.h>

int main(int arg,char*\* argv)
{
...
    int height = src->height ;
    int width = src->width ;
    int step = src->widthStep ;
    int channels = src->nChannels ; 
}

the page looks like strange.you can find it on my blog .

@calfzhou
Copy link
Contributor

Do you mean the strange code at the top of your article page?

image

It might be caused by several double quotes " in header's og:description and twitter:description content.

image

@talha131 , this should be bug in templates/_includes/seo_metadata.html

@7rack
Copy link
Author

7rack commented Apr 25, 2014

@calfzhou yes, that's it

@talha131
Copy link
Member

The reason you see this bug is Pelican auto generates summary of articles if summary metadata is not defined. The auto generated summary can have weird characters that should be escaped.

Besides @calfzhou fix, you can try setting summary manually or leaving it completely empty

:summary:

If you use Vim you can try using this snippet with UltiSnips plugin. Or this package if you use sublime.

These will auto generated metadata fields for you.

I am closing this issue as @calfzhou pull request fixes the issue.

@talha131
Copy link
Member

talha131 commented Feb 4, 2020

@all-contributors please add @7rack for bug.

@allcontributors
Copy link
Contributor

@talha131

I've put up a pull request to add @7rack! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants