Closed davewx closed 7 years ago
I assume it is the nunjucks syntax issue in theme layout.
Hmm, so what can I do about it?
Do you modify any theme layout? Or use the nunjucks syntax some where?
I used the template that comes with hexo and I don't know what nunjucks is. I'm using the standard package with hexo, the only things I changed are in the config file included above.
What's the post content? Can you post it here?
I'm using the Wordpress plugin to import 240 posts in a blog. It seems to choke on the first one. Here is the first one:
---
title: 'Youth Suicides Rise the Most in 15 Years, CDC Says'
id: 178
categories:
- Anti-Depressant Medication
- Treating Depression
date: 2007-09-06 13:13:49
tags:
---
The CDC has released a report finding a spike in successful suicides in adolescents in 2004\. This increase is the largest increase since 1990\. Is this the result of all the [misinformation](http://blog.davemsw.com/forum/viewforum.php?f=32) floating around anti-depressant medications causing suicide and violence in adolescents and adults? Thats about when the hullabaloo started. So that means that the [increase in suicides](http://www.blog.davemsw.com/archives/2006/04/prescriptions_for_antidepressa.php) may continue into 2007, four years of increased suicide caused by misinformation in the media. It would appear that media sources who print information on such volatile topics need to consult with professionals before doing so.
Perhaps even more importantly, researchers need to be obtaining peer review of their research before going to the media. It's become routine that new research authors send out news releases on topics that will attract media attention. I'm sure part of this is a survival method to make sure the research sponsor benefits from the research and funds them further. But the consequences of such releases need to be carefully considered.
Note that the research process on the risks of anti-depressants have [unequivocally documented](http://www.blog.davemsw.com/archives/2007/01/antidepressants_and_suicide.php) that the risk of anti-depressants is less than the risk of not prescribing.
And don't forget that there is also [a first line of defense](http://www.blog.davemsw.com/archives/2007/06/cognitive_therapy_generally_as_effective_as_medica.php) against depression, called [psychotherapy](http://www.blog.davemsw.com/archives/2005/02/antidepressant_safety_debate_m.php). It's harder to face our problems with others, and sometimes more expensive. But it must be done.
[Bloomberg.com.](http://www.bloomberg.com/apps/news?pid=20601103&sid=al4Po_JOhrzQ&refer=us "Bloomberg.com: U.S.")
> "Suicides among children and young adults in the U.S. rose 8 percent in 2004, the largest single- year increase since 1990, the Centers for Disease Control and Prevention said.
> The biggest percentage jumps were recorded among girls aged 10 to 19, and boys aged 15 to 19, according to a survey released by the agency today. Suicide accounted for 4,599 deaths in 2004, making it the third-leading killer among Americans ages 10 to 24, behind car crashes and homicides, the research found.
> The report, part of an annual analysis by the Atlanta-based CDC, didn't identify a reason for the increase. It found girls mainly hung or suffocated themselves, and that guns remained the primary method used by boys. The rate among Americans ages 10 through 24 had fallen 28 percent since 1990, making the current rise particularly concerning, health officials said.
> [..] One possible reason for the increase may be that doctors are reluctant to prescribe antidepressant drugs to children because of warnings about side effects, said Mark Riddle, director of the division of child and adolescent psychiatry at Johns Hopkins Children's Center in Baltimore.
> ``It's probably reluctance on the part of clinicians to identify and treat kids with depression,'' he said in a telephone interview. ``We know that any treatment for depression in teenagers is quite effective in reducing suicidal thoughts and suicide attempts. When you take away one of the treatments, you are just leaving more kids vulnerable for trouble.''
> [..]An earlier study by CDC researchers found many students in the U.S. regularly contemplate suicide. In that survey, 17 percent of high school students said they ``seriously considered'' killing themselves in the previous 12 months and 13 percent actually devised a suicide plan. Nearly 1 in 10 said they actually tried to take their own life."
The post looks good to me. I tried it on a vanilla install, no issues. Is your website in an open repo, or some place I could take a look at the code?
It resides on my PC. I run it in Win10 using Bash. Attached: hexo.tar.gz
@davewx I think I found the issue. In your coordination-of-care-fractures-medical-system.md
file, the following should modify:
The {{}}
is nunjucks syntax, therefore please avoid using them in posts.
Very cool, thanks!
Great. Please feel free to reopen this issue if it still persists.
in my case I just forget to add the youtube word cause the problem right : {% youtube NwH0HvMI4EA %} wrong: {% NwH0HvMI4EA %}
@davewx I think I found the issue. In your
coordination-of-care-fractures-medical-system.md
file, the following should modify:The
{{}}
is nunjucks syntax, therefore please avoid using them in posts.
i fix my problem by remove {{
in my one blog. Thanks @NoahDragon
@davewx I think I found the issue. In your
coordination-of-care-fractures-medical-system.md
file, the following should modify:The
{{}}
is nunjucks syntax, therefore please avoid using them in posts.
正解,也不能在里面使用 .... 会报错
Template render error: (unknown path) [Line 33, Column 95]
expected name as lookup value, got .
Environment Info
Node version(
node -v
)Your site
_config.yml
Your theme
_config.yml
Plugin version(
npm ls --depth 0
)For BUG
For question
Hexo newby, new install, error message in the subject line. One of the above items I don't know where to get. Full error message below:
For feature request