sitemap

使用Hexo在Github搭建静态博客

眉间皱痕 提交于 2019-12-05 23:40:55
1. 环境环境 1.1 安装Git 请参考【1】 1.2 安装node.js 下载:http://nodejs.org/download/ 可以下载 node-v0.10.33-x64.msi 安装时直接保持默认配置即可。 2. 配置Github 1.1 建立Repository 建立与你用户名对应的仓库,仓库名必须为【your_user_name .github.io 】 1.2 配置SSH-Key 参考【1】 3. 安装Hexo 关于Hexo的安装配置过程,请以官方Hexo【2】给出的步骤为准。 3.1 Installation 打开Git命令行,执行如下命令 $ npm install -g hexo 3.2 Quick Start 1. Setup your blog 在电脑中建立一个名字叫「Hexo」的文件夹(比如我建在了D:\Hexo),然后在此文件夹中右键打开Git Bash。执行下面的命令 $ hexo init [info] Copying data [info] You are almost done! Don't forget to run `npm install` before you start blogging with Hexo! Hexo随后会自动在目标文件夹建立网站所需要的文件。然后 按照提示,运行 npm install(在 /D/Hexo下)

Build sitemap.xml by Java Spring [duplicate]

泄露秘密 提交于 2019-12-05 20:40:34
This question already has answers here : Serving sitemap.xml and robots.txt with Spring MVC (2 answers) Closed 2 years ago . I'm building a sitemap.xml by Spring MVC @XmlRootElement(name = "urlset") public class XmlUrlSet{ @XmlElements(@XmlElement(name = "url", type = XmlUrl.class)) private List<XmlUrl> sitemap = new ArrayList<XmlUrl>(); public void addUrl(XmlUrl xmlUrl) { sitemap.add(xmlUrl); } public List<XmlUrl> getXmlUrls() { return sitemap; } } And it renders like this: <urlset> <url> ... </url> <url> ... </url> </urlset> I just want to know how to add namespace for xml and xml version

Extending a Sitemap

余生颓废 提交于 2019-12-05 20:38:24
I have a website that contains a sitemap.xml file. Currently, my sitemap.xml file looks like the following: <?xml version="1.0" encoding="utf-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.mysite.com/about/blog/post-1</loc> <lastmod>2013-08-13</lastmod> <changefreq>never</changefreq> <blog:title>This is the title of the blog post</blog:title> <blog:description>This is the description of the blog post</blog:description> <blog:author>Some person</blog:author> <blog:authorUrl>https://www.mysite.com/people/some-person</blog:authorUrl> </url> </urlset> As my

asp.net sitemap admin seeing what a user sees

时光总嘲笑我的痴心妄想 提交于 2019-12-05 20:13:42
I am currently trying to figure out how to best go about implementing an administration side for my application. I have a user site, where users can log in, customize their profile, submit information etc. I would like administration users to be able to log in and be able to choose from a list of users. From there, the administrator can submit information for the user just like the user can. Website Start Page > RogerRabbit > Submit Information Website Start Page > BillyBob > Customize Profile So my question is: How should my pages be laid out? How should the Web.sitemap file look? Is there a

MVCSiteMapProvider breadcrumbs incorrect parent node id

风格不统一 提交于 2019-12-05 19:22:47
I have this sitemap: <mvcSiteMapNode title="Projects" controller="Projects" action="Index" key="Home" visibility="!*"> <mvcSiteMapNode title="Projects" controller="Projects" action="Index"> <mvcSiteMapNode title="Project" controller="Projects" action="Details" preservedRouteParameters="id"> <mvcSiteMapNode title="Session" controller="Sessions" action="Details" preservedRouteParameters="id"> <mvcSiteMapNode title="Edit Session" controller="Sessions" action="Edit" preservedRouteParameters="id"/> </mvcSiteMapNode> </mvcSiteMapNode> </mvcSiteMapNode> <mvcSiteMapNode title="My Account" controller=

how to redirect 404 (bad urls) to the homepage

a 夏天 提交于 2019-12-05 18:41:08
I am using asp.net and when I type a bad url manually(in the browser) it gives me: The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. I want a bad url that doesn't exist to be re-directed to the home page. How do I do this? I am using sitemap. Matt If you have no intentions of letting the users know, they are being redirected. Then, you could just turn custom errors on and do

Generating a Visual Site Map of an Existing Site

こ雲淡風輕ζ 提交于 2019-12-05 16:14:55
问题 I thought I could easily answer this question by searching the web, but my Google-fu has failed me. So I turn to you, oh mighty stackoverflowers, and beseech you for enlightenment: What is the quickest and best way to generate a visual site map (e.g. flowchart, mind map, IA diagram) of an existing website? Additional context: my client has been asked by their client to redesign their website. The art directors understandably asked for information on the current site architecture, to which the

How to properly format last modified (lastmod) time for xml sitemaps

主宰稳场 提交于 2019-12-05 11:25:08
问题 I am creating an app that will automatically update sitemap.xml each time new content is added to, or updated on the site. According to Google's best practices the <lastmod></lastmod> tag should be formatted as follows: <lastmod>2011-06-27T19:34:00+01:00</lastmod> My question concerns the time formatting itself. I understand the 2011-06-27T19:34:00 part. What I do not understand is the +01:00 , which I am assuming is the +/- UTC . Is this a correct assumption? My Time Zone Table looks like

How to create index for django sitemaps for over 50.000 urls

北城余情 提交于 2019-12-05 08:38:39
I have the following url configuration url(r'^sitemap\.xml$', index, {'sitemaps': sitemaps}), url(r'^sitemap-(?P<section>.+)\.xml', cache_page(86400)(sitemap), {'sitemaps': sitemaps}), and sitemaps include following sitemap class ArticlesDetailSiteMap(Sitemap): changefreq = "daily" priority = 0.9 def items(self): return Article.objects.filter(is_visible=True, date_published__lte=timezone.now()) but there are more than 50.000 articles. So i get timeout error when i try /sitemap-articles.xml because it tries to get all the articles. Any ideas how should i create an index and make the pagination

Magento and Google Sitemap - Cron

不想你离开。 提交于 2019-12-05 07:56:34
I'm a newbie in Magento. I'm tring to configure an auto-generated Google Site Map. I've read everywhere how to set up cron job for Magento with cPanel, how to configure from backend and so on. My current settings: under System -> Configuration -> Google Sitemap -> Generation Settings -> Enabled = YES. I've create the sitemap on Catalog -> Google Sitemap, of course, which I can manually generate without any problem. But if I check the file /app/code/core/Mage/Sitemap/etc/config.xml it seems to be not updated (different content btw config.xml and backend). It seems also that the last update on