Closed mehrdad-dev closed 4 years ago
Without knowing your hugo version, config.toml
and markdown content, it's just guessing. Probably: https://gohugo.io/getting-started/configuration-markup/ (search for "unsafe")
hugo version:
Hugo Static Site Generator v0.74.3-DA0437B4 linux/amd64 BuildDate: 2020-07-23T16:22:34Z
config.toml:
theme = "hugo-theme-learn"
[params]
# Prefix URL to edit current page. Will display an "Edit this page" button on top right hand corner of every page.
# Useful to give opportunity to people to create merge request for your doc.
# See the config.toml file from this documentation site to have an example.
# Author of the site, will be used in meta information
author = "Mehrdad Mohammadian"
# Description of the site, will be used in meta information
description = "دوره یادگیری ماشین دانشگاه استنفورد به فارسی"
# Shows a checkmark for visited pages on the menu
showVisitedLinks = true
# Disable search function. It will hide search bar
disableSearch = false
# Javascript and CSS cache are automatically busted when new version of site is generated.
# Set this to true to disable this behavior (some proxies don't handle well this optimization)
disableAssetsBusting = true
# Set this to true to disable copy-to-clipboard button for inline code.
disableInlineCopyToClipBoard = false
# A title for shortcuts in menu is set by default. Set this to true to disable it.
disableShortcutsTitle = false
# When using mulitlingual website, disable the switch language button.
disableLanguageSwitchingButton = false
# Hide breadcrumbs in the header and only show the current page title
disableBreadcrumb = false
# Hide Next and Previous page buttons normally displayed full height beside content
disableNextPrev = false
# Order sections in menu by "weight" or "title". Default to "weight"
ordersectionsby = "weight"
# Change default color scheme with a variant one. Can be "red", "blue", "green".
themeVariant = "blue"
# Provide a list of custom css files to load relative from the `static/` folder in the site root.
custom_css = ["css/foo.css", "css/bar.css"]
# For search functionality
[outputs]
home = [ "HTML", "RSS", "JSON"]
example html content i want to add in .md files:
<table>
<tr>
<td align="center"><a href="https://github.com/mehrdad-dev"><img src="https://avatars2.githubusercontent.com/u/40211374?v=4" width="100px;" alt=""/><br /><sub><b>mehrdad mohammadian</b></sub></a><br /><a href="https://github.com/mehrdad-dev/ml-andrew-ng-code/commits?author=mehrdad-dev" title="Code">💻</a> <a href="#content-mehrdad-dev" title="Content">🖋</a> <a href="https://github.com/mehrdad-dev/ml-andrew-ng-code/pulls?q=is%3Apr+reviewed-by%3Amehrdad-dev" title="Reviewed Pull Requests">👀</a> <a href="" title="mentoring">🧑🏫 </a> </td>
<td align="center"><a href="http://nargesrzn.github.io/my-website"><img src="https://avatars3.githubusercontent.com/u/59249853?v=4" width="100px;" alt=""/><br /><sub><b>nargesrzn</b></sub></a><br /><a href="#content-nargesrzn" title="Content">🖋</a></td>
</tr>
</table>
even a simple p tag ...
As assumed above, this is related to your configuration and not an issue of this (or any other) theme. Please follow the link
Yes, fixed with this param in config.toml:
[markup.goldmark.renderer]
unsafe= true
Why when i add any html tag in markdown files i can't see any changes? any tag, p tag, table tag and so on ...
please help me.